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-coreindexingbaseRecordManagerupdate
    Method●Since v0.1

    update

    Upsert records into the database.

    Copy
    update(
      self,
      keys: Sequence[str],
      *,
      group_ids: Sequence[str | None] | None = None,
      time_at_least: float | None = None
    ) -> None

    Parameters

    NameTypeDescription
    keys*Sequence[str]

    A list of record keys to upsert.

    group_idsSequence[str | None] | None
    Default:None

    A list of group IDs corresponding to the keys.

    time_at_leastfloat | None
    Default:None

    Optional timestamp. Implementation can use this to optionally verify that the timestamp IS at least this time in the system that stores the data.

    e.g., use to validate that the time in the postgres database is equal to or larger than the given timestamp, if not raise an error.

    This is meant to help prevent time-drift issues since time may not be monotonically increasing!

    View source on GitHub