LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    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
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.storebaseIndexConfigfields
    Attribute●Since v2.0

    fields

    Copy
    fields: list[str] | None
    View source on GitHub

    Fields to extract text from for embedding generation.

    Controls which parts of stored items are embedded for semantic search. Follows JSON path syntax:

    • ["$"]: Embeds the entire JSON object as one vector (default)
    • ["field1", "field2"]: Embeds specific top-level fields
    • ["parent.child"]: Embeds nested fields using dot notation
    • ["array[*].field"]: Embeds field from each array element separately

    Note:

    You can always override this behavior when storing an item using the index parameter in the put or aput operations.

    # Embed entire document (default)
    fields=["$"]
        
    # Embed specific fields
    fields=["text", "summary"]
        
    # Embed nested fields
    fields=["metadata.title", "content.body"]
        
    # Embed from arrays
    fields=["messages[*].content"]  # Each message content separately
    fields=["context[0].text"]      # First context item's text

    Note:

    • Fields missing from a document are skipped
    • Array notation creates separate embeddings for each element
    • Complex nested paths are supported (e.g., "a.b[*].c.d")