Skip to content

[sdk] Unify bulk, pagination and bounded multi-query execution #596

Done

Description

@ravi-decoverai

Phase: M - SDK simplification · Tracker: #590 · Priority: P1

Problem

Bulk ingestion and pagination already exist. Their public models differ across Python's compatibility and native APIs, and Python msearch executes N sequential requests. Agent applications need predictable, bounded concurrency without changing query DSLs.

Scope

  • Reuse the ordinary-document and search models for single/bulk and single/paged operations.
  • Preserve existing batch byte/count caps, duplicate-ID ordering and partial-failure reporting.
  • Add bounded concurrent independent-query execution with input-order result correlation and per-query failures.
  • Describe client fan-out accurately; do not imply it is one server-side batched request.
  • Expose cancellation and operation-wide limits consistently.
  • Keep supported-sort, snapshot and kNN/hybrid/rerank pagination limitations explicit.

Done when

  • Supported queries can move from search to iteration without changing request or hit models.
  • Single-write documents can be passed unchanged to bulk ingestion.
  • Concurrency limits, cancellation and partial-failure reporting are checked with a delayed/faulting server.
  • Multi-query results correspond to input positions and retain per-query diagnostics.
  • Unsupported pagination modes fail clearly, and concurrent mutation semantics are documented.
  • Bulk operations do not introduce mandatory flushes or weaken the existing retry contract.

Dependencies and evidence

Depends on #592 and #593; async Python variants use #595.

Python msearch/native helpers · TypeScript batching/pagination contract · conformance suite.

Activity

  1. added
    roadmap
    area:api
    phase:M
    on Nov 27, 2026
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

    area:apiphase:Mroadmap

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions