Open dividor opened 8 months ago
I think we can support this is we add additional metadata into saved passages in archival (e.g. like in #294, which includes timestamps), and adding additional function call options for the agent to be able to write queries that filter by data sources. Once #339 is completed, we can start customizing the way archival queries are done.
Describe the bug I would like the bot to search different stores depending on the task. For example, I have a list of humanitarian disasters, and reports for each of them. If asked to list disasters for Oct 2023 I want it to just search the high-level list.
I have tried using the persona, even instructing directly to search a particular store. The debug shows the bot understands and will search the store, but looking at the results, it has not. This loses information as it also doesn't page through detailed reports archival memory to get the full list of disasters.
It almost seems as if the bot will only work with one single archival store.
Note, I tried this on
pymemgpt
andpymemgpt-nightly
.To Reproduce Steps to reproduce the behavior:
memgpt load directory --name disasters_high_level_list --input-dir ./disasters --recursive
memgpt load directory --name detailed_disasters_report --input-dir ./docs_spr_prefix --recursive
memgpt add persona --name reliefweb_expert -f reliefweb_persona.txt
memgpt add human --name reliefweb_responder --text "You are an humanitarian responder monitoring the latest news and developments of humanitarian disasters. You want full information where possible, not summaries"
memgpt run --human reliefweb_responder --persona reliefweb_expert --first --agent reliefweb_agent --debug
/attach
and attache the two strores detailed_disasters_report and disasters_high_level_listExpected behavior If the bot has multiple stores and the user wants data from one particular store, we should be able to prompt the bot to search just that store.
Screenshots
Additional context
How did you install MemGPT?
From the official package?
pip install pymemgpt-nightly
version: pymemgpt-nightly 0.1.18.dev20231109
Your setup (please complete the following information)
Your OS: MacOS
Where you're trying to run MemGPT from: Terminal
Your python version (run
python --version
): Python 3.9.12If you installed with
pip install pymemgpt
: pymemgpt-nightly 0.1.18.dev20231109Local LLM details