Files 的用途比較像「把這份文件交給模型讀,然後在這次對話中問它」。xAI 官方 Files 文件的核心說法是,Grok 可以搜尋並推理附加到 chat messages 的文件;當文件被附加到 chat message 時,xAI API 會在背後加入 attachment_search server-side tool,把請求轉成 agentic workflow。
官方 Chat with Files 範例展示兩種常見做法:用公開 URL 附加文件,或使用已上載檔案的 file_id;該範例使用 Responses API,示例模型為 grok-4.20-reasoning。 Files API 參考文件也說明,Files API 可用於 upload、manage、retrieve files for use with Grok models,並可把 files attached to chat messages。
因此,如果產品需求是單份 PDF、報告、合約、簡報,或一批臨時文件的摘要與問答,官方文件最直接支持的路徑是 Files/Chat with Files。
Collections 與 Files 的定位不同。xAI 文件明確寫到,Collections 可用於 building a RAG application 或 search across large document sets,並提供 persistent document storage 與 semantic search across many documents。
如果要透過 API 管理 Collections,xAI 文件說明需要建立具備 AddFileToCollection 權限的 Management API Key。 REST API 參考亦列出把 existing document 加入 collection 的 endpoint:/v1/collections/{collection_id}/documents/{file_id}。
換句話說,官方文件支持這樣理解:Files 偏向把文件帶入某一次 chat;Collections 偏向建立可重用、可搜尋、可長期維護的文件集合;Collections Search 則是在 collection 內容上進行檢索的工具。
xAI 的 Collections Search Tool 文件展示了 collections_search 工具呼叫,參數包括 query 和 limit。 另一個 xAI Grok 4.20 相關頁面的導覽中,也出現「Collections Search (RAG)」這一項,顯示它在文件結構中被放在工具與 RAG 檢索脈絡下。
不過,這只能證明 xAI 文件有 Collections Search/RAG 工具能力;它仍不等於證明 Grok 4.3 這個指定版本已被官方列入支援。做技術查核時,應把「平台有工具」和「某個模型版本支援完整流程」分開處理。
| 需求 | 較合適的 xAI 能力 | 官方文件可支持的說法 |
|---|---|---|
| 單次文件摘要或問答 | Files / Chat with Files | Grok 可搜尋並推理附加到 chat messages 的文件;可用公開 URL 或 private file ID;系統會啟用 attachment_search。 |
| 用官方範例快速測試文件問答 | Chat with Files | 官方範例展示可用 public URL 或 file_id 附加文件,示例模型為 grok-4.20-reasoning。 |
| 長期知識庫或 RAG 應用 | Collections | Collections 提供 persistent document storage,支援跨多文件 semantic search,官方文件明確提到 RAG application 與大型文件集搜尋。 |
| 在文件集合內做語義檢索 | Collections Search | 官方工具文件展示 collections_search 工具呼叫與 query、limit 等參數。 |
| 把文件管理流程產品化 | Collections API | 使用 Collections API 需要具備 AddFileToCollection 權限;REST 參考列出把 existing document 加入 collection 的 endpoint。 |
第一,本文提供的官方模型來源沒有可引用的 Grok 4.3 專頁或支援矩陣。可見的官方模型資料包括 Grok 4、Grok 4 0709、Grok 4 Fast,以及 Grok 4.20 相關頁面;這些可以支持 xAI 有 Grok 4 系列與相關工具文件,但不能直接推論為 Grok 4.3 已支援完整 Files + Collections Search 流程。
第二,Google Cloud 的 Vertex AI 文件提到的是 Grok 4.1 Fast,並描述它具備 strong tool-calling capabilities 和 efficient knowledge base synthesis;這不是 Grok 4.3,而且屬於 Vertex AI partner model 文件脈絡,不能當作 xAI 原生 API 對 Grok 4.3 的官方支援聲明。
第三,第三方比較頁雖然提到 Grok 4.3,但來源不是 xAI 官方 API 文件。對於模型版本與工具支援這類技術問題,第三方介紹不應取代官方支援矩陣。
較準確的表述是:
xAI 官方文件顯示,Grok 可透過 Files 處理附加文件;Collections 提供 persistent document storage 與 semantic search,可用於 RAG/大型文件集搜尋;xAI 亦有 Collections Search Tool 文件。不過,就目前提供來源,未能確認 Grok 4.3 這個指定版本已由官方列明支援完整 Files + Collections Search 知識庫問答流程。
不建議把這句改寫成「Grok 4.3 已官方確認支援完整 RAG 知識庫流程」。更嚴謹的結論是:xAI API 文件支持 Files、Collections 與 Collections Search 這些平台積木;Grok 4.3 的版本層面確認,仍然證據不足。
如果只是要做一次性文件問答,先看 Files、Chat with Files 和 Files API。這些文件已描述公開 URL、已上載檔案 file_id、附加到 chat messages,以及 attachment_search 的運作方式。
如果要建立可重用知識庫或 RAG 應用,先看 Collections、Collections via API、Collection Management REST API,以及 Collections Search Tool。這些文件支持 persistent storage、semantic search、API 權限設定,以及把 existing document 加入 collection 的管理流程。
如果產品、銷售或技術文件必須指定「Grok 4.3」,就應等待或引用 xAI 官方對該版本的模型頁、支援矩陣或 API 文件。現階段不應把 Grok 4、Grok 4.20、Grok 4 Fast、Grok 4.1 Fast 或第三方 Grok 4.3 描述混為同一個官方支援聲明。
可以確認的是,xAI 官方文件支持 Files、Collections 與 Collections Search/RAG 相關平台能力。 未能確認的是,Grok 4.3 這個指定版本已官方支援「先讀 files,再用 Collections Search 做完整知識庫問答」。就目前提供證據,這應標記為證據不足,而不是已確認。