Skip to main content

Interface: IRetrievalResult

Defined in: internal/kb-retriever/types.ts:105

What the Assembler receives from retrieval.

Properties​

hits​

hits: IChunkHit[]

Defined in: internal/kb-retriever/types.ts:109

The chunks of at least minScore, best first, at most k; what the assembler injects and cites.


noMatch​

noMatch: boolean

Defined in: internal/kb-retriever/types.ts:111

True when nothing passed the threshold.


query​

query: string

Defined in: internal/kb-retriever/types.ts:107

The query actually embedded (after rewrite).


searched​

searched: boolean

Defined in: internal/kb-retriever/types.ts:116

False when the call's scope names no library: the knowledge base was not used, and the prompt says nothing about it. True with noMatch: the knowledge base was searched and has nothing — the prompt tells the model to say so.