-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: improve recall summarize prompt (#15)
* optimize memory summary prompt * fix tests * change recall to be able to go n levels deep * fix test * format * remove unused import
- Loading branch information
Showing
4 changed files
with
108 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
You are trying to describe the following RDF graph in plain English. | ||
|
||
Here is the the RDF graph: | ||
Here is the user message which serves as context: | ||
``` | ||
${context} | ||
``` | ||
|
||
And here is the RDF graph that contains information relvant to the context: | ||
``` | ||
${memory} | ||
``` | ||
|
||
Describe the RDF graph in one paragraph and make sure to follow these rules: | ||
Summarize the user message and the RDF graph in one paragraph while following these rules: | ||
- FOCUS on the telling a story about the who, what, where, how, etc. | ||
- LEAVE OUT anything not explicitly defined, do not make assumptions. | ||
- DO NOT describe the RDF graph schema and DO NOT mention the RDF graph at all. | ||
- DO NOT mention the RDF graph schema and DO NOT mention the RDF graph at all. | ||
- If the RDF graph is empty then just return that there are currently no stored memory. | ||
- Make sure to use plain and simple English. |
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