beta.rag.managed_indexes

Navigate to adjacent chunks

Returns the chunks adjacent to a position within a source, in reading order. NEXT fetches chunks at or after the end offset; PREVIOUS fetches chunks before the start offset. A 200 with an empty list means the source exists but no chunk falls in the requested direction; a 404 means the source has no chunks at all.

post/v1/rag/managed_indexes/{index_name}/navigate

Path parameters

index_namestring required

Request body

source_idstring required
start_offsetinteger required
end_offsetinteger required
direction'next' | 'previous' required
top_kinteger
content_typestring

Response

Successful Response

Changes