Retriever
Retriever = (
query,limit) => readonlystring[] |Promise<readonlystring[]>
Defined in: types.ts:37
A retriever returns an ordered list of document ids for a query, best first. It may be synchronous or asynchronous so vector backends can be plugged in.
Parameters
Section titled “Parameters”string
number
Returns
Section titled “Returns”readonly string[] | Promise<readonly string[]>