Expand description
Byte-exact aliases600 retrieval and evidence envelope from the frozen Python format.
Structs§
- History
Counts - Counts that the transcript header reports; they fix the header’s length and so every code point position after it.
- History
Evidence - History
Pair Spec - One item’s transcript view of a session: its cutoff, the item it is about, and where its rendered text goes.
- History
Result - One item’s windows with their recovered text.
- History
Scanner - Single-pass form of the frozen retrieval: the transcript is pushed in pieces and only the last few hundred code points and a small record per window that has a hit are kept. Positions are code point indexes, as in the Python original.
- RowMeta
- What the first pass needs from each row. SQLite’s
json_extractyields these cheaply, without decoding the whole body. - Selected
- A window chosen for the evidence, before its text is recovered.
- Session
History - Renders one session’s rows for several items at once. Rows are read twice,
in the same snapshot:
count_rowover all of them fixes each header, thenrowover them in(position, stable_id)order renders each exactly once and hands it to every pair that includes it. The rendered text is byte-identical to the whole-string rendering of the frozen format; it is never held whole.completethen renders again, once, only the rows around the windows the sinks selected. - Snippet
- Span
Enums§
- Ordered
Value - Local ordered JSON, so the Python format never changes global serde_json features.
Traits§
- History
Sink - A sink that ends in a selection of windows once the whole transcript has been pushed.
- RowFetch
- Gives back the stored rows the passes saw.
- Text
Sink - Receives rendered transcript text piece by piece.
Functions§
- history_
scanner - A scanner for one item against one session.
basemust already be bounded and redacted once; the original item’s full body is used only for retrieval. None when the item has no searchable identifiers, which gives empty history. - redact
- retrieve
- Retrieves from a complete transcript text. Original title/body must be supplied, independently of the bounded classifier item.
- student_
segments - Training-format segments, item first, with history last in the session. Evidence is already bounded/redacted; serialization never bounds it again.