LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
LangGraph SDK
  • Ui
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Utils
  • Server
  • Stream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
UiClientAuthReactLoggingReact UiUtilsServerStream
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraph-checkpointstoreIndexConfig
Interface●Since v0.0

IndexConfig

Configuration for indexing documents for semantic search in the store.

This configures how documents are embedded and indexed for vector similarity search.

Copy
interface IndexConfig

Properties

property
dims: number

Number of dimensions in the embedding vectors.

Common embedding model dimensions:

  • OpenAI text-embedding-3-large: 256, 1024, or 3072
  • OpenAI text-embedding-3-small: 512 or 1536
  • OpenAI text-embedding-ada-002: 1536
  • Cohere embed-english-v3.0: 1024
  • Cohere embed-english-light-v3.0: 384
  • Cohere embed-multilingual-v3.0: 1024
  • Cohere embed-multilingual-light-v3.0: 384
property
embeddings: Embeddings

The embeddings model to use for generating vectors. This should be a LangChain Embeddings implementation.

property
fields: string[]

Fields to extract text from for embedding generation.

Path syntax supports:

  • Simple field access: "field"
  • Nested fields: "metadata.title"
  • Array indexing:
    • All elements: "chapters[*].content"
    • Specific index: "authors[0].name"
    • Last element: "array[-1]"
View source on GitHub