跳轉到

下載檔案

此 API 可取得指定檔案的完整處理結果,包含三個主要部分:

  • raw_file:檔案的基本資訊與原始屬性(如檔名、副檔名、大小等)

  • parsed_result:系統自動解析後的純文字內容,用於檢視與驗證原始語意

  • chunks:該檔案被切段後的段落清單,每個段落可作為語意檢索或向量化的最小單位

這支 API 通常用於檢查內容處理狀況、人工審查段落是否正確,或手動建立 Fileset 前的資料確認流程。

curl -X 'GET' \
  'http://127.0.0.1:8000/v1/files/{file_id}/content?file_type=raw_file' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <your-api-key>'

Request Headers

Key Value
Request Method GET
accept application/json
Authorization Bearer

Query Parameters

Field Type Note Required
file_id string uuid true
file_type string 可選擇取得 raw_file、parsed_result、chunks 的結果,預設是 raw_file false
quality string 可選擇取得不同品質轉換的結果,包含 HQ、LQ、STD,預設為 HQ false

Response Body

Binary