Skip to content

Commit

Permalink
Implement vector memory (#13352)
Browse files Browse the repository at this point in the history
* cr

* cr

* cr

* cr

* cr

* cr

* cr

* cr

* lint

* fix tests

* fix tests..

* use delete_nodes from vector_store

* use delete_nodes to index

* revert finalize_task

* add extra commentary

* fix messages

* remove print statements

* add simple composable memory

* poc working

* add composable memory nb

* wip

* add composable memory nb

* remove get_and_set

* fix vector memory

* add vector memory illustration

* add illustration

* add nbs to docs new classes to api reference

* revert finalize_task methods

* add colab badge and md files

* add test for vector memory

* pants build file

* add unit test for simple composable

* remove BaseComposableMemory, use more explicit params for SimpleComposableMemory, set messages on primary only

* add TODO comment to remove repeats in secondary and primary memories

* better commentary in nb

* small nit in nb

---------

Co-authored-by: Andrei Fajardo <andrei@nerdai.io>
  • Loading branch information
jerryjliu and nerdai committed May 25, 2024
1 parent 4eab119 commit 7a7cc05
Show file tree
Hide file tree
Showing 27 changed files with 1,716 additions and 63 deletions.
1 change: 1 addition & 0 deletions docs/docs/api_reference/memory/simple_composable_memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: llama_index.core.memory.simple_composable_memory
1 change: 1 addition & 0 deletions docs/docs/api_reference/memory/vector_memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: llama_index.core.memory.vector_memory
2 changes: 1 addition & 1 deletion docs/docs/examples/agent/anthropic_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand Down
Loading

0 comments on commit 7a7cc05

Please sign in to comment.