Genkit JS API reference
    Preparing search index...
    • Creates a Firestore Document Retriever.

      This function returns a DocumentRetriever function that retrieves documents from a Firestore collection based on the provided Vertex AI Vector Search neighbors.

      Parameters

      • db: Firestore

        The Firestore instance.

      • collectionName: string

        The name of the Firestore collection.

      Returns DocumentRetriever

      • The DocumentRetriever function.