Skip to main content

Interface: IKbRetrievalOptions

Defined in: types.ts:390

The per-call overrides of the knowledge-base retrieval: how many chunks, and from which similarity on.

IGatewayAskInput.kbRetrieval; prepareCall hands the values to KbRetriever.retrieve, whose config holds the defaults.

Properties​

k?​

optional k?: number

Defined in: types.ts:392

How many chunks at most, best first; the retriever's k (default 5) when omitted.


minScore?​

optional minScore?: number

Defined in: types.ts:394

The similarity below which a hit is dropped; the retriever's minScore (default 0.6) when omitted.