core
core copied to clipboard
[Feature] Add memory properties to StrayCat
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
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [x] This change requires a documentation update
Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas