LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    Standard Tests
    Text Splitters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    Standard Tests
    Text Splitters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Language
    Theme
    Pythonlangchain-classicindexes
    Module●Since v1.0

    indexes

    Indexes.

    Index is used to avoid writing duplicated content into the vectostore and to avoid over-writing content if it's unchanged.

    Indexes also :

    • Create knowledge graphs from data.

    • Support indexing workflows from LangChain data loaders to vectorstores.

    Importantly, Index keeps on working even if the content being written is derived via a set of transformations from some source content (e.g., indexing children documents that were derived from parent documents by chunking.)

    Attributes

    Functions

    Classes

    Modules

    View source on GitHub
    attribute
    DEPRECATED_LOOKUP: dict
    function
    create_importer
    class
    SQLRecordManager
    class
    VectorstoreIndexCreator
    module
    graph
    module
    vectorstore
    module
    prompts

    Create a function that helps retrieve objects from their new locations.

    The goal of this function is to help users transition from deprecated imports to new imports.

    The function will raise deprecation warning on loops using deprecated_lookups or fallback_module.

    Module lookups will import without deprecation warnings (used to speed up imports from large namespaces like llms or chat models).

    This function should ideally only be used with deprecated imports not with existing imports that are valid, as in addition to raising deprecation warnings the dynamic imports can create other issues for developers (e.g., loss of type information, IDE support for going to definition etc).

    A SQL Alchemy based implementation of the record manager.

    Logic for creating indexes.

    Graphs provide a natural language interface to graph databases.

    Vectorstore stubs for the indexing api.

    Relevant prompts for constructing indexes.