ChunkSearchResult
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] |
topic |
str |
||
score |
float |
Example
from h2ogpte.rest_async.models.chunk_search_result import ChunkSearchResult
# TODO update the JSON string below
json = "{}"
# create an instance of ChunkSearchResult from a JSON string
chunk_search_result_instance = ChunkSearchResult.from_json(json)
# print the JSON string representation of the object
print(ChunkSearchResult.to_json())
# convert the object into a dict
chunk_search_result_dict = chunk_search_result_instance.to_dict()
# create an instance of ChunkSearchResult from a dict
chunk_search_result_from_dict = ChunkSearchResult.from_dict(chunk_search_result_dict)