Table of Contents

Class QueryDiagnosticResult

Namespace
Mythosia.AI.Rag.Diagnostics
Assembly
Mythosia.AI.Rag.dll

Full diagnostic result for a query โ€” shows ALL chunks with scores and why each was included/excluded.

public class QueryDiagnosticResult
Inheritance
QueryDiagnosticResult
Inherited Members

Constructors

QueryDiagnosticResult(string, string?, int, double?, int, IReadOnlyList<ScoredChunkInfo>, ScoredChunkInfo?)

public QueryDiagnosticResult(string query, string? targetText, int topK, double? minScore, int totalChunks, IReadOnlyList<ScoredChunkInfo> allScoredResults, ScoredChunkInfo? targetChunkInfo)

Parameters

query string
targetText string
topK int
minScore double?
totalChunks int
allScoredResults IReadOnlyList<ScoredChunkInfo>
targetChunkInfo ScoredChunkInfo

Properties

AllScoredResults

public IReadOnlyList<ScoredChunkInfo> AllScoredResults { get; }

Property Value

IReadOnlyList<ScoredChunkInfo>

MinScore

public double? MinScore { get; }

Property Value

double?

Query

public string Query { get; }

Property Value

string

TargetChunkInfo

public ScoredChunkInfo? TargetChunkInfo { get; }

Property Value

ScoredChunkInfo

TargetText

public string? TargetText { get; }

Property Value

string

TopK

public int TopK { get; }

Property Value

int

TotalChunks

public int TotalChunks { get; }

Property Value

int

Methods

ToReport()

Returns a human-readable diagnostic report.

public string ToReport()

Returns

string