Skip to content

Conversation

@ashish-spext
Copy link
Collaborator

Motivation

  • Extend collection-level search to support RTStream results returned by a new collection-scoped rtstream search endpoint.
  • Allow callers to opt into RTStream-style searches via a namespace parameter and pass RTStream-specific options.
  • Return RTStream search result objects instead of video SearchResult when the rtstream namespace is used.

Description

  • Added new parameters to Collection.search including namespace, scene_index_id, stitch, rerank, rerank_params, and index_platform, and updated the return type to Union[SearchResult, RTStreamSearchResult].
  • When namespace == "rtstream" the method now builds a payload from the provided args and posts to the new endpoint f"{ApiPath.rtstream}/{ApiPath.collection}/{self.id}/{ApiPath.search}".
  • Maps the response results into RTStreamShot objects and returns an RTStreamSearchResult(collection_id=self.id, shots=shots).
  • Kept existing behavior for non-RTStream searches by delegating to SearchFactory and existing search implementations.

Testing

  • No automated tests were run for this change.

Codex Task

Align collection.search(namespace="rtstream") with RTStream.search()
by removing params not accepted by RTStream.search: stitch, rerank,
rerank_params, and index_platform.
@0xrohitgarg 0xrohitgarg merged commit 99ce6fa into release-0-4-0 Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants