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-coreindexingbaseUpsertResponse
    Class●Since v0.2

    UpsertResponse

    A generic response for upsert operations.

    The upsert response will be used by abstractions that implement an upsert operation for content that can be upserted by ID.

    Upsert APIs that accept inputs with IDs and generate IDs internally will return a response that includes the IDs that succeeded and the IDs that failed.

    If there are no failures, the failed list will be empty, and the order of the IDs in the succeeded list will match the order of the input documents.

    If there are failures, the response becomes ill defined, and a user of the API cannot determine which generated ID corresponds to which input document.

    It is recommended for users explicitly attach the IDs to the items being indexed to avoid this issue.

    Copy
    UpsertResponse()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    succeededlist[str]
    failedlist[str]

    Attributes

    attribute
    succeeded: list[str]

    The IDs that were successfully indexed.

    attribute
    failed: list[str]

    The IDs that failed to index.

    View source on GitHub