Table of Contents

Property RetrievalStrategy

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

RetrievalStrategy

Gets or sets the retrieval strategy that controls how candidate partitions are scored during the initial retrieval phase.

public IRetrievalStrategy RetrievalStrategy { get; set; }

Property Value

IRetrievalStrategy

An IRetrievalStrategy instance. Default is VectorRetrievalStrategy.

Examples

using var chat = new PdfChat(chatModel, embeddingModel);

// Switch to hybrid search (BM25 + vector with RRF fusion)
chat.RetrievalStrategy = new HybridRetrievalStrategy();

Remarks

The retrieval strategy determines the scoring method used to select initial candidates. Post-retrieval processing (reranking and MMR) is applied regardless of the chosen strategy.

See Also
Share