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.postgresbaseHNSWConfig
    Class●Since v2.0

    HNSWConfig

    Configuration for HNSW (Hierarchical Navigable Small World) index.

    Copy
    HNSWConfig()

    Bases

    ANNIndexConfig

    Attributes

    attribute
    kind: Literal['hnsw']
    attribute
    m: int

    Maximum number of connections per layer. Default is 16.

    attribute
    ef_construction: int

    Size of dynamic candidate list for index construction. Default is 64.

    Inherited fromANNIndexConfig

    Attributes

    Avector_type: Literal['vector', 'halfvec']
    —

    Type of vector storage to use.

    View source on GitHub