Table of Contents

Class RagQueryOptions

Namespace
Mythosia.AI.Rag
Assembly
Mythosia.AI.Rag.Abstractions.dll

Public request model for per-query RAG overrides.

public sealed class RagQueryOptions
Inheritance
RagQueryOptions
Inherited Members

Properties

FinalFilter

Override for final selection policy applied after retrieval and optional re-ranking.

public RagFilter FinalFilter { get; set; }

Property Value

RagFilter

FinalSelection

Controls how final references are selected after optional re-ranking. Defaults to reranker-only selection for backward compatibility.

public RagFinalSelectionOptions FinalSelection { get; set; }

Property Value

RagFinalSelectionOptions

ProgressAsync

Optional async progress callback invoked when the RAG pipeline enters each processing stage.

public Func<RagProgressStage, Task>? ProgressAsync { get; set; }

Property Value

Func<RagProgressStage, Task>

RetrievalDerivation

Override for how retrieval candidate settings are derived from FinalFilter.

public RagRetrievalDerivation RetrievalDerivation { get; set; }

Property Value

RagRetrievalDerivation

StoreFilter

Optional metadata filter passed directly to SearchAsync(float[], int, VectorFilter?, CancellationToken) / HybridSearchAsync(float[], string, int, VectorFilter?, CancellationToken) on every retrieval call. Use this to scope searches by tenant, user, category, time range, etc. When null the retrieval is unfiltered (same as before). For logical isolation (e.g. tenant, category), add conditions via Where(string, string).

public VectorFilter? StoreFilter { get; set; }

Property Value

VectorFilter

Methods

GetRetrievalFilter(bool)

public RagRetrievalFilter GetRetrievalFilter(bool hasReranker)

Parameters

hasReranker bool

Returns

RagRetrievalFilter