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-coreretrieversBaseRetrievermetadata
    Attribute●Since v0.1

    metadata

    Optional metadata associated with the retriever.

    This metadata will be associated with each call to this retriever, and passed as arguments to the handlers defined in callbacks.

    You can use these to eg identify a specific instance of a retriever with its use case.

    Copy
    metadata: dict[str, Any] | None = None

    Used in Docs

    • Docusaurus integration
    • Jupyter notebook integration
    View source on GitHub