Genkit JS API reference
    Preparing search index...

    Type Alias DocumentIndexer<Options>

    DocumentIndexer: (docs: Document[], options?: Options) => Promise<string[]>

    Indexer function that takes an array of documents, stores them in a database of the user's choice, and resolves to a list of document ids. Also takes an options object that can be used to configure the indexer. Only Streaming Update Indexers are supported.

    Type Parameters

    • Options extends {} = {}

    Type Declaration