langchain.js
    Preparing search index...

    Install and import from the "@langchain/mongodb" integration package instead. Type that defines the arguments required to initialize the MongoDBAtlasVectorSearch class. It includes the MongoDB collection, index name, text key, embedding key, primary key, and overwrite flag.

    MongoDB collection to store the vectors.

    A Collections Index Name.

    Corresponds to the plaintext of 'pageContent'.

    Key to store the embedding under.

    The Key to use for upserting documents.

    interface MongoDBAtlasVectorSearchLibArgs {
        collection: Collection<Document>;
        embeddingKey?: string;
        indexName?: string;
        primaryKey?: string;
        textKey?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    collection: Collection<Document>
    embeddingKey?: string
    indexName?: string
    primaryKey?: string
    textKey?: string