Skip to main content

Module transcript_search

Module transcript_search 

Source
Expand description

What was said, and where: the transcript search RPCs.

search_transcripts, count_transcripts and search_video_transcript are the public functions docs/rpc.md documents; this module is the one place in the workspace they are called from. The binding list is why. The page call takes ten arguments and the count six of the same filters in a different order, so a second copy of the call is how a page size ends up bound to p_require_all - the mistake the API’s own comment describes, and one no test would have to fail for it to reach production.

Every argument is passed by name (p_query => $1), which is what rpc.md tells outside callers to do. Both consumers then exercise the convention the contract documents rather than a positional call only this code knows is correct.

Structs§

TranscriptCueRow
A row of search_transcripts: one matching utterance, and where it is.
TranscriptMomentRow
A row of search_video_transcript: one matching cue in one video, with the moment number the function assigns - cues more than ten seconds apart begin a new moment, so the rolling repeats around one mention group.
TranscriptQuery
One transcript search: the filters the page and the count share, plus the page and the sort.

Enums§

TranscriptSort
What a transcript search is ordered by.
TranscriptSource
Which caption pool a track came from.

Constants§

DEFAULT_PAGE_SIZE
What rpc.md documents as the default page size, and what the CLI uses.

Functions§

count
How many utterances the same query matches in total.
moments
Every matching cue in one video, in playback order and capped at 200 rows by the function itself.
search
One page of matching utterances, ordered by q.