LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreEmbeddings

    Embeddings

    Classes

    Class

    Embeddings

    Interface for embedding models.

    This is an interface meant for implementing text embedding models.

    Text embedding models are used to map text to a vector (a point in n-dimensional space).

    Texts tha

    Class

    DeterministicFakeEmbedding

    Deterministic fake embedding model for unit testing purposes.

    This embedding model creates embeddings by sampling from a normal distribution with a seed based on the hash of the text.

    Danger

    "To

    Class

    FakeEmbeddings

    Fake embedding model for unit testing purposes.

    This embedding model creates embeddings by sampling from a normal distribution.

    Toy model

    Do not use this outside of testing, as it i