LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.store.postgresbasePostgresIndexConfig
    Class●Since v2.0

    PostgresIndexConfig

    Copy
    PostgresIndexConfig()

    Bases

    IndexConfig

    Attributes

    View source on GitHub
    attribute
    ann_index_config: ANNIndexConfig

    Specific configuration for the chosen index type (HNSW or IVF Flat).

    attribute
    distance_type: Literal['l2', 'inner_product', 'cosine']

    Distance metric to use for vector similarity search:

    • 'l2': Euclidean distance
    • 'inner_product': Dot product
    • 'cosine': Cosine similarity

    Configuration for vector embeddings in PostgreSQL store with pgvector-specific options.

    Extends EmbeddingConfig with additional configuration for pgvector index and vector types.