-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add memory properties to StrayCat #870
base: develop
Are you sure you want to change the base?
[Feature] Add memory properties to StrayCat #870
Conversation
What if in the future we want to give the possibility to add other collections to the memory? @property
def memory(self):
return CheshireCat().memory.vectors |
Great question! I only thought about the 3 collections... @property
def vector_memory(self):
return CheshireCat().memory.vectors So you have:
|
Sounds good @valentimarco, will review in the next days thanks :D
Old? |
Description
Related to issue #818, point 3
With this PR, I added new properties to StrayCat and some types (YES):
user_message(self) -> str
, return the query of the usermemory_vector_client(self) -> QdrantClient
, return the QdrantClient (Is is useful? personally yes, if i want to do some strange stuff...)<name collection>_memory(self) -> VectorMemoryCollection
, return a VectorMemoryCollection instance of the selected memory. Usuful to search, add or destroy vectors in a specific collection.Nothing new is added, "old piero" did a great job when designing the VectorMemory!
To search points use
recall_memories_from_embedding(embedding, metadata=None, k=5, threshold=None )
.Maybe #848 should be method of VectorMemoryCollection??
Type of change
Checklist: