Skip to content

QueryReformulator

type QueryReformulator = (query, results) => Promise<string>;

Callback that reformulates a low-quality query. Takes the original query and the weak results, returns a rewritten query string.

Parameter Type

query

string

results

RetrievalResult[]

Promise<string>