-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support updating existing memories (#22)
* fix issue where looking for no collection throws error * checkpoint * add update to chroma * add updating memories * support ephemeral mode * formatting * add flag for auto update * fix tests * formatting
- Loading branch information
Showing
10 changed files
with
299 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Given these existing triples in our graph `data`: | ||
``` | ||
${existing_memory} | ||
``` | ||
|
||
and this RDF graph that defines our desired ontology and namespaces: | ||
``` | ||
${ontology} | ||
``` | ||
|
||
And this user message: | ||
``` | ||
${user_message} | ||
``` | ||
|
||
Analyze the user message to find information that updates the existing triples while adhering to these rules: | ||
- First find all the information in the user message that updates existing information in the graph `data`. | ||
- Second replace the values of existing triples with the updated information without modifying anything else. | ||
- Finally output the dictionary of existing triples as a string that can be converted back to a list. | ||
- IGNORE any new information that does not update the existing triples. | ||
- NEVER add any new triples to the existing triples. | ||
- If there are no information to update then return the existing triples as they are. | ||
- Please return only the string of the dictionary without using ``` or any other code formatting symbols. Return only plain text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.