Skip to content

Indexing Revamp#77

Open
ashish-spext wants to merge 21 commits into
mainfrom
feat/add-indexing-v2
Open

Indexing Revamp#77
ashish-spext wants to merge 21 commits into
mainfrom
feat/add-indexing-v2

Conversation

@ashish-spext

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0acb08ac8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread videodb/video.py
warn_legacy_search_once()
return self.legacy_search(query=query, **kwargs)

return self._new_search(query=query, **kwargs)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve playback helpers for default searches

When an existing call uses the common default form video.search("..."), it now reaches this branch and returns a SearchResponse instead of the previous SearchResult. For shot responses the wrapper only exposes get_shots/iteration and does not delegate compile(), play(), or get_embed_code(), so code that compiles or plays default search results now fails with AttributeError. Either keep shot searches returning a SearchResult-compatible object or add those passthrough helpers to SearchResponse.

Useful? React with 👍 / 👎.

Comment thread videodb/video.py
for name, value in zip(legacy_arg_names, args):
kwargs.setdefault(name, value)

has_old = bool(args) or any(k in kwargs and kwargs[k] is not None for k in old_params)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Route legacy stitch searches to legacy_search

The legacy Video.search accepted extra endpoint flags through **kwargs, including stitch, but old_params does not include those legacy-only keys. A call such as video.search("...", stitch=True) therefore no longer goes through legacy_search; it is posted to /video/{id}/search/v2, so the legacy endpoint never receives the flag. Add the legacy passthrough flags to the detection set, or otherwise route them before falling through to the v2 search.

Useful? React with 👍 / 👎.

0xrohitgarg and others added 16 commits June 24, 2026 16:23
Add rtstream.understand()/get_understanding()/list_understanding() and the
RTStreamUnderstanding object (start/stop/get_records/refresh + outputs source
descriptors), mirroring the video v2 understand pattern and the existing
RTStreamSceneIndex style. Understanding is independent of scene indexing.
Add RTStream v2 understand SDK methods
rtstream.index(source=understanding.outputs['scene'])/get_index()/list_indexes()
and the RTStreamIndex object (start/stop/get_records/refresh), mirroring
RTStreamUnderstanding and the video Index pattern.
create_alert/list_alerts/enable_alert/disable_alert on RTStreamIndex, mirroring
RTStreamSceneIndex but on the /indexes/{id}/alert routes.
RTStream v2: index alert SDK methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants