DocumentRetriever: (
    docIds: Neighbor[],
    options?: Options,
) => Promise<Document[]>

A document retriever function that takes an array of Neighbors from Vertex AI Vector Search query result, and resolves to a list of documents. Also takes an options object that can be used to configure the retriever.

Type Parameters

  • Options extends { k?: number } = { k?: number }

Type declaration