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

    ANNIndexConfig

    Copy
    ANNIndexConfig()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    kindLiteral['hnsw', 'ivfflat', 'flat']
    vector_typeLiteral['vector', 'halfvec']
    attribute
    kind: Literal['hnsw', 'ivfflat', 'flat']

    Type of index to use: 'hnsw' for Hierarchical Navigable Small World, or 'ivfflat' for Inverted File Flat.

    attribute
    vector_type: Literal['vector', 'halfvec']

    Type of vector storage to use. Options:

    • 'vector': Regular vectors (default)
    • 'halfvec': Half-precision vectors for reduced memory usage

    Configuration for vector index in PostgreSQL store.