agentskit.js

createHybridRetriever

Auto-generated API reference for createHybridRetriever.

Function: createHybridRetriever()

createHybridRetriever(base, options?): Retriever

Defined in: packages/rag/src/rerank.ts:268

Combine a vector-backed base retriever with a BM25 keyword pass over the same candidate pool. Final score is a weighted sum of the two min-max-normalized scores using a finite relative weight pair that sums to 1 (both zero β†’ 0.5/0.5).

#Parameters

#base

Retriever

#options?

HybridRetrieverOptions = \{\}

#Returns

Retriever

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.