Craft RAG Import By File

指定されたファイルパスからコンテンツを読み込み、CraftのRAGコーパスにインポートを開始します。 返却される成功フラグは、インポートジョブが正常に開始されたことを示しますが、インポートプロセス自体の完了を意味するものではありません。 ジョブの進行状況と結果は、RAG Get Operation APIや、RAG List Operations APIを使用して監視できます。

Required Scope

APIの実行に必要なScopeです。

beta.craft.rag.importByFile

Required Role

管理画面でScopeを追加する際に必要な権限です。

Craft > Craft 設定の編集
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Craft Sitesのサイト名

string
required

インポートするファイルのCraftサイト内でのパス。スラッシュで始まる必要があります。

string
required

インポート先のRAGコーパスID

Headers
string

今後利用する可能性のある予約語です。現在は設定不要です。

string

認証情報を含むトークンです。"Authorization" ヘッダーに Bearer <token> の形式で設定してください。

string

リクエストのコンテンツタイプを指定します。通常は application/json を使用してください。

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Choose an example:
application/json