Skip to content

Expose audio/video time_ranges citations - #42

Merged
EricNGOntos merged 2 commits into
mainfrom
feat/wuchengke/media-time-ranges
Nov 12, 2026
Merged

EricNGOntos merged 2 commits into
mainfrom
feat/wuchengke/media-time-ranges

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • TimeRange (start_ms, end_ms) and optional time_ranges on RetrievalSource and RetrievalReferencedChunk. Previously Pydantic dropped the field the API returns for audio/video citations (Speech audio and video parsing (media track) knowhere#547).
  • ChunkMetadata types the transcript fields: time_ranges, speakers, media, source_kind.
  • Usage docs: citation example for audio/video, and the supported-format table now matches the API (adds .tsv, .webp, .tif, .heic, .heif, .html, .htm, audio and video; drops .ppt and .svg, which the API does not accept).

Testing

  • pytest: 268 passed. mypy src: clean.

🤖 Generated with Claude Code

EricNGOntos and others added 2 commits November 12, 2026 05:47
Retrieval sources and referenced chunks now keep time_ranges ([TimeRange
start_ms, end_ms]) for audio and video transcripts instead of dropping them,
and ChunkMetadata types the transcript fields (time_ranges, speakers, media,
source_kind). The supported-format table matches the API and adds audio and
video.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ubuntu-latest now resolves to Ubuntu 26.04, where actions/setup-python has no
Python 3.9 build, and the package still declares 3.9 support.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@EricNGOntos
EricNGOntos merged commit 5cd047c into main Nov 12, 2026
5 checks passed
@EricNGOntos
EricNGOntos deleted the feat/wuchengke/media-time-ranges branch November 12, 2026 14:22
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.

1 participant