Skip to content

Batch operations (batch_add) #26

Description

@JartanFTW

Problem

Adding memories one at a time is inefficient for bulk ingestion (e.g. importing a knowledge base, backfilling from another system). No batch primitive exists in the Protocol — callers must loop and pay per-call overhead.

Proposed Solution / Alternatives

Add batch_add to the MemoryBackend Protocol. Backends that support native batch operations can override for efficiency; others get a default sequential loop. Enables future bulk workflows without requiring every backend to implement batch logic from scratch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions