RetrievalSettings
data class RetrievalSettings(val storage: RetrievalStorage, val searchStrategy: SearchStrategy? = null, val promptAugmenter: PromptAugmenter = SystemPromptAugmenter(), val namespace: String? = null)(source)
Settings controlling how memory records are retrieved and injected into prompts (RAG).
Parameters
storage
The retrieval storage to search for relevant memory records.
searchStrategy
The strategy that defines how to search the retrieval store.
promptAugmenter
The augmenter that defines how retrieved context is inserted into the prompt.
namespace
Namespace (table/collection name) for a request.
Constructors
Link copied to clipboard
constructor(storage: RetrievalStorage, searchStrategy: SearchStrategy? = null, promptAugmenter: PromptAugmenter = SystemPromptAugmenter(), namespace: String? = null)