RetrievalSettings
Settings controlling how memory records are retrieved and injected into prompts (RAG).
Parameters
The retrieval storage to search for relevant memory records.
The provider that defines how to derive the search query from the prompt. Defaults to ai.koog.agents.longtermmemory.retrieval.search.LastUserMessageQueryProvider, which uses the last user message content.
The strategy that defines how to search the retrieval store.
The augmenter that defines how retrieved context is inserted into the prompt.
When true (default), retrieval and prompt augmentation happen automatically before each LLM call. When false, the storage and strategy are still accessible for manual use inside graph strategy nodes via ai.koog.agents.longtermmemory.feature.withLongTermMemory.
Namespace (table/collection name) for a request.
How to react to failures from storage or searchStrategy. Defaults to FailurePolicy.FAIL_FAST so that retrieval errors stop the LLM call instead of silently producing an answer without the required memory context.