Skip to content

Commit 66f2d74

Browse files
feat(chat): Add memory command primitives to Q CLI (#1657)
* feat(chat): Add memory command primitives to Q CLI Implement memory management commands that utilize embeddings and vector in-memory storage: - Add `/memory add` command to select and add files to memory - Add `/memory rm` command to remove items from memory - Improve search results formatting with additional newline These memory primitives enhance the Q CLI's ability to maintain contextual awareness across chat sessions by allowing users to explicitly manage what information is remembered. The implementation leverages vector embeddings for semantic search capabilities and in-memory vector storage for efficient retrieval of relevant context. The feature supports both interactive `/memory` commands and primitive tool interfaces, providing flexibility for different usage patterns. Additionally, it handles multiple file extensions for both text and code files, ensuring comprehensive support across various file types in the user's development environment. This approach enables more intelligent and context-aware responses by maintaining a semantic understanding of stored information rather than simple keyword matching. 🤖 Assisted by [Amazon Q Developer](https://aws.amazon.com/q/developer) * fix: FIxes conflic merge issue * Also disables loading bar for model loading * fix: typo * fix: format and clippy issues * fix: format and clippy issues * Also added chunker lost by Q CLI translation * * [fix] Format * fix: Test issue * [fix] changes to hf-hub-rustls-tls * open-ssl is explicitly blocked --------- Co-authored-by: Kenneth Sanchez V <[email protected]>
1 parent 198bfcc commit 66f2d74

File tree

20 files changed

+3430
-10
lines changed

20 files changed

+3430
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ book/
4949
.env*
5050

5151
run-build.sh
52+
**/.fastembed_cache/*

0 commit comments

Comments
 (0)