Chunk
Properties
Name |
Type |
Description |
Notes |
|---|---|---|---|
text |
str |
The text represented by the chunk |
|
id |
int |
The identifier of the chunk |
|
name |
str |
||
size |
int |
The size in bytes. |
|
pages |
str |
||
start_time |
float |
For audio/video transcript chunks, the start time in seconds of the chunk’s content, located within the document’s diarization segments: exact at a speaker segment’s boundary, and linearly interpolated by character position when a segment spans multiple chunks. Populated for transcript chunks returned by the get_chunks endpoint (including a mid-segment continuation chunk); null for non-transcript chunks and documents without captured segment timestamps. Chunk search and match results do not carry per-chunk times — use get_chunks, or get_audio_timestamps for full exact per-segment timing. |
[optional] |
end_time |
float |
For audio/video transcript chunks, the end time in seconds of the chunk’s content, located within the document’s diarization segments: exact at a speaker segment’s boundary (so the final chunk ends at the true segment end) and linearly interpolated by character position within a segment that spans multiple chunks, so it never overshoots the text the chunk holds. Populated for transcript chunks returned by the get_chunks endpoint; null for non-transcript chunks and documents without captured segment timestamps. Chunk search and match results do not carry per-chunk times. |
[optional] |
Example
from h2ogpte.rest_async.models.chunk import Chunk
# TODO update the JSON string below
json = "{}"
# create an instance of Chunk from a JSON string
chunk_instance = Chunk.from_json(json)
# print the JSON string representation of the object
print(Chunk.to_json())
# convert the object into a dict
chunk_dict = chunk_instance.to_dict()
# create an instance of Chunk from a dict
chunk_from_dict = Chunk.from_dict(chunk_dict)