text_preview, use chunk retrieval to fetch the full chunk text and nearby chunks from the document manifest stored in Vault.
Endpoint
Endpoint
When to use it
Search is optimized for relevance and compact responses. That means results often contain only a preview of the matched chunk. If the match lands inside a table, exhibit list, or a passage that spans several chunks, callread-chunks to recover the surrounding text.
Example workflow:
- Search returns chunk
13with a partial exhibit table. - Request
start=12&end=14. - Read the full text of chunks
12,13, and14together.
Ranges are inclusive and capped at 10 chunks per request.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Vault ID |
objectId | string | Yes | Processed object ID |
start | integer | No | First chunk index to return. Defaults to 0. |
end | integer | No | Last chunk index to return, inclusive. If omitted, only the start chunk is returned. |
Example
Response
Response fields
| Field | Description |
|---|---|
object_id | Object that owns the returned chunks |
vault_id | Vault containing the object |
chunks | Full chunk entries for the requested range |
total_chunks | Total stored chunk count for the object |
| Field | Description |
|---|---|
index | Chunk index within the document |
text | Full text of the chunk |
page_start, page_end | PDF page span when available |
word_start_index, word_end_index | OCR word range when available |
Notes
endis clamped to the document’s final chunk if you request past the end.- Requests where
startis out of range return an error. - Objects without stored chunks return
total_chunks: 0and an emptychunksarray.

