SelfQueryRetriever<T>
Models & Types ยท AiDotNet.RetrievalAugmentedGeneration.Retrievers
Self-querying retriever: uses a text generator to split a natural-language query into a semantic search string plus structured metadata filters over known fields, then delegates to a base retriever with those filters merged in. Mirrors the LangChain/LlamaIndex self-query retriever. Without a generator it passes the query through unchanged (filters from the caller only).
Inheritance: RetrieverBase<T> โ SelfQueryRetriever<T>
Constructors
| Constructor | Summary |
|---|---|
SelfQueryRetriever(IRetriever<T> baseRetriever, IReadOnlyList<string> metadataFields, ITextGenerator generator, int defaultTopK) |