Skip to content

Retriever

Retriever = (query, limit) => readonly string[] | Promise<readonly string[]>

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.

string

number

readonly string[] | Promise<readonly string[]>