createKeywordRetriever
createKeywordRetriever(
documents):Retriever
Defined in: retrievers/keyword-retriever.ts:26
A deterministic TF-IDF keyword retriever.
This is the offline baseline retriever for the evaluation harness. It does not depend on embeddings or any external service, so it produces stable metrics that future vector/hybrid retrievers can be compared against.
Parameters
Section titled “Parameters”documents
Section titled “documents”readonly EvalDocument[]