Class KnowledgeRetrievalOptions

Assembly: redb.Route.Llm.dll

Options for the step.

public sealed class KnowledgeRetrievalOptions

Inheritance

Object→KnowledgeRetrievalOptions

Properties

Collection

Collection to search (null = across all collections).

public string? Collection { get; set; }

EmbeddingProvider

When set (or resolvable from DI), retrieval is semantic (embed query → cosine

public IEmbeddingProvider? EmbeddingProvider { get; set; }

MaxCharsPerChunk

Max chars of each chunk injected (0 = full).

public int MaxCharsPerChunk { get; set; }

Preamble

Line placed above the retrieved chunks in the system prompt.

public string Preamble { get; set; }

Query

Chooses the query text. Default: the exchange body as string.

public Func<IExchange, string?>? Query { get; set; }

Store

Explicit store. When null, resolved from the exchange's .

public IKnowledgeStore? Store { get; set; }

TopK

How many chunks to inject.

public int TopK { get; set; }