langchain.js
    Preparing search index...
    • Index data from the doc source into the vector store.

      Indexing functionality uses a manager to keep track of which documents are in the vector store.

      This allows us to keep track of which documents were updated, and which documents were deleted, which documents should be skipped.

      For the time being, documents are indexed using their hashes, and users are not able to specify the uid of the document.

      Parameters

      • args: IndexArgs
        • docsSource

          The source of documents to index. Can be a DocumentLoader or a list of Documents.

        • recordManager

          The record manager to use for keeping track of indexed documents.

        • vectorStore

          The vector store to use for storing the documents.

        • options

          Options for indexing.

      Returns Promise<IndexingResult>