Skip to content

[sdk] Add simple retrieval, filter, count, aggregate and branch helpers #593

Done

Description

@ravi-decoverai

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

Problem

BM25, vectors, hybrid retrieval, filtering, aggregation and branching already have server foundations. Developers still construct nested native/OpenSearch request bodies, and several operations lack convenient typed SDK methods.

Scope

  • Provide concise text, semantic and hybrid search helpers with filters, field projection, limits and optional reranking.
  • Add typed filter builders and count/aggregate helpers over existing search semantics.
  • Expose schema/embedding configuration and branch create/list/delete through public SDK methods.
  • Keep lexical search usable without embeddings; require explicit model/provider configuration for semantic query-by-text.
  • Preserve an advanced native-request escape hatch for features outside the convenience API.
  • Return consistent normalized hits and metadata using the shared contract.

Done when

  • Helpers in all three languages produce requests/results equivalent to the documented native operations on shared fixtures.
  • Semantic setup failures clearly identify the required vector field/model instead of silently selecting a provider.
  • Count distinguishes exact totals from lower bounds; aggregation semantics are documented.
  • Branch helpers surface existing restrictions, including unsupported sharded namespaces, without claiming broader support.
  • A developer can compose filtering, projection and retrieval without learning the storage wire representation.
  • Examples cover one lexical, one semantic/hybrid and one structured exploration task.

Dependencies and boundaries

Depends on #591 and #592. Integrates with #584. Path/glob (#585), ranged read (#586), ingestion (#587) and indexed grep (#588) remain Phase L capabilities; existing wildcard/full-document APIs must not be presented as substitutes.

Native client methods · request models · branching roadmap.

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