Interface: RagRetrievalDiagnostics
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:182
Diagnostics emitted by retrieval operations.
Properties
dataSourceHits?
optionaldataSourceHits:Record<string,number>
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:188
effectiveDataSourceIds?
optionaleffectiveDataSourceIds:string[]
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:189
embeddingTimeMs?
optionalembeddingTimeMs:number
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:183
hyde?
optionalhyde:object
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:200
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/cognition/rag/IRetrievalAugmentor.ts:190
policy?
optionalpolicy:object
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:206
confidence
confidence:
RetrievalConfidenceSummary
escalations
escalations:
string[]
profile
profile:
MemoryRetrievalProfile
rerankingTimeMs?
optionalrerankingTimeMs:number
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:185
retrievalTimeMs?
optionalretrievalTimeMs:number
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:184
strategyUsed?
optionalstrategyUsed:"hybrid"|"similarity"|"mmr"
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:187
totalTokensInContext?
optionaltotalTokensInContext:number
Defined in: packages/agentos/src/cognition/rag/IRetrievalAugmentor.ts:186