檢索文件內容
Last updated
Last updated
document_id
整數
必填。 要檢索內容的文件 ID。
start_chunk
整數
起始區塊索引。預設為 0。
end_chunk
整數
結束區塊索引。預設為 start_chunk + 20。
404
文件未找到
500
內部伺服器錯誤
對於大型文件,內容被拆分成多個區塊。您可以通過多次請求來檢索完整文件:
先發送一個請求,設置 start_chunk=0
使用返回的 end_chunk
值作為下一個請求的 start_chunk
繼續進行,直到檢索到所有區塊
此端點返回文件的原始文本內容,允許您訪問完整信息以進行詳細處理或分析。
Returns the content of the document with the specified ID, along with the index of the latest retrieved chunk. Each call fetches up to 20 chunks. To get more, use the end_chunk value from the response as the start_chunk for the next call.
The ID of the document to retrieve contents for.
Indicate the starting chunk that you want to retrieve. If not specified, the default value is 0.
Indicate the ending chunk that you want to retrieve. If not specified, the default value is start_chunk + 20.