Interface: RagRetrievalDiagnostics
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:130
Diagnostics emitted by retrieval operations.
Properties
dataSourceHits?
optionaldataSourceHits:Record<string,number>
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:136
effectiveDataSourceIds?
optionaleffectiveDataSourceIds:string[]
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:137
embeddingTimeMs?
optionalembeddingTimeMs:number
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:131
hyde?
optionalhyde:object
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:148
HyDE-specific diagnostics, populated when HyDE retrieval is active.
hypothesis: The generated (or pre-supplied) hypothetical answer.hypothesisLatencyMs: Time spent generating the hypothesis via LLM.effectiveThreshold: Final similarity threshold after adaptive stepping.thresholdSteps: Number of times the threshold was lowered before results were found (0 means the initial threshold succeeded).
effectiveThreshold
effectiveThreshold:
number
hypothesis
hypothesis:
string
hypothesisLatencyMs
hypothesisLatencyMs:
number
thresholdSteps
thresholdSteps:
number
messages?
optionalmessages:string[]
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:138
policy?
optionalpolicy:object
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:154
confidence
confidence:
RetrievalConfidenceSummary
escalations
escalations:
string[]
profile
profile:
MemoryRetrievalProfile
rerankingTimeMs?
optionalrerankingTimeMs:number
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:133
retrievalTimeMs?
optionalretrievalTimeMs:number
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:132
strategyUsed?
optionalstrategyUsed:"hybrid"|"similarity"|"mmr"
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:135
totalTokensInContext?
optionaltotalTokensInContext:number
Defined in: packages/agentos/src/rag/IRetrievalAugmentor.ts:134