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-clischemasIndexConfigembed
    Attribute●Since v0.4

    embed

    Copy
    embed: str
    View source on GitHub

    Required. Identifier or reference to the embedding model or a custom embedding function.

    The format can vary:

    • ":<model_name>" for recognized providers (e.g., "openai:text-embedding-3-large")
    • "path/to/module.py:function_name" for your own local embedding function
    • "my_custom_embed" if it's a known alias in your system

    Examples: - "openai:text-embedding-3-large" - "cohere:embed-multilingual-v3.0" - "src/app.py:embeddings"

    Note: Must return embeddings of dimension dims.