Sometimes when doing RAG, we need custom logic to convert the user messages to a query that can be sent to memory banks for retrieval purposes.
This could be as simple as strong concatenation in some cases or using an LLM for query generation.
This PR introduces a notion of MemoryQueryGenerators and associated configs.
Agent reads this config to understand how to generate the query before calling memory apis.
Sometimes when doing RAG, we need custom logic to convert the user messages to a query that can be sent to memory banks for retrieval purposes. This could be as simple as strong concatenation in some cases or using an LLM for query generation.
This PR introduces a notion of
MemoryQueryGenerators
and associated configs. Agent reads this config to understand how to generate the query before calling memory apis.Tested with --