diff --git a/ja/api-reference/openapi_chat.json b/ja/api-reference/openapi_chat.json
index 0d9be3355..79bced5a8 100644
--- a/ja/api-reference/openapi_chat.json
+++ b/ja/api-reference/openapi_chat.json
@@ -1,14 +1,14 @@
{
"openapi": "3.0.1",
"info": {
- "title": "チャットアプリAPI",
- "description": "チャットアプリケーションはセッションの永続化をサポートしており、以前のチャット履歴をレスポンスのコンテキストとして使用できます。チャットボットやカスタマーサービス AI などに適用できます。",
+ "title": "チャットアプリ API",
+ "description": "チャットアプリケーションはセッション永続化をサポートしており、過去のチャット履歴を応答のコンテキストとして使用できます。チャットボット、カスタマーサービス AI などに適用できます。",
"version": "1.0.0"
},
"servers": [
{
"url": "{api_base_url}",
- "description": "チャットアプリ API のベース URL です。{api_base_url} をアプリケーションに提供された実際の API ベース URL に置き換えてください。",
+ "description": "チャットアプリ API のベース URL。{api_base_url} をアプリケーションに提供された実際の API ベース URL に置き換えてください。",
"variables": {
"api_base_url": {
"default": "https://api.dify.ai/v1",
@@ -27,9 +27,9 @@
"post": {
"summary": "チャットメッセージを送信",
"description": "チャットアプリケーションにリクエストを送信します。",
- "operationId": "sendBasicChatMessageJa",
+ "operationId": "sendChatMessage",
"tags": [
- "チャットメッセージ"
+ "Chats"
],
"requestBody": {
"description": "チャットメッセージを送信するためのリクエストボディ。",
@@ -75,7 +75,7 @@
},
"responses": {
"200": {
- "description": "リクエスト成功。コンテンツタイプと構造はリクエストの `response_mode` パラメータに依存します。\n\n- `response_mode` が `blocking` の場合、 `application/json` で `ChatCompletionResponse` オブジェクトを返します。\n- `response_mode` が `streaming` の場合、 `text/event-stream` で `ChunkChatEvent` オブジェクトのストリームを返します。",
+ "description": "成功レスポンス。コンテンツタイプと構造はリクエストの `response_mode` パラメータによって異なります。\n- `response_mode` が `blocking` の場合、`ChatCompletionResponse` オブジェクトを含む `application/json` を返します。\n- `response_mode` が `streaming` の場合、`ChunkChatEvent` オブジェクトのストリームを含む `text/event-stream` を返します。",
"content": {
"application/json": {
"schema": {
@@ -128,15 +128,15 @@
"text/event-stream": {
"schema": {
"type": "string",
- "description": "サーバー送信イベント (SSE) のストリームです。各イベントは `data: ` プレフィックス付きの JSON オブジェクトで、2 つの改行で終了します。\n\n**SSE パースガイド:**各イベントは `data: ` プレフィックス付きの JSON オブジェクトの行で、`\\n\\n` で終了します。JSON をパースする前に `data: ` プレフィックスを除去してください。JSON 内の `event` フィールドがイベントタイプを決定します。終了イベント(`message_end`、`workflow_finished`、`error` など)を受信するとストリームは終了します。`ping` イベント(10 秒ごとに接続維持のために送信)は無視してください。ストリーム内でエラーイベントが発生しても HTTP ステータスコードは常に `200` です。"
+ "description": "Server-Sent Events (SSE) のストリーム。各イベントは `data: ` で始まり、2つの改行で終了する JSON オブジェクトです。可能なイベント構造については `ChunkChatEvent` を参照してください。\n**SSE パースガイド:** 各イベントは `data: ` で始まり、JSON オブジェクトが続き、`\\n\\n` で終了する行です。JSON をパースする前に `data: ` プレフィックスを削除してください。JSON 内の `event` フィールドがイベントタイプを決定します。`message_end` イベントを受信するとストリームは終了します。`ping` イベント(接続を維持するために10秒ごとに送信)は無視してください。ストリーム中に `error` イベントを受信した場合、ストリームは終了します。詳細についてはエラーオブジェクトをパースしてください。ストリーム内でエラーイベントが発生した場合でも、HTTP ステータスコードは常に `200` であることに注意してください。"
},
"examples": {
"streamingResponseBasic": {
- "summary": "Response Example - Streaming (Basic)",
+ "summary": "レスポンス例 - ストリーミング(基本)",
"value": "data: {\"event\": \"message\", \"task_id\":\"mock_task_id\", \"message_id\": \"5ad4cb98-f0c7-4085-b384-88c403be6290\", \"conversation_id\": \"45701982-8118-4bc5-8e9b-64562b4555f2\", \"answer\": \" I\", \"created_at\": 1679586595} data: {\"event\": \"message_end\", \"task_id\":\"mock_task_id\", \"message_id\": \"5ad4cb98-f0c7-4085-b384-88c403be6290\", \"conversation_id\": \"45701982-8118-4bc5-8e9b-64562b4555f2\", \"metadata\": {\"usage\": {\"total_tokens\": 10, \"latency\": 1.0}}}"
},
"streamingResponseAgent": {
- "summary": "Response Example - Streaming (Agent)",
+ "summary": "レスポンス例 - ストリーミング(Agent)",
"value": "data: {\"event\": \"agent_thought\", \"id\": \"agent_thought_id_1\", \"task_id\": \"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"position\": 1, \"thought\": \"Thinking about calling a tool...\", \"tool\": \"dalle3\", \"tool_input\": \"{\\\"dalle3\\\": {\\\"prompt\\\": \\\"a cute cat\\\"}}\", \"created_at\": 1705395332} data: {\"event\": \"message_file\", \"id\": \"file_id_1\", \"type\": \"image\", \"belongs_to\": \"assistant\", \"url\": \"https://example.com/cat.png\", \"conversation_id\": \"conv123\"} data: {\"event\": \"agent_message\", \"task_id\": \"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"answer\": \"Here is the image: \", \"created_at\": 1705395333} data: {\"event\": \"message_end\", \"task_id\":\"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"metadata\": {\"usage\": {\"total_tokens\": 50, \"latency\": 2.5}}}"
}
}
@@ -144,7 +144,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `not_chat_app` : App mode does not match the API route.\n- `conversation_completed` : The conversation has ended.\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルは利用できません。\n- `completion_request_error` : テキスト生成に失敗しました。",
+ "description": "- `app_unavailable` : アプリが利用できないか、設定が正しくありません。\n- `not_chat_app` : アプリモードが API ルートと一致しません。\n- `conversation_completed` : 会話は終了しました。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータを超過しました。\n- `model_currently_not_support` : 現在のモデルは利用できません。\n- `completion_request_error` : テキスト生成に失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -226,7 +226,7 @@
}
},
"429": {
- "description": "- `too_many_requests` : このアプリケーションへの同時リクエストが多すぎます。\n- `rate_limit_error` : アップストリームのモデルプロバイダーのレート制限を超えました。",
+ "description": "- `too_many_requests` : このアプリに対する同時リクエストが多すぎます。\n- `rate_limit_error` : アップストリームモデルプロバイダーのレート制限を超過しました。",
"content": {
"application/json": {
"examples": {
@@ -272,18 +272,18 @@
},
"/chat-messages/{task_id}/stop": {
"post": {
- "summary": "生成を停止",
- "description": "チャットメッセージ生成タスクを停止します。`streaming` モードでのみサポートされます。",
- "operationId": "stopBasicChatMessageGenerationJa",
+ "summary": "チャットメッセージ生成を停止",
+ "description": "チャットメッセージ生成タスクを停止します。`streaming` モードでのみサポートされています。",
+ "operationId": "stopChatMessageGeneration",
"tags": [
- "チャットメッセージ"
+ "Chats"
],
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
- "description": "タスク ID です。[チャットメッセージを送信](/api-reference/チャットメッセージ/チャットメッセージを送信) API のストリーミングチャンクレスポンスから取得できます。",
+ "description": "タスク ID。[チャットメッセージを送信](/api-reference/chats/send-chat-message) API のストリーミングチャンク返却から取得できます。",
"schema": {
"type": "string"
}
@@ -301,7 +301,7 @@
"properties": {
"user": {
"type": "string",
- "description": "ユーザー識別子。メッセージ送信インターフェースで渡された user と一致する必要があります。"
+ "description": "ユーザー識別子。メッセージ送信インターフェースで渡されたユーザーと一致している必要があります。"
}
}
},
@@ -342,11 +342,11 @@
},
"/messages/{message_id}/suggested": {
"get": {
- "summary": "次の推奨質問を取得",
- "description": "現在のメッセージに対する次の質問の提案を取得します。",
- "operationId": "getBasicChatSuggestedQuestionsJa",
+ "summary": "次の候補質問を取得",
+ "description": "現在のメッセージに対する次の質問候補を取得します。",
+ "operationId": "getSuggestedQuestions",
"tags": [
- "チャットメッセージ"
+ "Chats"
],
"parameters": [
{
@@ -370,7 +370,7 @@
],
"responses": {
"200": {
- "description": "提案された質問の取得に成功しました。",
+ "description": "候補質問の取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -393,7 +393,7 @@
}
},
"400": {
- "description": "- `not_chat_app` : アプリモードが API ルートと一致しません。\n- `bad_request` : 推奨質問機能が無効です。",
+ "description": "- `not_chat_app` : アプリモードが API ルートと一致しません。\n- `bad_request` : 候補質問機能が無効になっています。",
"content": {
"application/json": {
"examples": {
@@ -457,13 +457,13 @@
"/files/upload": {
"post": {
"summary": "ファイルをアップロード",
- "description": "メッセージ送信時に使用するファイルをアップロードします。画像、ドキュメント、音声、動画のマルチモーダル理解が可能です。アップロードされたファイルは現在のエンドユーザーのみが使用できます。",
- "operationId": "uploadBasicChatFileJa",
+ "description": "メッセージ送信時に使用するファイルをアップロードし、画像、ドキュメント、音声、動画のマルチモーダル理解を可能にします。アップロードされたファイルは現在のエンドユーザーのみが使用できます。",
+ "operationId": "uploadChatFile",
"tags": [
- "ファイル操作"
+ "Files"
],
"requestBody": {
- "description": "ファイルアップロードリクエスト。multipart/form-data 形式が必要です。",
+ "description": "ファイルアップロードリクエスト。multipart/form-data が必要です。",
"required": true,
"content": {
"multipart/form-data": {
@@ -489,7 +489,7 @@
},
"responses": {
"201": {
- "description": "ファイルが正常にアップロードされました。",
+ "description": "ファイルのアップロードに成功しました。",
"content": {
"application/json": {
"schema": {
@@ -520,7 +520,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : リクエストにファイルが提供されていません。\n- `too_many_files` : 1 回のリクエストにつき 1 ファイルのみ許可されています。\n- `filename_not_exists_error` : アップロードされたファイルにファイル名がありません。",
+ "description": "- `no_file_uploaded` : リクエストにファイルが含まれていません。\n- `too_many_files` : リクエストごとに1つのファイルのみ許可されています。\n- `filename_not_exists_error` : アップロードされたファイルにファイル名がありません。",
"content": {
"application/json": {
"examples": {
@@ -553,7 +553,7 @@
}
},
"413": {
- "description": "`file_too_large` : ファイルサイズの上限を超えています。",
+ "description": "`file_too_large` : ファイルサイズを超過しました。",
"content": {
"application/json": {
"examples": {
@@ -570,7 +570,7 @@
}
},
"415": {
- "description": "`unsupported_file_type` : 許可されていないファイルタイプです。",
+ "description": "`unsupported_file_type` : ファイルタイプが許可されていません。",
"content": {
"application/json": {
"examples": {
@@ -592,17 +592,17 @@
"/files/{file_id}/preview": {
"get": {
"summary": "ファイルをダウンロード",
- "description": "以前[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API 経由でアップロードされたファイルをプレビューまたはダウンロードします。ファイルは、リクエスト元のアプリケーション内のメッセージに属する場合のみアクセスできます。",
- "operationId": "previewBasicChatFileJa",
+ "description": "[ファイルをアップロード](/api-reference/files/upload-file) API を介して以前にアップロードされたファイルをプレビューまたはダウンロードします。ファイルは、リクエストしているアプリケーション内のメッセージに属している場合にのみアクセスできます。",
+ "operationId": "previewChatFile",
"tags": [
- "ファイル操作"
+ "Files"
],
"parameters": [
{
"name": "file_id",
"in": "path",
"required": true,
- "description": "プレビューするファイルの一意の識別子です。[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API のレスポンスから取得します。",
+ "description": "プレビューするファイルの一意の識別子。[ファイルをアップロード](/api-reference/files/upload-file) API レスポンスから取得できます。",
"schema": {
"type": "string",
"format": "uuid"
@@ -612,7 +612,7 @@
"name": "as_attachment",
"in": "query",
"required": false,
- "description": "`true` の場合、ブラウザでプレビューする代わりにファイルを添付ファイルとして強制ダウンロードします。",
+ "description": "`true` の場合、ブラウザでプレビューする代わりに添付ファイルとして強制的にダウンロードします。",
"schema": {
"type": "boolean",
"default": false
@@ -622,7 +622,7 @@
"name": "user",
"in": "query",
"required": false,
- "description": "ユーザー識別子。エンドユーザーのコンテキストに使用されます。",
+ "description": "ユーザー識別子。エンドユーザーコンテキストに使用されます。",
"schema": {
"type": "string"
}
@@ -630,7 +630,7 @@
],
"responses": {
"200": {
- "description": "生のファイルコンテンツを返します。`Content-Type` ヘッダーはファイルの MIME タイプに設定されます。`as_attachment` が `true` の場合、ファイルは `Content-Disposition: attachment` としてダウンロード形式で返されます。",
+ "description": "生のファイルコンテンツを返します。`Content-Type` ヘッダーはファイルの MIME タイプに設定されます。`as_attachment` が `true` の場合、ファイルは `Content-Disposition: attachment` でダウンロードとして返されます。",
"content": {
"application/octet-stream": {
"schema": {
@@ -658,7 +658,7 @@
}
},
"404": {
- "description": "`file_not_found` : リクエストされたファイルが見つかりません。",
+ "description": "`file_not_found` : リクエストされたファイルが見つかりませんでした。",
"content": {
"application/json": {
"examples": {
@@ -679,11 +679,11 @@
},
"/end-users/{end_user_id}": {
"get": {
- "summary": "エンドユーザー取得",
- "description": "ID を指定してエンドユーザーを取得します。他の API がエンドユーザー ID を返す場合(例:[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード)の `created_by`)に便利です。",
- "operationId": "getEndUserChatJa",
+ "summary": "エンドユーザー情報を取得",
+ "description": "ID でエンドユーザーを取得します。他の API がエンドユーザー ID を返す場合(例:[ファイルをアップロード](/api-reference/files/upload-file) の `created_by`)に便利です。",
+ "operationId": "getEndUserChat",
"tags": [
- "エンドユーザー"
+ "End Users"
],
"parameters": [
{
@@ -699,7 +699,7 @@
],
"responses": {
"200": {
- "description": "エンドユーザーを正常に取得しました。",
+ "description": "エンドユーザーの取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -748,10 +748,10 @@
"/messages/{message_id}/feedbacks": {
"post": {
"summary": "メッセージフィードバックを送信",
- "description": "メッセージに対するフィードバックを送信します。エンドユーザーはメッセージを `like` または `dislike` で評価でき、任意でテキストフィードバックを提供できます。`rating` に `null` を渡すと、以前送信したフィードバックを取り消せます。",
- "operationId": "postBasicChatMessageFeedbackJa",
+ "description": "メッセージに対するフィードバックを送信します。エンドユーザーはメッセージを `like` または `dislike` で評価でき、オプションでテキストフィードバックを提供できます。以前に送信したフィードバックを取り消すには、`rating` に `null` を渡してください。",
+ "operationId": "postChatMessageFeedback",
"tags": [
- "メッセージフィードバック"
+ "Feedback"
],
"parameters": [
{
@@ -810,11 +810,11 @@
},
"/app/feedbacks": {
"get": {
- "summary": "アプリのフィードバック一覧を取得",
- "description": "このアプリケーションのメッセージに対して送信されたすべてのフィードバックのページネーション付きリストを取得します。エンドユーザーと管理者のフィードバックの両方が含まれます。",
- "operationId": "getBasicChatAppFeedbacksJa",
+ "summary": "アプリフィードバック一覧を取得",
+ "description": "このアプリケーションのメッセージに対して送信されたすべてのフィードバックのページネーションされたリストを取得します。エンドユーザーと管理者の両方のフィードバックが含まれます。",
+ "operationId": "getChatAppFeedbacks",
"tags": [
- "メッセージフィードバック"
+ "Feedback"
],
"parameters": [
{
@@ -893,10 +893,10 @@
"/conversations": {
"get": {
"summary": "会話一覧を取得",
- "description": "現在のユーザーの会話リストを、最近アクティブな順に取得します。",
- "operationId": "getBasicChatConversationsListJa",
+ "description": "現在のユーザーの会話リストを取得します。最近アクティブな順に並べ替えられます。",
+ "operationId": "getConversationsList",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -912,7 +912,7 @@
"name": "last_id",
"in": "query",
"required": false,
- "description": "現在のページの最後のレコードの ID(ページネーション用)です。",
+ "description": "現在のページの最後のレコードの ID(ページネーション用)。",
"schema": {
"type": "string"
}
@@ -921,7 +921,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "返すレコード数です。",
+ "description": "返すレコードの数。",
"schema": {
"type": "integer",
"default": 20,
@@ -933,7 +933,7 @@
"name": "sort_by",
"in": "query",
"required": false,
- "description": "ソートフィールドです。降順にするには '-' プレフィックスを使用します。",
+ "description": "並べ替えフィールド。降順には '-' プレフィックスを使用します。",
"schema": {
"type": "string",
"enum": [
@@ -997,7 +997,7 @@
}
},
"404": {
- "description": "`not_found` : 前の会話が存在しません(無効な `last_id`)。",
+ "description": "`not_found` : 最後の会話が存在しません(無効な `last_id`)。",
"content": {
"application/json": {
"examples": {
@@ -1018,11 +1018,11 @@
},
"/messages": {
"get": {
- "summary": "会話履歴メッセージ一覧を取得",
- "description": "スクロール読み込み形式で過去のチャット記録を返します。最初のページは最新の `limit` 件のメッセージを返します(時系列の逆順)。",
- "operationId": "getBasicChatConversationHistoryJa",
+ "summary": "会話メッセージ一覧を取得",
+ "description": "スクロール読み込み形式で過去のチャットレコードを返します。最初のページは最新の `limit` 件のメッセージを返します(逆順)。",
+ "operationId": "getConversationHistory",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1047,7 +1047,7 @@
"name": "first_id",
"in": "query",
"required": false,
- "description": "現在のページの最初のチャット記録の ID です。デフォルトは `null`(最新のメッセージを取得)です。次のページを取得するには、現在のリストの最初のメッセージの ID を使用して、より古いメッセージを取得します。",
+ "description": "現在のページの最初のチャットレコードの ID。デフォルトは `null`(最新のメッセージを取得)。以降のページでは、現在のリストの最初のメッセージの ID を使用して古いメッセージを取得します。",
"schema": {
"type": "string"
}
@@ -1056,7 +1056,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "リクエストごとに返すチャット履歴メッセージの数です。",
+ "description": "リクエストごとに返すチャット履歴メッセージの数。",
"schema": {
"type": "integer",
"default": 20,
@@ -1154,11 +1154,11 @@
},
"/conversations/{conversation_id}/variables": {
"get": {
- "summary": "会話変数の取得",
+ "summary": "会話変数一覧を取得",
"description": "特定の会話から変数を取得します。",
- "operationId": "getBasicChatConversationVariablesJa",
+ "operationId": "getConversationVariables",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1174,7 +1174,7 @@
"name": "user",
"in": "query",
"required": false,
- "description": "ユーザー識別子です。",
+ "description": "ユーザー識別子。",
"schema": {
"type": "string"
}
@@ -1183,7 +1183,7 @@
"name": "last_id",
"in": "query",
"required": false,
- "description": "現在のページの最後のレコードの ID(ページネーション用)です。",
+ "description": "現在のページの最後のレコードの ID(ページネーション用)。",
"schema": {
"type": "string"
}
@@ -1192,7 +1192,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "返すレコード数です。",
+ "description": "返すレコードの数。",
"schema": {
"type": "integer",
"default": 20,
@@ -1204,7 +1204,7 @@
"name": "variable_name",
"in": "query",
"required": false,
- "description": "指定した名前で変数をフィルタリングします。",
+ "description": "特定の名前で変数をフィルタリングします。",
"schema": {
"type": "string",
"minLength": 1,
@@ -1282,11 +1282,11 @@
},
"/conversations/{conversation_id}/name": {
"post": {
- "summary": "会話の名前を変更",
- "description": "会話の名前を変更するか、自動的に生成します。会話名は複数の会話をサポートするクライアントでの表示に使用されます。",
- "operationId": "renameBasicChatConversationJa",
+ "summary": "会話名を変更",
+ "description": "会話の名前を変更するか、名前を自動生成します。会話名は、複数の会話をサポートするクライアントでの表示に使用されます。",
+ "operationId": "renameConversation",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1320,7 +1320,7 @@
},
"responses": {
"200": {
- "description": "会話が正常に名前変更されました。",
+ "description": "会話名の変更に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -1386,9 +1386,9 @@
"put": {
"summary": "会話変数を更新",
"description": "特定の会話変数の値を更新します。値は期待される型と一致する必要があります。",
- "operationId": "updateChatConversationVariableJa",
+ "operationId": "updateChatConversationVariable",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1405,7 +1405,7 @@
"name": "variable_id",
"in": "path",
"required": true,
- "description": "Variable ID.",
+ "description": "変数 ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -1433,7 +1433,7 @@
},
"responses": {
"200": {
- "description": "変数が正常に更新されました。",
+ "description": "変数の更新に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -1513,9 +1513,9 @@
"delete": {
"summary": "会話を削除",
"description": "会話を削除します。",
- "operationId": "deleteBasicChatConversationJa",
+ "operationId": "deleteConversation",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1537,7 +1537,7 @@
"properties": {
"user": {
"type": "string",
- "description": "ユーザー識別子です。"
+ "description": "ユーザー識別子。"
}
}
},
@@ -1554,7 +1554,7 @@
},
"responses": {
"204": {
- "description": "会話が正常に削除されました。"
+ "description": "会話の削除に成功しました。"
},
"400": {
"description": "`not_chat_app` : アプリモードが API ルートと一致しません。",
@@ -1596,10 +1596,10 @@
"/audio-to-text": {
"post": {
"summary": "音声をテキストに変換",
- "description": "音声ファイルをテキストに変換します。サポートされる形式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。ファイルサイズの上限は `30 MB` です。",
- "operationId": "basicChatAudioToTextJa",
+ "description": "音声ファイルをテキストに変換します。サポートされる形式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。ファイルサイズ制限は `30 MB` です。",
+ "operationId": "audioToText",
"tags": [
- "音声・テキスト変換"
+ "TTS"
],
"requestBody": {
"required": true,
@@ -1631,7 +1631,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `no_audio_uploaded` : 音声ファイルがアップロードされていません。\n- `provider_not_support_speech_to_text` : モデルプロバイダーが音声認識をサポートしていません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : 音声認識リクエストに失敗しました。",
+ "description": "- `app_unavailable` : アプリが利用できないか、設定が正しくありません。\n- `no_audio_uploaded` : 音声ファイルがアップロードされていません。\n- `provider_not_support_speech_to_text` : モデルプロバイダーは音声からテキストへの変換をサポートしていません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータを超過しました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : 音声認識リクエストに失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -1696,7 +1696,7 @@
}
},
"413": {
- "description": "`audio_too_large` : 音声ファイルサイズが上限を超えています。",
+ "description": "`audio_too_large` : 音声ファイルサイズが制限を超えました。",
"content": {
"application/json": {
"examples": {
@@ -1713,7 +1713,7 @@
}
},
"415": {
- "description": "`unsupported_audio_type` : 許可されていない音声タイプです。",
+ "description": "`unsupported_audio_type` : 音声タイプが許可されていません。",
"content": {
"application/json": {
"examples": {
@@ -1753,9 +1753,9 @@
"post": {
"summary": "テキストを音声に変換",
"description": "テキストを音声に変換します。",
- "operationId": "basicChatTextToAudioJa",
+ "operationId": "textToAudioChat",
"tags": [
- "音声・テキスト変換"
+ "TTS"
],
"requestBody": {
"required": true,
@@ -1791,7 +1791,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : テキスト読み上げリクエストに失敗しました。",
+ "description": "- `app_unavailable` : アプリが利用できないか、設定が正しくありません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータを超過しました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : テキストから音声への変換リクエストに失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -1861,11 +1861,11 @@
},
"/info": {
"get": {
- "summary": "アプリケーションの基本情報を取得",
- "description": "このアプリケーションの基本情報(名前、説明、タグ、モード)を取得します。",
- "operationId": "getBasicChatAppInfoJa",
+ "summary": "アプリ情報を取得",
+ "description": "このアプリケーションの基本情報(名前、説明、タグ、モードなど)を取得します。",
+ "operationId": "getChatAppInfo",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
"responses": {
"200": {
@@ -1880,7 +1880,7 @@
"summary": "レスポンス例",
"value": {
"name": "My Chat App",
- "description": "便利なカスタマーサービスチャットボット。",
+ "description": "役立つカスタマーサービスチャットボット。",
"tags": [
"customer-service",
"chatbot"
@@ -1898,11 +1898,11 @@
},
"/parameters": {
"get": {
- "summary": "アプリケーションのパラメータ情報を取得",
- "description": "アプリケーションの入力フォーム設定(機能スイッチ、入力パラメータ名、タイプ、デフォルト値)を取得します。",
- "operationId": "getBasicChatAppParametersJa",
+ "summary": "アプリパラメータを取得",
+ "description": "アプリケーションの入力フォーム設定(機能スイッチ、入力パラメータ名、型、デフォルト値など)を取得します。",
+ "operationId": "getChatAppParameters",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
"responses": {
"200": {
@@ -1980,7 +1980,7 @@
}
},
"400": {
- "description": "`app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。",
+ "description": "`app_unavailable` : アプリが利用できないか、設定が正しくありません。",
"content": {
"application/json": {
"examples": {
@@ -2001,15 +2001,15 @@
},
"/meta": {
"get": {
- "summary": "アプリケーションのメタ情報を取得",
- "description": "このアプリケーションのメタデータ(ツールアイコンやその他の設定詳細)を取得します。",
- "operationId": "getBasicChatAppMetaJa",
+ "summary": "アプリメタ情報を取得",
+ "description": "このアプリケーションのメタデータ(ツールアイコンやその他の設定詳細など)を取得します。",
+ "operationId": "getChatAppMeta",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
"responses": {
"200": {
- "description": "アプリケーションのメタ情報を正常に取得しました。",
+ "description": "アプリケーションメタ情報の取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -2038,10 +2038,10 @@
"/site": {
"get": {
"summary": "アプリの WebApp 設定を取得",
- "description": "このアプリケーションの WebApp 設定(サイト設定、テーマ、カスタマイズオプション)を取得します。",
- "operationId": "getBasicChatWebAppSettingsJa",
+ "description": "このアプリケーションの WebApp 設定(サイト設定、テーマ、カスタマイズオプションなど)を取得します。",
+ "operationId": "getChatWebAppSettings",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
"responses": {
"200": {
@@ -2055,14 +2055,14 @@
"webAppSettings": {
"summary": "レスポンス例",
"value": {
- "title": "My Chat App",
+ "title": "マイチャットアプリ",
"chat_color_theme": "#4A90D9",
"chat_color_theme_inverted": false,
"icon_type": "emoji",
"icon": "🤖",
"icon_background": "#FFFFFF",
"icon_url": null,
- "description": "便利なカスタマーサービスチャットボット。",
+ "description": "役立つカスタマーサービスチャットボット。",
"copyright": "2025 Dify",
"privacy_policy": "https://example.com/privacy",
"custom_disclaimer": "",
@@ -2098,10 +2098,10 @@
"/apps/annotations": {
"post": {
"summary": "アノテーションを作成",
- "description": "新しいアノテーションを作成します。アノテーションは、アプリがレスポンスを生成する代わりに直接マッチして返すことができる、事前定義された質問と回答のペアを提供します。",
- "operationId": "createChatAnnotationJa",
+ "description": "新しいアノテーションを作成します。アノテーションは、アプリが応答を生成する代わりに直接マッチして返すことができる事前定義された質問と回答のペアを提供します。",
+ "operationId": "createAnnotation",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"requestBody": {
"required": true,
@@ -2124,7 +2124,7 @@
},
"responses": {
"201": {
- "description": "アノテーションが正常に作成されました。",
+ "description": "アノテーションの作成に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -2148,11 +2148,11 @@
}
},
"get": {
- "summary": "アノテーションリストを取得",
- "description": "アプリケーションのアノテーションをページネーションリストで取得します。キーワード検索によるフィルタリングをサポートしています。",
- "operationId": "listChatAnnotationsJa",
+ "summary": "アノテーション一覧を取得",
+ "description": "アプリケーションのアノテーションのページネーションされたリストを取得します。キーワード検索フィルタリングをサポートしています。",
+ "operationId": "getAnnotationList",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
@@ -2168,7 +2168,7 @@
{
"name": "limit",
"in": "query",
- "description": "1 ページあたりの件数です。",
+ "description": "1ページあたりのアイテム数。",
"required": false,
"schema": {
"type": "integer",
@@ -2178,7 +2178,7 @@
{
"name": "keyword",
"in": "query",
- "description": "質問または回答の内容でアノテーションをフィルタリングするためのキーワードです。",
+ "description": "質問または回答の内容でアノテーションをフィルタリングするキーワード。",
"required": false,
"schema": {
"type": "string"
@@ -2223,16 +2223,16 @@
"put": {
"summary": "アノテーションを更新",
"description": "既存のアノテーションの質問と回答を更新します。",
- "operationId": "updateChatAnnotationJa",
+ "operationId": "updateAnnotation",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "annotation_id",
"in": "path",
"required": true,
- "description": "更新するアノテーションの一意の識別子です。",
+ "description": "更新するアノテーションの一意の識別子。",
"schema": {
"type": "string",
"format": "uuid"
@@ -2260,7 +2260,7 @@
},
"responses": {
"200": {
- "description": "アノテーションが正常に更新されました。",
+ "description": "アノテーションの更新に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -2282,7 +2282,7 @@
}
},
"403": {
- "description": "`forbidden` : アノテーションを編集する権限がありません。",
+ "description": "`forbidden` : アノテーションを編集する権限が不足しています。",
"content": {
"application/json": {
"examples": {
@@ -2320,16 +2320,16 @@
"delete": {
"summary": "アノテーションを削除",
"description": "アノテーションとその関連するヒット履歴を削除します。",
- "operationId": "deleteChatAnnotationJa",
+ "operationId": "deleteAnnotation",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "annotation_id",
"in": "path",
"required": true,
- "description": "削除するアノテーションの一意の識別子です。",
+ "description": "削除するアノテーションの一意の識別子。",
"schema": {
"type": "string",
"format": "uuid"
@@ -2338,10 +2338,10 @@
],
"responses": {
"204": {
- "description": "アノテーションが正常に削除されました。"
+ "description": "アノテーションの削除に成功しました。"
},
"403": {
- "description": "`forbidden` : アノテーションを編集する権限がありません。",
+ "description": "`forbidden` : アノテーションを編集する権限が不足しています。",
"content": {
"application/json": {
"examples": {
@@ -2380,17 +2380,17 @@
"/apps/annotation-reply/{action}": {
"post": {
"summary": "アノテーション返信を設定",
- "description": "アノテーション返信機能を有効または無効にします。有効にする場合は埋め込みモデルの設定が必要です。非同期で実行されます——[アノテーション返信の初期設定タスクステータスを取得](/api-reference/アノテーション管理/アノテーション返信の初期設定タスクステータスを取得) で進捗を追跡します。",
- "operationId": "setChatAnnotationReplyJa",
+ "description": "アノテーション返信機能を有効または無効にします。有効にする際は埋め込みモデルの設定が必要です。非同期で実行されます — 進行状況を追跡するには [アノテーション返信ジョブステータスを取得](/api-reference/annotations/get-annotation-reply-job-status) を使用してください。",
+ "operationId": "initialAnnotationReplySettings",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "action",
"in": "path",
"required": true,
- "description": "実行するアクションです。",
+ "description": "実行するアクション。",
"schema": {
"type": "string",
"enum": [
@@ -2445,18 +2445,18 @@
},
"/apps/annotation-reply/{action}/status/{job_id}": {
"get": {
- "summary": "アノテーション返信の初期設定タスクステータスを取得",
- "description": "[アノテーション返信を設定](/api-reference/アノテーション管理/アノテーション返信を設定) で開始された非同期アノテーション返信設定ジョブのステータスを取得します。",
- "operationId": "getChatAnnotationReplyStatusJa",
+ "summary": "アノテーション返信ジョブステータスを取得",
+ "description": "[アノテーション返信を設定](/api-reference/annotations/configure-annotation-reply) で開始された非同期アノテーション返信設定ジョブのステータスを取得します。",
+ "operationId": "getInitialAnnotationReplySettingsStatus",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "action",
"in": "path",
"required": true,
- "description": "アクションタイプです。[アノテーション返信を設定](/api-reference/アノテーション管理/アノテーション返信を設定) の呼び出しと一致する必要があります。",
+ "description": "アクションタイプ。[アノテーション返信を設定](/api-reference/annotations/configure-annotation-reply) 呼び出しと一致する必要があります。",
"schema": {
"type": "string",
"enum": [
@@ -2469,7 +2469,7 @@
"name": "job_id",
"in": "path",
"required": true,
- "description": "[アノテーション返信を設定](/api-reference/アノテーション管理/アノテーション返信を設定) から返されたジョブ ID です。",
+ "description": "[アノテーション返信を設定](/api-reference/annotations/configure-annotation-reply) によって返されたジョブ ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -2524,7 +2524,7 @@
"type": "http",
"scheme": "bearer",
"bearerFormat": "API_KEY",
- "description": "API Key 認証です。すべての API リクエストにおいて、`Authorization` HTTP ヘッダーに `Bearer ` プレフィックスを付けた API Key を含めてください。例:`Authorization: Bearer {API_KEY}`。**API Key はサーバーサイドに保存し、クライアントサイドで共有・保存しないことを強く推奨します。API Key の漏洩は深刻な結果につながる可能性があります。**"
+ "description": "API キー認証。すべての API リクエストで、`Authorization` HTTP ヘッダーに `Bearer ` プレフィックスを付けて API キーを含めてください。例:`Authorization: Bearer {API_KEY}`。**API キーはサーバーサイドに保存し、クライアントサイドで共有または保存しないことを強くお勧めします。API キーの漏洩は深刻な結果を招く可能性があります。**"
}
},
"responses": {
@@ -2564,11 +2564,11 @@
"properties": {
"query": {
"type": "string",
- "description": "ユーザーの入力/質問内容です。"
+ "description": "ユーザー入力/質問内容。"
},
"inputs": {
"type": "object",
- "description": "アプリで定義されたさまざまな変数の値を入力できます。キーと値のペアを含みます。アプリが期待する変数名と型については、[アプリケーションのパラメータ情報を取得](/api-reference/アプリケーション設定/アプリケーションのパラメータ情報を取得) レスポンスの `user_input_form` フィールドを参照してください。",
+ "description": "アプリで定義されたさまざまな変数値の入力を許可します。キー/値のペアを含みます。アプリが期待する変数名と型を確認するには、[アプリパラメータを取得](/api-reference/applications/get-app-parameters) レスポンスの `user_input_form` フィールドを参照してください。",
"additionalProperties": true
},
"response_mode": {
@@ -2577,19 +2577,19 @@
"streaming",
"blocking"
],
- "description": "レスポンスの返却モードです。`streaming`(推奨)は SSE を使用します。`blocking` は完了後に返します(長時間の処理では中断される場合があります。エージェントアシスタントモードではサポートされていません)。Cloudflare のタイムアウトは `100 s` です。省略した場合、デフォルトはブロッキング動作になります。"
+ "description": "レスポンス返却モード。`streaming`(推奨)は SSE を使用します。`blocking` は完了後に返します(長いプロセスでは中断される可能性があります。Agent アシスタントモードではサポートされていません)。Cloudflare タイムアウトは `100 秒` です。省略した場合、デフォルトはブロッキング動作になります。"
},
"user": {
"type": "string",
- "description": "アプリケーション内で一意のユーザー識別子です。この識別子はデータアクセスの範囲を限定します——会話、メッセージ、ファイルは同じ `user` 値でクエリした場合にのみ表示されます。"
+ "description": "ユーザー識別子。アプリケーション内で一意である必要があります。この識別子はデータアクセスのスコープを設定します — 会話、メッセージ、ファイルは同じ `user` 値でクエリした場合にのみ表示されます。"
},
"conversation_id": {
"type": "string",
- "description": "会話を継続するための会話 ID です。前のメッセージの `conversation_id` を渡します。新しい会話を開始するには、このフィールドを省略するか空文字列を渡します。レスポンスで `conversation_id` が返されます——以降のメッセージでこの値を渡すとその会話を継続できます。"
+ "description": "会話を続けるための会話 ID。以前のメッセージの `conversation_id` を渡してください。新しい会話を開始するには、このフィールドを省略するか空の文字列を渡します。レスポンスは `conversation_id` を返します — その会話を続けるために後続のメッセージで渡してください。"
},
"files": {
"type": "array",
- "description": "マルチモーダル理解用のファイルリストです。画像、ドキュメント、音声、動画を含みます。ローカルファイルを添付するには、まず [ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) でアップロードし、返された `id` を `upload_file_id` として `transfer_method: local_file` で使用します。",
+ "description": "画像、ドキュメント、音声、動画を含むマルチモーダル理解のためのファイルリスト。ローカルファイルを添付するには、まず [ファイルをアップロード](/api-reference/files/upload-file) でアップロードし、返された `id` を `upload_file_id` として `transfer_method: local_file` で使用してください。",
"items": {
"type": "object",
"required": [
@@ -2614,23 +2614,23 @@
"remote_url",
"local_file"
],
- "description": "転送方法です。ファイル URL の場合は `remote_url`、アップロードファイルの場合は `local_file` です。"
+ "description": "転送方法:ファイル URL には `remote_url`、アップロードされたファイルには `local_file`。"
},
"url": {
"type": "string",
"format": "url",
- "description": "ファイル URL(`transfer_method` が `remote_url` の場合は必須)です。"
+ "description": "ファイル URL(`transfer_method` が `remote_url` の場合に必須)。"
},
"upload_file_id": {
"type": "string",
- "description": "[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API から取得したアップロード済みファイル ID です(`transfer_method` が `local_file` の場合は必須)。"
+ "description": "[ファイルをアップロード](/api-reference/files/upload-file) API から取得したアップロードファイル ID(`transfer_method` が `local_file` の場合に必須)。"
}
}
}
},
"auto_generate_name": {
"type": "boolean",
- "description": "会話タイトルを自動生成します。`false` の場合、[会話の名前を変更](/api-reference/会話管理/会話の名前を変更) API で `auto_generate: true` を設定して非同期でタイトルを生成します。",
+ "description": "会話タイトルを自動生成します。`false` の場合、非同期タイトル生成には [会話名を変更](/api-reference/conversations/rename-conversation) API を `auto_generate: true` で使用してください。",
"default": true
}
}
@@ -2640,22 +2640,22 @@
"properties": {
"event": {
"type": "string",
- "description": "イベントタイプ。`message` に固定されています。"
+ "description": "イベントタイプ。`message` に固定。"
},
"task_id": {
"type": "string",
"format": "uuid",
- "description": "リクエスト追跡およびレスポンス停止 API 用のタスク ID です。"
+ "description": "リクエスト追跡と停止レスポンス API 用のタスク ID。"
},
"id": {
"type": "string",
"format": "uuid",
- "description": "このレスポンスイベントの一意 ID です。"
+ "description": "このレスポンスイベントの一意の ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "一意のメッセージ ID です。フィードバックや推奨質問のエンドポイントを呼び出す際に `message_id` パラメータとして使用します。"
+ "description": "一意のメッセージ ID。フィードバックまたは候補質問エンドポイントを呼び出す際に `message_id` パラメータとして使用してください。"
},
"conversation_id": {
"type": "string",
@@ -2664,11 +2664,11 @@
},
"mode": {
"type": "string",
- "description": "アプリモード、`chat` 固定です。"
+ "description": "アプリモード。`chat` に固定。"
},
"answer": {
"type": "string",
- "description": "完全なレスポンスコンテンツ。"
+ "description": "完全なレスポンス内容。"
},
"metadata": {
"type": "object",
@@ -2695,11 +2695,11 @@
},
"ChunkChatEvent": {
"type": "object",
- "description": "ストリーミングモードにおける Server-Sent Event チャンクのベーススキーマです。",
+ "description": "ストリーミングモードでの Server-Sent Event チャンクのベーススキーマ。",
"properties": {
"event": {
"type": "string",
- "description": "イベントの種類です。",
+ "description": "イベントのタイプ。",
"enum": [
"message",
"agent_message",
@@ -2732,7 +2732,7 @@
},
"StreamEventBase": {
"type": "object",
- "description": "ストリームイベントの基本プロパティです。",
+ "description": "ストリームイベントのベースプロパティ。",
"properties": {
"task_id": {
"type": "string",
@@ -2769,7 +2769,7 @@
"properties": {
"answer": {
"type": "string",
- "description": "LLM が返したテキストチャンクです。"
+ "description": "LLM が返したテキストチャンク。"
}
}
}
@@ -2788,7 +2788,7 @@
"properties": {
"answer": {
"type": "string",
- "description": "LLM が返したテキストチャンク(エージェントモード)です。"
+ "description": "LLM が返したテキストチャンク(Agent モード)。"
}
}
}
@@ -2804,12 +2804,12 @@
},
{
"type": "object",
- "description": "TTS 音声ストリームイベント(base64 エンコードの Mp3)です。自動再生が有効な場合に利用できます。",
+ "description": "TTS 音声ストリームイベント(Base64 エンコード Mp3)。自動再生が有効な場合に利用可能。",
"properties": {
"audio": {
"type": "string",
"format": "byte",
- "description": "Base64 エンコードされた MP3 音声チャンク。すべてのチャンクを順番にデコードして連結すると、完全な音声ファイルが生成されます。"
+ "description": "Base64 エンコードされた MP3 音声チャンク。完全な音声ファイルを生成するには、すべてのチャンクを順番にデコードして連結してください。"
}
}
}
@@ -2845,32 +2845,32 @@
},
{
"type": "object",
- "description": "エージェントの思考、LLM の推論、ツール呼び出しの詳細(エージェントモード)です。",
+ "description": "Agent の思考、LLM の思考プロセス、ツール呼び出しの詳細(Agent モード)。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "エージェント思考 ID です。"
+ "description": "Agent 思考 ID。"
},
"position": {
"type": "integer",
- "description": "メッセージ内のシーケンスにおけるこの思考の位置です。"
+ "description": "メッセージ内のシーケンスにおけるこの思考の位置。"
},
"thought": {
"type": "string",
- "description": "LLM が思考している内容です。"
+ "description": "LLM が考えていること。"
},
"observation": {
"type": "string",
- "description": "ツール呼び出しからのレスポンスです。"
+ "description": "ツール呼び出しからのレスポンス。"
},
"tool": {
"type": "string",
- "description": "呼び出されたツールのリスト(`;` で区切り)です。"
+ "description": "呼び出されたツールのリスト。`;` で区切られます。"
},
"tool_input": {
"type": "string",
- "description": "ツールの入力(JSON 形式)です。"
+ "description": "JSON 形式のツール入力。"
},
"message_files": {
"type": "array",
@@ -2878,7 +2878,7 @@
"type": "string",
"format": "uuid"
},
- "description": "この思考に関連するファイルのファイル ID です。"
+ "description": "この思考に関連するファイルのファイル ID。"
}
}
}
@@ -2891,7 +2891,7 @@
},
{
"type": "object",
- "description": "メッセージファイルイベント。ツールによって作成された新しいファイルです。",
+ "description": "メッセージファイルイベント。ツールによって作成された新しいファイル。",
"properties": {
"id": {
"type": "string",
@@ -2904,7 +2904,7 @@
},
"belongs_to": {
"type": "string",
- "description": "このファイルの所有者です。ツールが生成したファイルの場合は常に `assistant` です。"
+ "description": "このファイルの所有者。ツール生成ファイルの場合は常に `assistant`。"
},
"url": {
"type": "string",
@@ -2930,12 +2930,12 @@
},
{
"type": "object",
- "description": "メッセージ終了イベント、ストリーミングが終了しました。",
+ "description": "メッセージ終了イベント。ストリーミングが終了しました。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "メッセージの一意な ID。"
+ "description": "一意のメッセージ ID。"
},
"metadata": {
"type": "object",
@@ -2967,7 +2967,7 @@
},
{
"type": "object",
- "description": "メッセージコンテンツ置換イベント(例:コンテンツモデレーションによるもの)。",
+ "description": "メッセージコンテンツ置換イベント(例:コンテンツモデレーションによる)。",
"properties": {
"answer": {
"type": "string",
@@ -3022,58 +3022,58 @@
},
"Usage": {
"type": "object",
- "description": "モデルの使用情報です。",
+ "description": "モデル使用量情報。",
"properties": {
"prompt_tokens": {
"type": "integer",
- "description": "プロンプト内のトークン数。"
+ "description": "プロンプト内の token 数。"
},
"prompt_unit_price": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンあたりの単価。"
+ "description": "プロンプト token あたりの単価。"
},
"prompt_price_unit": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンの価格単位。"
+ "description": "プロンプト token の価格単位。"
},
"prompt_price": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンの合計価格。"
+ "description": "プロンプト token の合計価格。"
},
"completion_tokens": {
"type": "integer",
- "description": "補完のトークン数。"
+ "description": "補完内の token 数。"
},
"completion_unit_price": {
"type": "string",
"format": "decimal",
- "description": "補完トークンあたりの単価。"
+ "description": "補完 token あたりの単価。"
},
"completion_price_unit": {
"type": "string",
"format": "decimal",
- "description": "補完トークンの価格単位。"
+ "description": "補完 token の価格単位。"
},
"completion_price": {
"type": "string",
"format": "decimal",
- "description": "補完トークンの合計価格。"
+ "description": "補完 token の合計価格。"
},
"total_tokens": {
"type": "integer",
- "description": "使用されたトークンの合計数。"
+ "description": "使用された token の合計数。"
},
"total_price": {
"type": "string",
"format": "decimal",
- "description": "すべてのトークンの合計価格。"
+ "description": "すべての token の合計価格。"
},
"currency": {
"type": "string",
- "description": "課金通貨。"
+ "description": "価格の通貨。"
},
"latency": {
"type": "number",
@@ -3084,7 +3084,7 @@
},
"RetrieverResource": {
"type": "object",
- "description": "検索リソースの引用および帰属情報です。",
+ "description": "検索リソースの引用と帰属情報。",
"properties": {
"id": {
"type": "string",
@@ -3103,20 +3103,20 @@
"dataset_id": {
"type": "string",
"format": "uuid",
- "description": "ナレッジベース ID。"
+ "description": "ナレッジベースの ID。"
},
"dataset_name": {
"type": "string",
- "description": "ナレッジベース名。"
+ "description": "ナレッジベースの名前。"
},
"document_id": {
"type": "string",
"format": "uuid",
- "description": "ドキュメント ID。"
+ "description": "ドキュメントの ID。"
},
"document_name": {
"type": "string",
- "description": "ドキュメント名。"
+ "description": "ドキュメントの名前。"
},
"data_source_type": {
"type": "string",
@@ -3262,12 +3262,12 @@
},
"type": {
"type": "string",
- "description": "エンドユーザーのタイプ。Service API ユーザーの場合は常に `service_api` です。"
+ "description": "エンドユーザータイプ。サービス API ユーザーの場合は常に `service_api`。"
},
"external_user_id": {
"type": "string",
"nullable": true,
- "description": "API リクエストで提供された `user` 識別子です(例:[チャットメッセージを送信](/api-reference/チャットメッセージ/チャットメッセージを送信) の `user` フィールド)。"
+ "description": "API リクエストで提供された `user` 識別子(例:[チャットメッセージを送信](/api-reference/chats/send-chat-message) の `user` フィールド)。"
},
"name": {
"type": "string",
@@ -3276,11 +3276,11 @@
},
"is_anonymous": {
"type": "boolean",
- "description": "ユーザーが匿名かどうかを示します。元の API リクエストで `user` 識別子が提供されなかった場合、`true` になります。"
+ "description": "ユーザーが匿名かどうか。元の API リクエストで `user` 識別子が提供されなかった場合は `true`。"
},
"session_id": {
"type": "string",
- "description": "セッション識別子。デフォルトは `external_user_id` の値です。"
+ "description": "セッション識別子。デフォルトは `external_user_id` の値。"
},
"created_at": {
"type": "string",
@@ -3309,15 +3309,15 @@
null
],
"nullable": true,
- "description": "フィードバック評価。以前送信したフィードバックを取り消すには `null` に設定します。"
+ "description": "フィードバック評価。以前に送信したフィードバックを取り消すには `null` に設定してください。"
},
"user": {
"type": "string",
- "description": "ユーザー識別子。開発者が定義し、アプリケーション内での一意性を確保する必要があります。"
+ "description": "ユーザー識別子。開発者によって定義され、アプリケーション内で一意性を確保する必要があります。"
},
"content": {
"type": "string",
- "description": "追加の詳細を提供する任意のテキストフィードバック。"
+ "description": "追加の詳細を提供するオプションのテキストフィードバック。"
}
}
},
@@ -3326,7 +3326,7 @@
"properties": {
"data": {
"type": "array",
- "description": "フィードバック項目のリスト。",
+ "description": "フィードバックアイテムのリスト。",
"items": {
"$ref": "#/components/schemas/FeedbackItem"
}
@@ -3335,7 +3335,7 @@
},
"FeedbackItem": {
"type": "object",
- "description": "単一のフィードバック項目。",
+ "description": "単一のフィードバックアイテム。",
"properties": {
"id": {
"type": "string",
@@ -3364,11 +3364,11 @@
"content": {
"type": "string",
"nullable": true,
- "description": "任意のテキストフィードバック。"
+ "description": "オプションのテキストフィードバック。"
},
"from_source": {
"type": "string",
- "description": "フィードバックのソース。API 経由でエンドユーザーが送信したフィードバックの場合は `user`、コンソールから送信されたフィードバックの場合は `admin`。"
+ "description": "フィードバックソース。API を介して送信されたエンドユーザーフィードバックの場合は `user`、コンソールから送信されたフィードバックの場合は `admin`。"
},
"from_end_user_id": {
"type": "string",
@@ -3406,7 +3406,7 @@
"items": {
"type": "string"
},
- "description": "提案された質問のリストです。"
+ "description": "候補質問のリスト。"
}
}
},
@@ -3415,15 +3415,15 @@
"properties": {
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"has_more": {
"type": "boolean",
- "description": "さらにメッセージがあるかどうかです。"
+ "description": "さらにメッセージがあるかどうか。"
},
"data": {
"type": "array",
- "description": "メッセージのリストです。",
+ "description": "メッセージのリスト。",
"items": {
"$ref": "#/components/schemas/ConversationMessageItem"
}
@@ -3432,7 +3432,7 @@
},
"ConversationMessageItem": {
"type": "object",
- "description": "会話内の単一メッセージです。",
+ "description": "会話内の単一のメッセージ。",
"properties": {
"id": {
"type": "string",
@@ -3448,33 +3448,33 @@
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "スレッド会話の親メッセージ ID です。"
+ "description": "スレッド会話用の親メッセージ ID。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "このメッセージの入力変数です。"
+ "description": "このメッセージの入力変数。"
},
"query": {
"type": "string",
- "description": "ユーザークエリテキストです。"
+ "description": "ユーザークエリテキスト。"
},
"answer": {
"type": "string",
- "description": "アシスタントの回答テキストです。"
+ "description": "アシスタントの回答テキスト。"
},
"status": {
"type": "string",
- "description": "メッセージステータスです。成功したメッセージの場合は `normal`、生成に失敗した場合は `error` です。"
+ "description": "メッセージステータス。成功したメッセージの場合は `normal`、生成に失敗した場合は `error`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "`status` が `error` の場合のエラーメッセージです。"
+ "description": "`status` が `error` の場合のエラーメッセージ。"
},
"message_files": {
"type": "array",
- "description": "このメッセージに添付されたファイルです。",
+ "description": "このメッセージに添付されたファイル。",
"items": {
"$ref": "#/components/schemas/MessageFileItem"
}
@@ -3482,7 +3482,7 @@
"feedback": {
"type": "object",
"nullable": true,
- "description": "このメッセージのユーザーフィードバックです。",
+ "description": "このメッセージに対するユーザーフィードバック。",
"properties": {
"rating": {
"type": "string",
@@ -3492,14 +3492,14 @@
},
"retriever_resources": {
"type": "array",
- "description": "このメッセージに使用された検索リソースです。",
+ "description": "このメッセージに使用された検索リソース。",
"items": {
"$ref": "#/components/schemas/RetrieverResource"
}
},
"agent_thoughts": {
"type": "array",
- "description": "このメッセージのエージェント思考です。",
+ "description": "このメッセージの Agent の思考。",
"items": {
"$ref": "#/components/schemas/AgentThoughtItem"
}
@@ -3511,7 +3511,7 @@
},
"extra_contents": {
"type": "array",
- "description": "このメッセージに関連する追加の実行コンテンツです(人的介入フォームデータなど)。",
+ "description": "このメッセージに関連付けられた追加の実行コンテンツ(人間の入力フォームデータなど)。",
"items": {
"type": "object",
"additionalProperties": true
@@ -3521,20 +3521,20 @@
},
"MessageFileItem": {
"type": "object",
- "description": "メッセージに添付されたファイルです。",
+ "description": "メッセージに添付されたファイル。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "File ID."
+ "description": "ファイル ID。"
},
"filename": {
"type": "string",
- "description": "元のファイル名です。"
+ "description": "元のファイル名。"
},
"type": {
"type": "string",
- "description": "ファイルの種類(例: `image`)です。"
+ "description": "ファイルタイプ(例:`image`)。"
},
"url": {
"type": "string",
@@ -3554,72 +3554,72 @@
},
"transfer_method": {
"type": "string",
- "description": "使用された転送方法です。`remote_url` は URL ベースのファイル、`local_file` はアップロード済みファイル、`tool_file` はツール生成ファイルを示します。"
+ "description": "使用された転送方法。URL ベースのファイルの場合は `remote_url`、アップロードされたファイルの場合は `local_file`、ツール生成ファイルの場合は `tool_file`。"
},
"belongs_to": {
"type": "string",
"nullable": true,
- "description": "このファイルの所有者です。ユーザーがアップロードしたファイルの場合は `user`、アシスタントが生成したファイルの場合は `assistant` です。"
+ "description": "このファイルの所有者。ユーザーがアップロードしたファイルの場合は `user`、アシスタントが生成したファイルの場合は `assistant`。"
},
"upload_file_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "`local_file` で転送された場合のアップロードファイル ID です。"
+ "description": "`local_file` で転送された場合のアップロードファイル ID。"
}
}
},
"AgentThoughtItem": {
"type": "object",
- "description": "メッセージ内のエージェント思考ステップです。",
+ "description": "メッセージ内の Agent 思考ステップ。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "エージェント思考 ID です。"
+ "description": "Agent 思考 ID。"
},
"chain_id": {
"type": "string",
"nullable": true,
- "description": "この思考のチェーン ID です。"
+ "description": "この思考のチェーン ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "この思考が属する一意のメッセージ ID です。"
+ "description": "この思考が属する一意のメッセージ ID。"
},
"position": {
"type": "integer",
- "description": "この思考の位置です。"
+ "description": "この思考の位置。"
},
"thought": {
"type": "string",
- "description": "LLM が思考している内容です。"
+ "description": "LLM が考えていること。"
},
"tool": {
"type": "string",
- "description": "呼び出されたツール(`;` で区切り)です。"
+ "description": "呼び出されたツール。`;` で区切られます。"
},
"tool_labels": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "使用されたツールのラベルです。"
+ "description": "使用されたツールのラベル。"
},
"tool_input": {
"type": "string",
- "description": "ツールの入力(JSON 形式)です。"
+ "description": "JSON 形式のツール入力。"
},
"observation": {
"type": "string",
- "description": "ツール呼び出しからのレスポンスです。"
+ "description": "ツール呼び出しからのレスポンス。"
},
"files": {
"type": "array",
"items": {
"type": "string"
},
- "description": "この思考に関連するファイル ID です。"
+ "description": "この思考に関連するファイル ID。"
},
"created_at": {
"type": "integer",
@@ -3633,15 +3633,15 @@
"properties": {
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"has_more": {
"type": "boolean",
- "description": "さらに会話があるかどうかです。"
+ "description": "さらに会話があるかどうか。"
},
"data": {
"type": "array",
- "description": "会話のリストです。",
+ "description": "会話のリスト。",
"items": {
"$ref": "#/components/schemas/ConversationListItem"
}
@@ -3658,20 +3658,20 @@
},
"name": {
"type": "string",
- "description": "会話名です。"
+ "description": "会話名。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "会話の入力変数です。"
+ "description": "会話の入力変数。"
},
"status": {
"type": "string",
- "description": "会話ステータスです。アクティブな会話の場合は `normal` です。"
+ "description": "会話ステータス。アクティブな会話の場合は `normal`。"
},
"introduction": {
"type": "string",
- "description": "会話の紹介文です。"
+ "description": "会話の紹介。"
},
"created_at": {
"type": "integer",
@@ -3687,11 +3687,11 @@
},
"ConversationRenameRequest": {
"type": "object",
- "description": "会話の名前変更用リクエストボディです。",
+ "description": "会話名を変更するためのリクエストボディ。",
"properties": {
"name": {
"type": "string",
- "description": "会話の名前です。`auto_generate` が `false` の場合は必須です。"
+ "description": "会話の名前。`auto_generate` が `false` の場合に必須。"
},
"auto_generate": {
"type": "boolean",
@@ -3700,7 +3700,7 @@
},
"user": {
"type": "string",
- "description": "ユーザー識別子です。"
+ "description": "ユーザー識別子。"
}
}
},
@@ -3709,15 +3709,15 @@
"properties": {
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"has_more": {
"type": "boolean",
- "description": "次のページがあるかどうかです。"
+ "description": "次のページがあるかどうか。"
},
"data": {
"type": "array",
- "description": "会話変数のリストです。",
+ "description": "会話変数のリスト。",
"items": {
"$ref": "#/components/schemas/ConversationVariableItem"
}
@@ -3730,15 +3730,15 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "Variable ID."
+ "description": "変数 ID。"
},
"name": {
"type": "string",
- "description": "変数名です。"
+ "description": "変数名。"
},
"value_type": {
"type": "string",
- "description": "変数の値の型です。指定可能な値:`string`、`number`、`object`、`secret`、`file`、`boolean`、`array[any]`、`array[string]`、`array[number]`、`array[object]`、`array[file]`、`array[boolean]`。"
+ "description": "変数値の型。可能な値:`string`、`number`、`object`、`secret`、`file`、`boolean`、`array[any]`、`array[string]`、`array[number]`、`array[object]`、`array[file]`、`array[boolean]`。"
},
"value": {
"type": "string",
@@ -3746,7 +3746,7 @@
},
"description": {
"type": "string",
- "description": "変数の説明です。"
+ "description": "変数の説明。"
},
"created_at": {
"type": "integer",
@@ -3762,7 +3762,7 @@
},
"ConversationVariableUpdateRequest": {
"type": "object",
- "description": "会話変数を更新するためのリクエストボディです。",
+ "description": "会話変数を更新するためのリクエストボディ。",
"required": [
"value"
],
@@ -3786,7 +3786,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "音声ファイルです。対応形式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。上限:`30 MB`。"
+ "description": "音声ファイル。サポート:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。制限:`30 MB`。"
},
"user": {
"type": "string",
@@ -3805,12 +3805,12 @@
},
"TextToAudioRequest": {
"type": "object",
- "description": "テキストから音声への変換のリクエストボディ。`message_id` または `text` のいずれかを指定してください。",
+ "description": "テキストから音声への変換のリクエストボディ。`message_id` または `text` のいずれかを提供してください。",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
- "description": "メッセージ ID です。両方が指定された場合、`text` よりも優先されます。"
+ "description": "メッセージ ID。両方が提供された場合、`text` より優先されます。"
},
"text": {
"type": "string",
@@ -3822,7 +3822,7 @@
},
"voice": {
"type": "string",
- "description": "テキスト読み上げに使用する音声。利用可能な音声は、このアプリに設定された TTS プロバイダーによって異なります。デフォルトには[アプリケーションのパラメータ情報を取得](/api-reference/アプリケーション設定/アプリケーションのパラメータ情報を取得) → `text_to_speech.voice` の `voice` 値を使用してください。"
+ "description": "テキストから音声への変換に使用するボイス。利用可能なボイスは、このアプリ用に設定された TTS プロバイダーによって異なります。デフォルトには [アプリパラメータを取得](/api-reference/applications/get-app-parameters) → `text_to_speech.voice` の `voice` 値を使用してください。"
},
"streaming": {
"type": "boolean",
@@ -3850,7 +3850,7 @@
},
"mode": {
"type": "string",
- "description": "アプリケーションモードです。`chat` は基本チャットアプリ、`agent-chat` はエージェントベースのアプリ、`advanced-chat` は chatflow アプリを示します。"
+ "description": "アプリケーションモード。基本チャットアプリの場合は `chat`、エージェントベースアプリの場合は `agent-chat`、チャットフローアプリの場合は `advanced-chat`。"
},
"author_name": {
"type": "string",
@@ -3863,18 +3863,18 @@
"properties": {
"opening_statement": {
"type": "string",
- "description": "会話開始時に表示されるオープニングメッセージです。"
+ "description": "会話開始時に表示されるオープニングステートメント。"
},
"suggested_questions": {
"type": "array",
"items": {
"type": "string"
},
- "description": "推奨される初期質問のリスト。"
+ "description": "候補スターター質問のリスト。"
},
"suggested_questions_after_answer": {
"type": "object",
- "description": "回答後の推奨質問の設定。",
+ "description": "回答後の候補質問の設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -3902,7 +3902,7 @@
},
"voice": {
"type": "string",
- "description": "TTS の音声識別子。"
+ "description": "TTS のボイス識別子。"
},
"language": {
"type": "string",
@@ -3910,13 +3910,13 @@
},
"autoPlay": {
"type": "string",
- "description": "自動再生設定です。音声を自動再生するには `enabled`、手動再生を要求するには `disabled` を指定します。"
+ "description": "自動再生設定。音声を自動再生する場合は `enabled`、手動再生が必要な場合は `disabled`。"
}
}
},
"retriever_resource": {
"type": "object",
- "description": "検索リソースの設定。",
+ "description": "検索リソース設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -3926,7 +3926,7 @@
},
"annotation_reply": {
"type": "object",
- "description": "アノテーション返信の設定。",
+ "description": "アノテーション返信設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -3936,7 +3936,7 @@
},
"more_like_this": {
"type": "object",
- "description": "類似コンテンツの設定。",
+ "description": "類似コンテンツ設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -3946,7 +3946,7 @@
},
"sensitive_word_avoidance": {
"type": "object",
- "description": "センシティブワードフィルタリングの設定。",
+ "description": "センシティブワード回避設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -3963,11 +3963,11 @@
},
"file_upload": {
"type": "object",
- "description": "ファイルアップロードの設定。",
+ "description": "ファイルアップロード設定。",
"properties": {
"image": {
"type": "object",
- "description": "画像アップロードの設定。",
+ "description": "画像アップロード設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -3975,11 +3975,11 @@
},
"number_limits": {
"type": "integer",
- "description": "最大画像数。"
+ "description": "画像の最大数。"
},
"detail": {
"type": "string",
- "description": "画像の詳細レベル。"
+ "description": "画像詳細レベル。"
},
"transfer_methods": {
"type": "array",
@@ -4035,7 +4035,7 @@
]
},
"TextInputControlWrapper": {
- "title": "Text Input",
+ "title": "テキスト入力",
"type": "object",
"properties": {
"text-input": {
@@ -4044,7 +4044,7 @@
}
},
"ParagraphControlWrapper": {
- "title": "Paragraph",
+ "title": "段落",
"type": "object",
"properties": {
"paragraph": {
@@ -4053,7 +4053,7 @@
}
},
"SelectControlWrapper": {
- "title": "Select",
+ "title": "選択",
"type": "object",
"properties": {
"select": {
@@ -4063,74 +4063,74 @@
},
"TextInputControl": {
"type": "object",
- "description": "テキスト入力フォームコントロールです。",
+ "description": "テキスト入力フォームコントロール。",
"properties": {
"label": {
"type": "string",
- "description": "表示ラベルです。"
+ "description": "表示ラベル。"
},
"variable": {
"type": "string",
- "description": "変数名です。"
+ "description": "変数名。"
},
"required": {
"type": "boolean",
- "description": "入力が必須かどうかです。"
+ "description": "入力が必須かどうか。"
},
"default": {
"type": "string",
- "description": "デフォルト値です。"
+ "description": "デフォルト値。"
}
}
},
"ParagraphControl": {
"type": "object",
- "description": "段落(複数行テキスト)フォームコントロールです。",
+ "description": "段落(複数行テキスト)フォームコントロール。",
"properties": {
"label": {
"type": "string",
- "description": "表示ラベルです。"
+ "description": "表示ラベル。"
},
"variable": {
"type": "string",
- "description": "変数名です。"
+ "description": "変数名。"
},
"required": {
"type": "boolean",
- "description": "入力が必須かどうかです。"
+ "description": "入力が必須かどうか。"
},
"default": {
"type": "string",
- "description": "デフォルト値です。"
+ "description": "デフォルト値。"
}
}
},
"SelectControl": {
"type": "object",
- "description": "セレクト(ドロップダウン)フォームコントロールです。",
+ "description": "選択(ドロップダウン)フォームコントロール。",
"properties": {
"label": {
"type": "string",
- "description": "表示ラベルです。"
+ "description": "表示ラベル。"
},
"variable": {
"type": "string",
- "description": "変数名です。"
+ "description": "変数名。"
},
"required": {
"type": "boolean",
- "description": "選択が必須かどうかです。"
+ "description": "選択が必須かどうか。"
},
"default": {
"type": "string",
- "description": "デフォルトで選択される値。"
+ "description": "デフォルトの選択値。"
},
"options": {
"type": "array",
"items": {
"type": "string"
},
- "description": "このフォームコントロールの選択可能な値のリスト。"
+ "description": "このフォームコントロールで選択可能な値のリスト。"
}
}
},
@@ -4142,7 +4142,7 @@
"additionalProperties": {
"oneOf": [
{
- "title": "Icon URL",
+ "title": "アイコン URL",
"type": "string",
"format": "url",
"description": "アイコンの URL。"
@@ -4157,17 +4157,17 @@
}
},
"ToolIconDetail": {
- "title": "Emoji Icon",
+ "title": "絵文字アイコン",
"type": "object",
"description": "絵文字を使用したツールアイコンの詳細。",
"properties": {
"background": {
"type": "string",
- "description": "16進数形式の背景色。"
+ "description": "16進形式の背景色。"
},
"content": {
"type": "string",
- "description": "Emoji コンテンツ。"
+ "description": "絵文字コンテンツ。"
}
}
},
@@ -4188,11 +4188,11 @@
},
"icon_type": {
"type": "string",
- "description": "使用されるアイコンのタイプ。`emoji` は絵文字アイコン、`image` はアップロードされた画像アイコンです。"
+ "description": "使用されるアイコンのタイプ。絵文字アイコンの場合は `emoji`、アップロードされた画像アイコンの場合は `image`。"
},
"icon": {
"type": "string",
- "description": "アイコンのコンテンツ(絵文字または画像 ID)。"
+ "description": "アイコンコンテンツ(絵文字または画像 ID)。"
},
"icon_background": {
"type": "string",
@@ -4242,23 +4242,23 @@
"items": {
"$ref": "#/components/schemas/AnnotationItem"
},
- "description": "現在のページのアノテーション項目のリストです。"
+ "description": "現在のページのアノテーションアイテムのリスト。"
},
"has_more": {
"type": "boolean",
- "description": "現在の結果セットの後にさらにページがある場合は `true` です。"
+ "description": "現在の結果セットを超えてさらにページがある場合は `true`。"
},
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"total": {
"type": "integer",
- "description": "クエリに一致するアノテーションの合計数です。"
+ "description": "クエリに一致するアノテーションの総数。"
},
"page": {
"type": "integer",
- "description": "現在のページ番号です。"
+ "description": "現在のページ番号。"
}
}
},
@@ -4268,22 +4268,22 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "アノテーションの一意識別子です。"
+ "description": "一意のアノテーション識別子。"
},
"question": {
"type": "string",
"nullable": true,
- "description": "このアノテーションをトリガーする質問テキストです。"
+ "description": "このアノテーションをトリガーする質問テキスト。"
},
"answer": {
"type": "string",
"nullable": true,
- "description": "アノテーションがマッチした際に返される定義済みの回答です。"
+ "description": "アノテーションがマッチした際に返される事前定義された回答。"
},
"hit_count": {
"type": "integer",
"nullable": true,
- "description": "このアノテーションがマッチして返信として返された回数です。"
+ "description": "このアノテーションがマッチして返信として返された回数。"
},
"created_at": {
"type": "integer",
@@ -4295,7 +4295,7 @@
},
"CreateAnnotationRequest": {
"type": "object",
- "description": "新しいアノテーションを作成するためのリクエストボディです。",
+ "description": "新しいアノテーションを作成するためのリクエストボディ。",
"required": [
"question",
"answer"
@@ -4303,17 +4303,17 @@
"properties": {
"question": {
"type": "string",
- "description": "アノテーションの質問です。"
+ "description": "アノテーションの質問。"
},
"answer": {
"type": "string",
- "description": "アノテーションの回答です。"
+ "description": "アノテーションの回答。"
}
}
},
"UpdateAnnotationRequest": {
"type": "object",
- "description": "アノテーション更新のリクエストボディです。",
+ "description": "アノテーションを更新するためのリクエストボディ。",
"required": [
"question",
"answer"
@@ -4321,17 +4321,17 @@
"properties": {
"question": {
"type": "string",
- "description": "更新されたアノテーションの質問です。"
+ "description": "更新されたアノテーションの質問。"
},
"answer": {
"type": "string",
- "description": "更新されたアノテーションの回答です。"
+ "description": "更新されたアノテーションの回答。"
}
}
},
"InitialAnnotationReplySettingsRequest": {
"type": "object",
- "description": "アノテーション返信設定を構成するためのリクエストボディです。",
+ "description": "アノテーション返信設定を構成するためのリクエストボディ。",
"required": [
"score_threshold",
"embedding_provider_name",
@@ -4340,16 +4340,16 @@
"properties": {
"embedding_provider_name": {
"type": "string",
- "description": "埋め込みモデルプロバイダーの名前(例:`openai`、`cohere`)です。"
+ "description": "埋め込みモデルプロバイダーの名前(例:`openai`、`cohere`)。"
},
"embedding_model_name": {
"type": "string",
- "description": "アノテーションマッチングに使用する埋め込みモデルの名前です(例:`text-embedding-3-small`)。"
+ "description": "アノテーションマッチングに使用する埋め込みモデルの名前(例:`text-embedding-3-small`)。"
},
"score_threshold": {
"type": "number",
"format": "float",
- "description": "アノテーションがマッチとみなされるための最低類似度スコアです。値が高いほど、より正確なマッチが必要になります。",
+ "description": "アノテーションがマッチと見なされるための最小類似度スコア。値が高いほど、より近いマッチが必要になります。",
"minimum": 0,
"maximum": 1
}
@@ -4361,11 +4361,11 @@
"job_id": {
"type": "string",
"format": "uuid",
- "description": "非同期ジョブ ID です。[アノテーション返信の初期設定タスクステータスを取得](/api-reference/アノテーション管理/アノテーション返信の初期設定タスクステータスを取得) と組み合わせて進捗を追跡します。"
+ "description": "非同期ジョブ ID。進行状況を追跡するには [アノテーション返信ジョブステータスを取得](/api-reference/annotations/get-annotation-reply-job-status) と一緒に使用してください。"
},
"job_status": {
"type": "string",
- "description": "現在のジョブステータスです。`waiting` はキュー待ち、`processing` は処理中、`completed` は完了、`error` は失敗を示します。"
+ "description": "現在のジョブステータス。キューに入っている場合は `waiting`、進行中の場合は `processing`、完了した場合は `completed`、失敗した場合は `error`。"
}
}
},
@@ -4375,15 +4375,15 @@
"job_id": {
"type": "string",
"format": "uuid",
- "description": "[アノテーション返信を設定](/api-reference/アノテーション管理/アノテーション返信を設定) 呼び出しから取得したジョブ ID です。"
+ "description": "[アノテーション返信を設定](/api-reference/annotations/configure-annotation-reply) 呼び出しからのジョブ ID。"
},
"job_status": {
"type": "string",
- "description": "現在のジョブステータスです。`waiting` はキュー待ち、`processing` は処理中、`completed` は完了、`error` は失敗を示します。"
+ "description": "現在のジョブステータス。キューに入っている場合は `waiting`、進行中の場合は `processing`、完了した場合は `completed`、失敗した場合は `error`。"
},
"error_msg": {
"type": "string",
- "description": "ジョブが失敗した理由を説明するエラーメッセージです。`job_status` が `error` でない場合は空文字列です。"
+ "description": "ジョブが失敗した理由を説明するエラーメッセージ。`job_status` が `error` でない場合は空の文字列。"
}
}
}
@@ -4391,36 +4391,36 @@
},
"tags": [
{
- "name": "チャットメッセージ",
- "description": "チャットメッセージとインタラクションに関連する操作です。"
+ "name": "Chats",
+ "description": "チャットメッセージとインタラクションに関連する操作。"
},
{
- "name": "ファイル操作",
- "description": "ファイルのアップロードとプレビューの操作です。"
+ "name": "Files",
+ "description": "ファイルのアップロードとプレビュー操作。"
},
{
- "name": "エンドユーザー",
- "description": "エンドユーザー情報に関連する操作です。"
+ "name": "End Users",
+ "description": "エンドユーザー情報に関連する操作。"
},
{
- "name": "メッセージフィードバック",
- "description": "ユーザーフィードバックの操作です。"
+ "name": "Feedback",
+ "description": "ユーザーフィードバック操作。"
},
{
- "name": "会話管理",
- "description": "会話管理に関連する操作です。"
+ "name": "Conversations",
+ "description": "会話の管理に関連する操作。"
},
{
- "name": "音声・テキスト変換",
- "description": "テキスト読み上げと音声認識の操作です。"
+ "name": "TTS",
+ "description": "テキストから音声への変換および音声からテキストへの変換操作。"
},
{
- "name": "アプリケーション設定",
- "description": "アプリケーション設定と情報を取得する操作です。"
+ "name": "Applications",
+ "description": "アプリケーション設定と情報を取得する操作。"
},
{
- "name": "アノテーション管理",
- "description": "ダイレクト返信用のアノテーション管理に関連する操作です。"
+ "name": "Annotations",
+ "description": "直接返信用のアノテーション管理に関連する操作。"
}
]
-}
+}
\ No newline at end of file
diff --git a/ja/api-reference/openapi_chatflow.json b/ja/api-reference/openapi_chatflow.json
index 0a792b889..7bd3c111d 100644
--- a/ja/api-reference/openapi_chatflow.json
+++ b/ja/api-reference/openapi_chatflow.json
@@ -1,14 +1,14 @@
{
"openapi": "3.0.1",
"info": {
- "title": "高度なチャットアプリAPI (Chatflow API)",
- "description": "Chatflow アプリケーションはセッションの永続化をサポートし、過去のチャット履歴をレスポンスのコンテキストとして使用できます。Chatflow アプリは `advanced-chat` モードを使用し、ノードの開始・完了、イテレーション、ワークフローのライフサイクルを含む詳細な実行追跡のためのワークフローレベルのストリーミングイベントを提供します。",
+ "title": "チャットフローアプリ API",
+ "description": "チャットフローアプリケーションはセッションの永続化をサポートしており、以前のチャット履歴をレスポンスのコンテキストとして使用できます。チャットフローアプリは `advanced-chat` モードを使用し、ノードの開始、終了、イテレーション、ワークフローライフサイクルを含む詳細な実行追跡のためのワークフローレベルのストリーミングイベントを提供します。",
"version": "1.0.0"
},
"servers": [
{
"url": "{api_base_url}",
- "description": "Chatflow アプリ API のベース URL です。{api_base_url} をアプリケーションに提供された実際の API ベース URL に置き換えてください。",
+ "description": "チャットフローアプリ API のベース URL。{api_base_url} をアプリケーションに提供された実際の API ベース URL に置き換えてください。",
"variables": {
"api_base_url": {
"default": "https://api.dify.ai/v1",
@@ -27,9 +27,9 @@
"post": {
"summary": "チャットメッセージを送信",
"description": "チャットアプリケーションにリクエストを送信します。",
- "operationId": "sendChatflowMessageJp",
+ "operationId": "sendAdvancedChatMessage",
"tags": [
- "チャットメッセージ"
+ "Chats"
],
"requestBody": {
"description": "チャットメッセージを送信するためのリクエストボディ。",
@@ -75,7 +75,7 @@
},
"responses": {
"200": {
- "description": "リクエスト成功。コンテンツタイプと構造はリクエストの `response_mode` パラメータに依存します。\n\n- `response_mode` が `blocking` の場合、 `application/json` で `ChatCompletionResponse` オブジェクトを返します。\n- `response_mode` が `streaming` の場合、 `text/event-stream` で `ChunkChatEvent` オブジェクトのストリームを返します。",
+ "description": "成功レスポンス。コンテンツタイプと構造はリクエストの `response_mode` パラメータによって異なります。\n- `response_mode` が `blocking` の場合、`ChatCompletionResponse` オブジェクトを含む `application/json` を返します。\n- `response_mode` が `streaming` の場合、`ChunkChatEvent` オブジェクトのストリームを含む `text/event-stream` を返します。",
"content": {
"application/json": {
"schema": {
@@ -128,15 +128,15 @@
"text/event-stream": {
"schema": {
"type": "string",
- "description": "サーバー送信イベント (SSE) のストリームです。各イベントは `data: ` プレフィックス付きの JSON オブジェクトで、2 つの改行で終了します。\n\n**SSE パースガイド:**各イベントは `data: ` プレフィックス付きの JSON オブジェクトの行で、`\\n\\n` で終了します。JSON をパースする前に `data: ` プレフィックスを除去してください。JSON 内の `event` フィールドがイベントタイプを決定します。終了イベント(`message_end`、`workflow_finished`、`error` など)を受信するとストリームは終了します。`ping` イベント(10 秒ごとに接続維持のために送信)は無視してください。ストリーム内でエラーイベントが発生しても HTTP ステータスコードは常に `200` です。"
+ "description": "Server-Sent Events (SSE) のストリーム。各イベントは `data: ` で始まり、2つの改行で終了する JSON オブジェクトです。可能なイベント構造については `ChunkChatEvent` を参照してください。\n**SSE パースガイド:** 各イベントは `data: ` で始まり、JSON オブジェクトが続き、`\\n\\n` で終了する行です。JSON をパースする前に `data: ` プレフィックスを削除してください。JSON 内の `event` フィールドがイベントタイプを決定します。`message_end` はチャットメッセージの終了を示しますが、`workflow_finished` や `workflow_paused` などのワークフローライフサイクルイベントでストリームが続く場合があります。ストリームは終端ワークフローイベントを受信したとき、または `error` イベントがストリームを終了したときに終了します。`ping` イベント(接続を維持するために10秒ごとに送信される)は無視してください。ストリーム内でエラーイベントが発生した場合でも、HTTP ステータスコードは常に `200` であることに注意してください。"
},
"examples": {
"streamingResponseBasic": {
- "summary": "Response Example - Streaming (Basic)",
+ "summary": "レスポンス例 - ストリーミング(基本)",
"value": "data: {\"event\": \"message\", \"task_id\":\"mock_task_id\", \"message_id\": \"5ad4cb98-f0c7-4085-b384-88c403be6290\", \"conversation_id\": \"45701982-8118-4bc5-8e9b-64562b4555f2\", \"answer\": \" I\", \"created_at\": 1679586595} data: {\"event\": \"message_end\", \"task_id\":\"mock_task_id\", \"message_id\": \"5ad4cb98-f0c7-4085-b384-88c403be6290\", \"conversation_id\": \"45701982-8118-4bc5-8e9b-64562b4555f2\", \"metadata\": {\"usage\": {\"total_tokens\": 10, \"latency\": 1.0}}}"
},
"streamingResponseWorkflow": {
- "summary": "Response Example - Streaming (Workflow)",
+ "summary": "レスポンス例 - ストリーミング(ワークフロー)",
"value": "data: {\"event\": \"workflow_started\", \"task_id\": \"task123\", \"workflow_run_id\": \"wfr_abc123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"data\": {\"id\": \"wfr_abc123\", \"workflow_id\": \"wf_def456\", \"inputs\": {\"city\": \"San Francisco\"}, \"created_at\": 1705395332}} data: {\"event\": \"node_started\", \"task_id\": \"task123\", \"workflow_run_id\": \"wfr_abc123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"data\": {\"id\": \"ne_001\", \"node_id\": \"node_llm_1\", \"node_type\": \"llm\", \"title\": \"LLM\", \"index\": 1, \"created_at\": 1705395332}} data: {\"event\": \"message\", \"task_id\": \"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"answer\": \" I\", \"created_at\": 1705395333} data: {\"event\": \"node_finished\", \"task_id\": \"task123\", \"workflow_run_id\": \"wfr_abc123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"data\": {\"id\": \"ne_001\", \"node_id\": \"node_llm_1\", \"node_type\": \"llm\", \"title\": \"LLM\", \"index\": 1, \"status\": \"succeeded\", \"elapsed_time\": 1.5, \"created_at\": 1705395332, \"finished_at\": 1705395334}} data: {\"event\": \"message_end\", \"task_id\": \"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"metadata\": {\"usage\": {\"total_tokens\": 50, \"latency\": 2.5}}} data: {\"event\": \"workflow_finished\", \"task_id\": \"task123\", \"workflow_run_id\": \"wfr_abc123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"data\": {\"id\": \"wfr_abc123\", \"workflow_id\": \"wf_def456\", \"status\": \"succeeded\", \"elapsed_time\": 2.5, \"total_tokens\": 50, \"total_steps\": 2, \"created_at\": 1705395332, \"finished_at\": 1705395335}}"
}
}
@@ -144,7 +144,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `not_chat_app` : App mode does not match the API route.\n- `conversation_completed` : The conversation has ended.\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルは利用できません。\n- `completion_request_error` : テキスト生成に失敗しました。\n- `bad_request` : Cannot use draft workflow version.\n- `bad_request` : Invalid `workflow_id` format.",
+ "description": "- `app_unavailable` : アプリが利用不可または設定が不正です。\n- `not_chat_app` : アプリモードが API ルートと一致しません。\n- `conversation_completed` : 会話は終了しています。\n- `provider_not_initialize` : 有効なモデルプロバイダー認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが超過しました。\n- `model_currently_not_support` : 現在のモデルは利用できません。\n- `completion_request_error` : テキスト生成に失敗しました。\n- `bad_request` : ドラフトワークフローバージョンは使用できません。\n- `bad_request` : `workflow_id` の形式が無効です。",
"content": {
"application/json": {
"examples": {
@@ -250,7 +250,7 @@
}
},
"429": {
- "description": "- `too_many_requests` : このアプリケーションへの同時リクエストが多すぎます。\n- `rate_limit_error` : アップストリームのモデルプロバイダーのレート制限を超えました。",
+ "description": "- `too_many_requests` : このアプリへの同時リクエストが多すぎます。\n- `rate_limit_error` : 上流モデルプロバイダーのレート制限を超過しました。",
"content": {
"application/json": {
"examples": {
@@ -296,18 +296,18 @@
},
"/chat-messages/{task_id}/stop": {
"post": {
- "summary": "生成を停止",
- "description": "チャットメッセージ生成タスクを停止します。`streaming` モードでのみサポートされます。",
- "operationId": "stopChatflowMessageGenerationJp",
+ "summary": "チャットメッセージ生成を停止",
+ "description": "チャットメッセージ生成タスクを停止します。`streaming` モードでのみサポートされています。",
+ "operationId": "stopAdvancedChatMessageGeneration",
"tags": [
- "チャットメッセージ"
+ "Chats"
],
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
- "description": "タスク ID です。[チャットメッセージを送信](/api-reference/チャットメッセージ/チャットメッセージを送信) API のストリーミングチャンクレスポンスから取得できます。",
+ "description": "タスク ID。[チャットメッセージを送信](/ja/api-reference/chats/send-chat-message) API のストリーミングチャンク応答から取得できます。",
"schema": {
"type": "string"
}
@@ -325,7 +325,7 @@
"properties": {
"user": {
"type": "string",
- "description": "ユーザー識別子。メッセージ送信インターフェースで渡された user と一致する必要があります。"
+ "description": "ユーザー識別子。メッセージ送信インターフェースで渡したユーザーと一致している必要があります。"
}
}
},
@@ -368,9 +368,9 @@
"get": {
"summary": "次の推奨質問を取得",
"description": "現在のメッセージに対する次の質問の提案を取得します。",
- "operationId": "getChatflowSuggestedQuestionsJp",
+ "operationId": "getAdvancedSuggestedQuestions",
"tags": [
- "チャットメッセージ"
+ "Chats"
],
"parameters": [
{
@@ -394,7 +394,7 @@
],
"responses": {
"200": {
- "description": "提案された質問の取得に成功しました。",
+ "description": "推奨質問の取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -417,7 +417,7 @@
}
},
"400": {
- "description": "- `not_chat_app` : アプリモードが API ルートと一致しません。\n- `bad_request` : 推奨質問機能が無効です。",
+ "description": "- `not_chat_app` : アプリモードが API ルートと一致しません。\n- `bad_request` : 推奨質問機能が無効になっています。",
"content": {
"application/json": {
"examples": {
@@ -480,14 +480,14 @@
},
"/files/upload": {
"post": {
- "operationId": "uploadChatflowFileJp",
+ "operationId": "uploadAdvancedChatFile",
"tags": [
- "ファイル操作"
+ "Files"
],
"summary": "ファイルをアップロード",
- "description": "メッセージ送信時に使用するファイルをアップロードします。画像、ドキュメント、音声、動画のマルチモーダル理解が可能です。アップロードされたファイルは現在のエンドユーザーのみが使用できます。",
+ "description": "メッセージ送信時に使用するファイルをアップロードし、画像、ドキュメント、音声、動画のマルチモーダル理解を可能にします。アップロードされたファイルは現在のエンドユーザーのみが使用できます。",
"requestBody": {
- "description": "ファイルアップロードリクエスト。multipart/form-data 形式が必要です。",
+ "description": "ファイルアップロードリクエスト。multipart/form-data が必要です。",
"required": true,
"content": {
"multipart/form-data": {
@@ -500,7 +500,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "アップロードするファイル。サポートされるタイプには画像、ドキュメント、音声、動画が含まれます。"
+ "description": "アップロードするファイル。画像、ドキュメント、音声、動画などのタイプがサポートされています。"
},
"user": {
"type": "string",
@@ -513,7 +513,7 @@
},
"responses": {
"201": {
- "description": "ファイルが正常にアップロードされました。",
+ "description": "ファイルのアップロードに成功しました。",
"content": {
"application/json": {
"schema": {
@@ -544,7 +544,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : リクエストにファイルが提供されていません。\n- `too_many_files` : 1 回のリクエストにつき 1 ファイルのみ許可されています。\n- `filename_not_exists_error` : アップロードされたファイルにファイル名がありません。",
+ "description": "- `no_file_uploaded` : リクエストにファイルが含まれていません。\n- `too_many_files` : リクエストごとに1つのファイルのみ許可されています。\n- `filename_not_exists_error` : アップロードされたファイルにファイル名がありません。",
"content": {
"application/json": {
"examples": {
@@ -577,7 +577,7 @@
}
},
"413": {
- "description": "`file_too_large` : ファイルサイズの上限を超えています。",
+ "description": "`file_too_large` : ファイルサイズが超過しました。",
"content": {
"application/json": {
"examples": {
@@ -594,7 +594,7 @@
}
},
"415": {
- "description": "`unsupported_file_type` : 許可されていないファイルタイプです。",
+ "description": "`unsupported_file_type` : ファイルタイプが許可されていません。",
"content": {
"application/json": {
"examples": {
@@ -615,18 +615,18 @@
},
"/files/{file_id}/preview": {
"get": {
- "operationId": "previewChatflowFileJp",
+ "operationId": "previewChatFlowFile",
"tags": [
- "ファイル操作"
+ "Files"
],
"summary": "ファイルをダウンロード",
- "description": "以前[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API 経由でアップロードされたファイルをプレビューまたはダウンロードします。ファイルは、リクエスト元のアプリケーション内のメッセージに属する場合のみアクセスできます。",
+ "description": "[ファイルをアップロード](/ja/api-reference/files/upload-file) API で以前にアップロードされたファイルをプレビューまたはダウンロードします。ファイルは、リクエストしているアプリケーション内のメッセージに属している場合のみアクセスできます。",
"parameters": [
{
"name": "file_id",
"in": "path",
"required": true,
- "description": "プレビューするファイルの一意の識別子です。[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API のレスポンスから取得します。",
+ "description": "プレビューするファイルの一意の識別子。[ファイルをアップロード](/ja/api-reference/files/upload-file) API レスポンスから取得します。",
"schema": {
"type": "string",
"format": "uuid"
@@ -636,7 +636,7 @@
"name": "as_attachment",
"in": "query",
"required": false,
- "description": "`true` の場合、ブラウザでプレビューする代わりにファイルを添付ファイルとして強制ダウンロードします。",
+ "description": "`true` の場合、ブラウザでプレビューする代わりに添付ファイルとしてダウンロードを強制します。",
"schema": {
"type": "boolean",
"default": false
@@ -646,7 +646,7 @@
"name": "user",
"in": "query",
"required": false,
- "description": "ユーザー識別子。エンドユーザーのコンテキストに使用されます。",
+ "description": "ユーザー識別子。エンドユーザーコンテキストに使用されます。",
"schema": {
"type": "string"
}
@@ -654,7 +654,7 @@
],
"responses": {
"200": {
- "description": "生のファイルコンテンツを返します。`Content-Type` ヘッダーはファイルの MIME タイプに設定されます。`as_attachment` が `true` の場合、ファイルは `Content-Disposition: attachment` としてダウンロード形式で返されます。",
+ "description": "生のファイルコンテンツを返します。`Content-Type` ヘッダーはファイルの MIME タイプに設定されます。`as_attachment` が `true` の場合、ファイルは `Content-Disposition: attachment` でダウンロードとして返されます。",
"content": {
"application/octet-stream": {
"schema": {
@@ -682,7 +682,7 @@
}
},
"404": {
- "description": "`file_not_found` : リクエストされたファイルが見つかりません。",
+ "description": "`file_not_found` : リクエストされたファイルが見つかりませんでした。",
"content": {
"application/json": {
"examples": {
@@ -703,12 +703,12 @@
},
"/end-users/{end_user_id}": {
"get": {
- "operationId": "getEndUserChatflowJp",
+ "operationId": "getEndUserChatflow",
"tags": [
- "エンドユーザー"
+ "End Users"
],
- "summary": "エンドユーザー取得",
- "description": "ID を指定してエンドユーザーを取得します。他の API がエンドユーザー ID を返す場合(例:[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード)の `created_by`)に便利です。",
+ "summary": "エンドユーザー情報を取得",
+ "description": "ID でエンドユーザーを取得します。他の API がエンドユーザー ID を返す場合(例:[ファイルをアップロード](/ja/api-reference/files/upload-file) の `created_by`)に便利です。",
"parameters": [
{
"name": "end_user_id",
@@ -723,7 +723,7 @@
],
"responses": {
"200": {
- "description": "エンドユーザーを正常に取得しました。",
+ "description": "エンドユーザーの取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -771,12 +771,12 @@
},
"/messages/{message_id}/feedbacks": {
"post": {
- "operationId": "postChatflowMessageFeedbackJp",
+ "operationId": "postAdvancedChatMessageFeedback",
"tags": [
- "メッセージフィードバック"
+ "Feedback"
],
"summary": "メッセージフィードバックを送信",
- "description": "メッセージに対するフィードバックを送信します。エンドユーザーはメッセージを `like` または `dislike` で評価でき、任意でテキストフィードバックを提供できます。`rating` に `null` を渡すと、以前送信したフィードバックを取り消せます。",
+ "description": "メッセージに対するフィードバックを送信します。エンドユーザーはメッセージを `like` または `dislike` で評価し、オプションでテキストフィードバックを提供できます。以前に送信したフィードバックを取り消すには、`rating` に `null` を渡します。",
"parameters": [
{
"name": "message_id",
@@ -834,17 +834,17 @@
},
"/app/feedbacks": {
"get": {
- "operationId": "getChatflowAppFeedbacksJp",
+ "operationId": "getAdvancedChatAppFeedbacks",
"tags": [
- "メッセージフィードバック"
+ "Feedback"
],
- "summary": "アプリのフィードバック一覧を取得",
- "description": "このアプリケーションのメッセージに対して送信されたすべてのフィードバックのページネーション付きリストを取得します。エンドユーザーと管理者のフィードバックの両方が含まれます。",
+ "summary": "アプリフィードバック一覧",
+ "description": "このアプリケーションのメッセージに対して送信されたすべてのフィードバックのページ分割されたリストを取得します。エンドユーザーと管理者の両方のフィードバックを含みます。",
"parameters": [
{
"name": "page",
"in": "query",
- "description": "ページネーションのページ番号。",
+ "description": "ページネーション用のページ番号。",
"required": false,
"schema": {
"type": "integer",
@@ -916,11 +916,11 @@
},
"/conversations": {
"get": {
- "summary": "会話一覧を取得",
- "description": "現在のユーザーの会話リストを、最近アクティブな順に取得します。",
- "operationId": "getChatflowConversationsListJp",
+ "summary": "会話一覧",
+ "description": "現在のユーザーの会話リストを、最も最近アクティブな順に取得します。",
+ "operationId": "getAdvancedConversationsList",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -936,7 +936,7 @@
"name": "last_id",
"in": "query",
"required": false,
- "description": "現在のページの最後のレコードの ID(ページネーション用)です。",
+ "description": "現在のページの最後のレコードの ID(ページネーション用)。",
"schema": {
"type": "string"
}
@@ -945,7 +945,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "返すレコード数です。",
+ "description": "返すレコード数。",
"schema": {
"type": "integer",
"default": 20,
@@ -957,7 +957,7 @@
"name": "sort_by",
"in": "query",
"required": false,
- "description": "ソートフィールドです。降順にするには '-' プレフィックスを使用します。",
+ "description": "ソートフィールド。降順の場合は '-' プレフィックスを使用します。",
"schema": {
"type": "string",
"enum": [
@@ -1021,7 +1021,7 @@
}
},
"404": {
- "description": "`not_found` : 前の会話が存在しません(無効な `last_id`)。",
+ "description": "`not_found` : 最後の会話が存在しません(無効な `last_id`)。",
"content": {
"application/json": {
"examples": {
@@ -1042,11 +1042,11 @@
},
"/messages": {
"get": {
- "summary": "会話履歴メッセージ一覧を取得",
- "description": "スクロール読み込み形式で過去のチャット記録を返します。最初のページは最新の `limit` 件のメッセージを返します(時系列の逆順)。",
- "operationId": "getChatflowConversationHistoryJp",
+ "summary": "会話メッセージ一覧",
+ "description": "スクロールロード形式でチャット履歴を返します。最初のページでは最新の `limit` 件のメッセージを返します(逆順)。",
+ "operationId": "getAdvancedConversationHistory",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1071,7 +1071,7 @@
"name": "first_id",
"in": "query",
"required": false,
- "description": "現在のページの最初のチャット記録の ID です。デフォルトは `null`(最新のメッセージを取得)です。次のページを取得するには、現在のリストの最初のメッセージの ID を使用して、より古いメッセージを取得します。",
+ "description": "現在のページの最初のチャットレコードの ID。デフォルトは `null`(最新のメッセージを取得)。後続のページでは、現在のリストの最初のメッセージの ID を使用して古いメッセージを取得します。",
"schema": {
"type": "string"
}
@@ -1080,7 +1080,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "リクエストごとに返すチャット履歴メッセージの数です。",
+ "description": "リクエストごとに返すチャット履歴メッセージの数。",
"schema": {
"type": "integer",
"default": 20,
@@ -1177,11 +1177,11 @@
},
"/conversations/{conversation_id}/variables": {
"get": {
- "summary": "会話変数の取得",
+ "summary": "会話変数一覧",
"description": "特定の会話から変数を取得します。",
- "operationId": "getChatflowConversationVariablesJp",
+ "operationId": "getAdvancedConversationVariables",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1197,7 +1197,7 @@
"name": "user",
"in": "query",
"required": false,
- "description": "ユーザー識別子です。",
+ "description": "ユーザー識別子。",
"schema": {
"type": "string"
}
@@ -1206,7 +1206,7 @@
"name": "last_id",
"in": "query",
"required": false,
- "description": "現在のページの最後のレコードの ID(ページネーション用)です。",
+ "description": "現在のページの最後のレコードの ID(ページネーション用)。",
"schema": {
"type": "string"
}
@@ -1215,7 +1215,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "返すレコード数です。",
+ "description": "返すレコード数。",
"schema": {
"type": "integer",
"default": 20,
@@ -1227,7 +1227,7 @@
"name": "variable_name",
"in": "query",
"required": false,
- "description": "指定した名前で変数をフィルタリングします。",
+ "description": "特定の名前で変数をフィルタリングします。",
"schema": {
"type": "string",
"minLength": 1,
@@ -1306,10 +1306,10 @@
"/conversations/{conversation_id}/name": {
"post": {
"summary": "会話の名前を変更",
- "description": "会話の名前を変更するか、自動的に生成します。会話名は複数の会話をサポートするクライアントでの表示に使用されます。",
- "operationId": "renameChatflowConversationJp",
+ "description": "会話の名前を変更するか、自動生成します。会話名は、複数の会話をサポートするクライアントでの表示に使用されます。",
+ "operationId": "renameAdvancedConversation",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1343,7 +1343,7 @@
},
"responses": {
"200": {
- "description": "会話が正常に名前変更されました。",
+ "description": "会話の名前変更に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -1408,10 +1408,10 @@
"/conversations/{conversation_id}/variables/{variable_id}": {
"put": {
"summary": "会話変数を更新",
- "description": "特定の会話変数の値を更新します。値は期待される型と一致する必要があります。",
- "operationId": "updateChatflowConversationVariableJa",
+ "description": "特定の会話変数の値を更新します。値は期待されるタイプと一致する必要があります。",
+ "operationId": "updateChatflowConversationVariable",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1428,7 +1428,7 @@
"name": "variable_id",
"in": "path",
"required": true,
- "description": "Variable ID.",
+ "description": "変数 ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -1456,7 +1456,7 @@
},
"responses": {
"200": {
- "description": "変数が正常に更新されました。",
+ "description": "変数の更新に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -1480,7 +1480,7 @@
}
},
"400": {
- "description": "- `not_chat_app` : アプリモードが API ルートと一致しません。\n- `bad_request` : 変数値の型が一致しません。",
+ "description": "- `not_chat_app` : アプリモードが API ルートと一致しません。\n- `bad_request` : 変数値のタイプが一致しません。",
"content": {
"application/json": {
"examples": {
@@ -1536,9 +1536,9 @@
"delete": {
"summary": "会話を削除",
"description": "会話を削除します。",
- "operationId": "deleteChatflowConversationJp",
+ "operationId": "deleteAdvancedConversation",
"tags": [
- "会話管理"
+ "Conversations"
],
"parameters": [
{
@@ -1560,7 +1560,7 @@
"properties": {
"user": {
"type": "string",
- "description": "ユーザー識別子です。"
+ "description": "ユーザー識別子。"
}
}
},
@@ -1618,12 +1618,12 @@
},
"/audio-to-text": {
"post": {
- "operationId": "chatflowAudioToTextJp",
+ "operationId": "advancedAudioToText",
"tags": [
- "音声・テキスト変換"
+ "TTS"
],
"summary": "音声をテキストに変換",
- "description": "音声ファイルをテキストに変換します。サポートされる形式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。ファイルサイズの上限は `30 MB` です。",
+ "description": "音声ファイルをテキストに変換します。サポートされている形式: `mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。ファイルサイズ制限は `30 MB` です。",
"requestBody": {
"required": true,
"content": {
@@ -1654,7 +1654,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `no_audio_uploaded` : 音声ファイルがアップロードされていません。\n- `provider_not_support_speech_to_text` : モデルプロバイダーが音声認識をサポートしていません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : 音声認識リクエストに失敗しました。",
+ "description": "- `app_unavailable` : アプリが利用不可または設定が不正です。\n- `no_audio_uploaded` : 音声ファイルがアップロードされていません。\n- `provider_not_support_speech_to_text` : モデルプロバイダーが音声認識をサポートしていません。\n- `provider_not_initialize` : 有効なモデルプロバイダー認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが超過しました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : 音声認識リクエストに失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -1719,7 +1719,7 @@
}
},
"413": {
- "description": "`audio_too_large` : 音声ファイルサイズが上限を超えています。",
+ "description": "`audio_too_large` : 音声ファイルサイズが制限を超えました。",
"content": {
"application/json": {
"examples": {
@@ -1736,7 +1736,7 @@
}
},
"415": {
- "description": "`unsupported_audio_type` : 許可されていない音声タイプです。",
+ "description": "`unsupported_audio_type` : 音声タイプが許可されていません。",
"content": {
"application/json": {
"examples": {
@@ -1774,9 +1774,9 @@
},
"/text-to-audio": {
"post": {
- "operationId": "chatflowTextToAudioJp",
+ "operationId": "advancedTextToAudio",
"tags": [
- "音声・テキスト変換"
+ "TTS"
],
"summary": "テキストを音声に変換",
"description": "テキストを音声に変換します。",
@@ -1803,7 +1803,7 @@
},
"responses": {
"200": {
- "description": "生成された音声ファイルを返します。`Content-Type` ヘッダーは音声の MIME タイプ(例:`audio/wav`、`audio/mp3`)に設定されます。`streaming` が `true` の場合、音声はチャンク転送エンコーディングでストリーミングされます。",
+ "description": "生成された音声ファイルを返します。`Content-Type` ヘッダーは音声の MIME タイプ(例: `audio/wav`、`audio/mp3`)に設定されます。`streaming` が `true` の場合、音声はチャンク転送エンコーディングでストリーミングされます。",
"content": {
"audio/mpeg": {
"schema": {
@@ -1814,7 +1814,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : テキスト読み上げリクエストに失敗しました。",
+ "description": "- `app_unavailable` : アプリが利用不可または設定が不正です。\n- `provider_not_initialize` : 有効なモデルプロバイダー認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが超過しました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : テキスト読み上げリクエストに失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -1884,12 +1884,12 @@
},
"/info": {
"get": {
- "operationId": "getChatflowAppInfoJp",
+ "operationId": "getAdvancedChatAppInfo",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
- "summary": "アプリケーションの基本情報を取得",
- "description": "このアプリケーションの基本情報(名前、説明、タグ、モード)を取得します。",
+ "summary": "アプリ情報を取得",
+ "description": "このアプリケーションの基本情報(名前、説明、タグ、モードを含む)を取得します。",
"responses": {
"200": {
"description": "アプリケーションの基本情報。",
@@ -1903,7 +1903,7 @@
"summary": "レスポンス例",
"value": {
"name": "My Chatflow App",
- "description": "便利なカスタマーサービスチャットボット。",
+ "description": "役立つカスタマーサービスチャットボット。",
"tags": [
"customer-service",
"chatbot"
@@ -1921,12 +1921,12 @@
},
"/parameters": {
"get": {
- "operationId": "getChatflowAppParametersJp",
+ "operationId": "getAdvancedChatAppParameters",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
- "summary": "アプリケーションのパラメータ情報を取得",
- "description": "アプリケーションの入力フォーム設定(機能スイッチ、入力パラメータ名、タイプ、デフォルト値)を取得します。",
+ "summary": "アプリパラメータを取得",
+ "description": "アプリケーションの入力フォーム設定(機能スイッチ、入力パラメータ名、タイプ、デフォルト値を含む)を取得します。",
"responses": {
"200": {
"description": "アプリケーションパラメータ情報。",
@@ -2003,7 +2003,7 @@
}
},
"400": {
- "description": "`app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。",
+ "description": "`app_unavailable` : アプリが利用不可または設定が不正です。",
"content": {
"application/json": {
"examples": {
@@ -2024,15 +2024,15 @@
},
"/meta": {
"get": {
- "operationId": "getChatflowAppMetaJp",
+ "operationId": "getAdvancedChatAppMeta",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
- "summary": "アプリケーションのメタ情報を取得",
- "description": "このアプリケーションのメタデータ(ツールアイコンやその他の設定詳細)を取得します。",
+ "summary": "アプリメタを取得",
+ "description": "このアプリケーションのメタデータ(ツールアイコンやその他の設定詳細を含む)を取得します。",
"responses": {
"200": {
- "description": "アプリケーションのメタ情報を正常に取得しました。",
+ "description": "アプリケーションメタ情報の取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -2060,12 +2060,12 @@
},
"/site": {
"get": {
- "operationId": "getChatflowWebAppSettingsJp",
+ "operationId": "getAdvancedChatWebAppSettings",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
- "summary": "アプリの WebApp 設定を取得",
- "description": "このアプリケーションの WebApp 設定(サイト設定、テーマ、カスタマイズオプション)を取得します。",
+ "summary": "アプリ WebApp 設定を取得",
+ "description": "このアプリケーションの WebApp 設定(サイト設定、テーマ、カスタマイズオプションを含む)を取得します。",
"responses": {
"200": {
"description": "アプリケーションの WebApp 設定。",
@@ -2078,14 +2078,14 @@
"webAppSettings": {
"summary": "レスポンス例",
"value": {
- "title": "My Chat App",
+ "title": "マイチャットアプリ",
"chat_color_theme": "#4A90D9",
"chat_color_theme_inverted": false,
"icon_type": "emoji",
"icon": "🤖",
"icon_background": "#FFFFFF",
"icon_url": null,
- "description": "便利なカスタマーサービスチャットボット。",
+ "description": "役立つカスタマーサービスチャットボット。",
"copyright": "2025 Dify",
"privacy_policy": "https://example.com/privacy",
"custom_disclaimer": "",
@@ -2121,10 +2121,10 @@
"/apps/annotations": {
"post": {
"summary": "アノテーションを作成",
- "description": "新しいアノテーションを作成します。アノテーションは、アプリがレスポンスを生成する代わりに直接マッチして返すことができる、事前定義された質問と回答のペアを提供します。",
- "operationId": "createChatflowAnnotationJa",
+ "description": "新しいアノテーションを作成します。アノテーションは、アプリがレスポンスを生成する代わりに直接マッチして返すことができる事前定義された質問と回答のペアを提供します。",
+ "operationId": "createAdvancedAnnotation",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"requestBody": {
"required": true,
@@ -2147,7 +2147,7 @@
},
"responses": {
"201": {
- "description": "アノテーションが正常に作成されました。",
+ "description": "アノテーションの作成に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -2171,17 +2171,17 @@
}
},
"get": {
- "summary": "アノテーションリストを取得",
- "description": "アプリケーションのアノテーションをページネーションリストで取得します。キーワード検索によるフィルタリングをサポートしています。",
- "operationId": "listChatflowAnnotationsJa",
+ "summary": "アノテーション一覧",
+ "description": "アプリケーションのアノテーションのページ分割されたリストを取得します。キーワード検索フィルタリングをサポートしています。",
+ "operationId": "getAdvancedAnnotationList",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "page",
"in": "query",
- "description": "ページネーションのページ番号。",
+ "description": "ページネーション用のページ番号。",
"required": false,
"schema": {
"type": "integer",
@@ -2191,7 +2191,7 @@
{
"name": "limit",
"in": "query",
- "description": "1 ページあたりの件数です。",
+ "description": "1ページあたりのアイテム数。",
"required": false,
"schema": {
"type": "integer",
@@ -2201,7 +2201,7 @@
{
"name": "keyword",
"in": "query",
- "description": "質問または回答の内容でアノテーションをフィルタリングするためのキーワードです。",
+ "description": "質問または回答の内容でアノテーションをフィルタリングするキーワード。",
"required": false,
"schema": {
"type": "string"
@@ -2246,16 +2246,16 @@
"put": {
"summary": "アノテーションを更新",
"description": "既存のアノテーションの質問と回答を更新します。",
- "operationId": "updateChatflowAnnotationJa",
+ "operationId": "updateAdvancedAnnotation",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "annotation_id",
"in": "path",
"required": true,
- "description": "更新するアノテーションの一意の識別子です。",
+ "description": "更新するアノテーションの一意の識別子。",
"schema": {
"type": "string",
"format": "uuid"
@@ -2283,7 +2283,7 @@
},
"responses": {
"200": {
- "description": "アノテーションが正常に更新されました。",
+ "description": "アノテーションの更新に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -2342,17 +2342,17 @@
},
"delete": {
"summary": "アノテーションを削除",
- "description": "アノテーションとその関連するヒット履歴を削除します。",
- "operationId": "deleteChatflowAnnotationJa",
+ "description": "アノテーションとそれに関連するヒット履歴を削除します。",
+ "operationId": "deleteAdvancedAnnotation",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "annotation_id",
"in": "path",
"required": true,
- "description": "削除するアノテーションの一意の識別子です。",
+ "description": "削除するアノテーションの一意の識別子。",
"schema": {
"type": "string",
"format": "uuid"
@@ -2361,7 +2361,7 @@
],
"responses": {
"204": {
- "description": "アノテーションが正常に削除されました。"
+ "description": "アノテーションの削除に成功しました。"
},
"403": {
"description": "`forbidden` : アノテーションを編集する権限がありません。",
@@ -2402,18 +2402,18 @@
},
"/apps/annotation-reply/{action}": {
"post": {
- "summary": "アノテーション返信を設定",
- "description": "アノテーション返信機能を有効または無効にします。有効にする場合は埋め込みモデルの設定が必要です。非同期で実行されます——[アノテーション返信の初期設定タスクステータスを取得](/api-reference/アノテーション管理/アノテーション返信の初期設定タスクステータスを取得) で進捗を追跡します。",
- "operationId": "setChatflowAnnotationReplyJa",
+ "summary": "アノテーション応答を設定",
+ "description": "アノテーション応答機能を有効化または無効化します。有効化時には埋め込みモデルの設定が必要です。非同期で実行されます — 進捗を追跡するには [アノテーション応答ジョブステータスを取得](/ja/api-reference/annotations/get-annotation-reply-job-status) を使用してください。",
+ "operationId": "initialAdvancedAnnotationReplySettings",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "action",
"in": "path",
"required": true,
- "description": "実行するアクションです。",
+ "description": "実行するアクション。",
"schema": {
"type": "string",
"enum": [
@@ -2445,7 +2445,7 @@
},
"responses": {
"200": {
- "description": "アノテーション返信設定タスクが開始されました。",
+ "description": "アノテーション応答設定タスクが開始されました。",
"content": {
"application/json": {
"schema": {
@@ -2468,18 +2468,18 @@
},
"/apps/annotation-reply/{action}/status/{job_id}": {
"get": {
- "summary": "アノテーション返信の初期設定タスクステータスを取得",
- "description": "[アノテーション返信を設定](/api-reference/アノテーション管理/アノテーション返信を設定) で開始された非同期アノテーション返信設定ジョブのステータスを取得します。",
- "operationId": "getChatflowAnnotationReplyStatusJa",
+ "summary": "アノテーション応答ジョブステータスを取得",
+ "description": "[アノテーション応答を設定](/ja/api-reference/annotations/configure-annotation-reply) で開始された非同期アノテーション応答設定ジョブのステータスを取得します。",
+ "operationId": "getAdvancedInitialAnnotationReplySettingsStatus",
"tags": [
- "アノテーション管理"
+ "Annotations"
],
"parameters": [
{
"name": "action",
"in": "path",
"required": true,
- "description": "アクションタイプです。[アノテーション返信を設定](/api-reference/アノテーション管理/アノテーション返信を設定) の呼び出しと一致する必要があります。",
+ "description": "アクションタイプ。[アノテーション応答を設定](/ja/api-reference/annotations/configure-annotation-reply) の呼び出しと一致する必要があります。",
"schema": {
"type": "string",
"enum": [
@@ -2492,7 +2492,7 @@
"name": "job_id",
"in": "path",
"required": true,
- "description": "[アノテーション返信を設定](/api-reference/アノテーション管理/アノテーション返信を設定) から返されたジョブ ID です。",
+ "description": "[アノテーション応答を設定](/ja/api-reference/annotations/configure-annotation-reply) で返されたジョブ ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -2543,17 +2543,17 @@
"/workflows/run/{workflow_run_id}": {
"get": {
"summary": "ワークフロー実行詳細を取得",
- "description": "ワークフロー実行 ID に基づいて、ワークフロータスクの現在の実行結果を取得します。",
- "operationId": "getChatflowWorkflowRunDetailJa",
+ "description": "ワークフロー実行 ID に基づいてワークフロータスクの現在の実行結果を取得します。",
+ "operationId": "getChatflowWorkflowRunDetail",
"tags": [
- "ワークフロー実行"
+ "Workflow Runs"
],
"parameters": [
{
"name": "workflow_run_id",
"in": "path",
"required": true,
- "description": "ワークフロー実行 ID です。ストリーミングイベントまたはメッセージメタデータから取得できます。",
+ "description": "ワークフロー実行 ID。ストリーミングイベントまたはメッセージメタデータから取得できます。",
"schema": {
"type": "string"
}
@@ -2561,7 +2561,7 @@
],
"responses": {
"200": {
- "description": "ワークフロー実行の詳細の取得に成功しました。",
+ "description": "ワークフロー実行詳細の取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -2610,7 +2610,7 @@
}
},
"404": {
- "description": "`not_found` : ワークフロー実行記録が見つかりません。",
+ "description": "`not_found` : ワークフロー実行が見つかりません。",
"content": {
"application/json": {
"examples": {
@@ -2631,17 +2631,17 @@
},
"/workflows/logs": {
"get": {
- "summary": "ワークフローログ一覧を取得",
- "description": "フィルタリングオプション付きでワークフロー実行ログをページネーションで取得します。",
- "operationId": "listChatflowWorkflowLogsJa",
+ "summary": "ワークフローログ一覧",
+ "description": "フィルタリングオプション付きのページ分割されたワークフロー実行ログを取得します。",
+ "operationId": "listChatflowWorkflowLogs",
"tags": [
- "ワークフロー実行"
+ "Workflow Runs"
],
"parameters": [
{
"name": "keyword",
"in": "query",
- "description": "ログ内を検索するキーワードです。",
+ "description": "ログ内を検索するキーワード。",
"schema": {
"type": "string"
}
@@ -2649,7 +2649,7 @@
{
"name": "status",
"in": "query",
- "description": "実行ステータスでフィルタリングします。",
+ "description": "実行ステータスでフィルタリング。",
"schema": {
"type": "string",
"enum": [
@@ -2662,7 +2662,7 @@
{
"name": "page",
"in": "query",
- "description": "ページネーションのページ番号。",
+ "description": "ページネーション用のページ番号。",
"schema": {
"type": "integer",
"default": 1,
@@ -2673,7 +2673,7 @@
{
"name": "limit",
"in": "query",
- "description": "1 ページあたりの件数です。",
+ "description": "1ページあたりのアイテム数。",
"schema": {
"type": "integer",
"default": 20,
@@ -2684,7 +2684,7 @@
{
"name": "created_at__before",
"in": "query",
- "description": "この ISO 8601 タイムスタンプ以前に作成されたログをフィルタリングします。",
+ "description": "この ISO 8601 タイムスタンプより前に作成されたログをフィルタリング。",
"schema": {
"type": "string",
"format": "date-time"
@@ -2693,7 +2693,7 @@
{
"name": "created_at__after",
"in": "query",
- "description": "この ISO 8601 タイムスタンプ以降に作成されたログをフィルタリングします。",
+ "description": "この ISO 8601 タイムスタンプより後に作成されたログをフィルタリング。",
"schema": {
"type": "string",
"format": "date-time"
@@ -2702,7 +2702,7 @@
{
"name": "created_by_end_user_session_id",
"in": "query",
- "description": "エンドユーザーセッション ID でフィルタリングします。",
+ "description": "エンドユーザーセッション ID でフィルタリング。",
"schema": {
"type": "string"
}
@@ -2710,7 +2710,7 @@
{
"name": "created_by_account",
"in": "query",
- "description": "アカウント ID でフィルタリングします。",
+ "description": "アカウント ID でフィルタリング。",
"schema": {
"type": "string"
}
@@ -2775,7 +2775,7 @@
"type": "http",
"scheme": "bearer",
"bearerFormat": "API_KEY",
- "description": "API Key 認証です。すべての API リクエストにおいて、`Authorization` HTTP ヘッダーに `Bearer ` プレフィックスを付けた API Key を含めてください。例:`Authorization: Bearer {API_KEY}`。**API Key はサーバーサイドに保存し、クライアントサイドで共有・保存しないことを強く推奨します。API Key の漏洩は深刻な結果につながる可能性があります。**"
+ "description": "API キー認証。すべての API リクエストで、`Authorization` HTTP ヘッダーに `Bearer ` プレフィックス付きで API キーを含めてください。例: `Authorization: Bearer {API_KEY}`。**API キーの漏洩による深刻な結果を避けるため、API キーはサーバー側に保存し、クライアント側で共有または保存しないことを強くお勧めします。**"
}
},
"responses": {
@@ -2815,11 +2815,11 @@
"properties": {
"query": {
"type": "string",
- "description": "ユーザーの入力/質問内容です。"
+ "description": "ユーザー入力/質問内容。"
},
"inputs": {
"type": "object",
- "description": "アプリで定義されたさまざまな変数の値を入力できます。キーと値のペアを含みます。アプリが期待する変数名と型については、[アプリケーションのパラメータ情報を取得](/api-reference/アプリケーション設定/アプリケーションのパラメータ情報を取得) レスポンスの `user_input_form` フィールドを参照してください。",
+ "description": "アプリで定義された様々な変数値の入力を許可します。キー/値ペアを含みます。アプリが期待する変数名とタイプを確認するには、[アプリパラメータを取得](/ja/api-reference/applications/get-app-parameters) レスポンスの `user_input_form` フィールドを参照してください。",
"additionalProperties": true
},
"response_mode": {
@@ -2828,19 +2828,19 @@
"streaming",
"blocking"
],
- "description": "レスポンスの返却モード。`streaming`(推奨)は SSE を使用します。`blocking` は完了後に返却します(長時間の処理では中断される場合があります)。Cloudflare のタイムアウトは `100 s` です。省略した場合、デフォルトでブロッキングモードになります。"
+ "description": "レスポンス返却モード。`streaming`(推奨)は SSE を使用します。`blocking` は完了後に返します(長いプロセスでは中断される可能性があります)。Cloudflare タイムアウトは `100 秒` です。省略した場合、デフォルトでブロッキング動作になります。"
},
"user": {
"type": "string",
- "description": "アプリケーション内で一意のユーザー識別子です。この識別子はデータアクセスの範囲を限定します——会話、メッセージ、ファイルは同じ `user` 値でクエリした場合にのみ表示されます。"
+ "description": "ユーザー識別子。アプリケーション内で一意です。この識別子はデータアクセスをスコープします — 会話、メッセージ、ファイルは同じ `user` 値でクエリした場合のみ表示されます。"
},
"conversation_id": {
"type": "string",
- "description": "会話を継続するための会話 ID です。前のメッセージの `conversation_id` を渡します。新しい会話を開始するには、このフィールドを省略するか空文字列を渡します。レスポンスで `conversation_id` が返されます——以降のメッセージでこの値を渡すとその会話を継続できます。"
+ "description": "会話を続けるための会話 ID。前のメッセージの `conversation_id` を渡します。新しい会話を開始するには、このフィールドを省略するか空文字列を渡します。レスポンスは `conversation_id` を返します — その会話を続けるには後続のメッセージでそれを渡してください。"
},
"files": {
"type": "array",
- "description": "マルチモーダル理解用のファイルリストです。画像、ドキュメント、音声、動画を含みます。ローカルファイルを添付するには、まず [ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) でアップロードし、返された `id` を `upload_file_id` として `transfer_method: local_file` で使用します。",
+ "description": "画像、ドキュメント、音声、動画を含むマルチモーダル理解用のファイルリスト。ローカルファイルを添付するには、まず [ファイルをアップロード](/ja/api-reference/files/upload-file) でアップロードし、返された `id` を `transfer_method: local_file` で `upload_file_id` として使用します。",
"items": {
"type": "object",
"required": [
@@ -2865,28 +2865,28 @@
"remote_url",
"local_file"
],
- "description": "転送方法です。ファイル URL の場合は `remote_url`、アップロードファイルの場合は `local_file` です。"
+ "description": "転送方法: ファイル URL の場合は `remote_url`、アップロードされたファイルの場合は `local_file`。"
},
"url": {
"type": "string",
"format": "url",
- "description": "ファイル URL(`transfer_method` が `remote_url` の場合は必須)です。"
+ "description": "ファイル URL(`transfer_method` が `remote_url` の場合に必須)。"
},
"upload_file_id": {
"type": "string",
- "description": "[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API から取得したアップロード済みファイル ID です(`transfer_method` が `local_file` の場合は必須)。"
+ "description": "[ファイルをアップロード](/ja/api-reference/files/upload-file) API から取得したアップロードファイル ID(`transfer_method` が `local_file` の場合に必須)。"
}
}
}
},
"auto_generate_name": {
"type": "boolean",
- "description": "会話タイトルを自動生成します。`false` の場合、[会話の名前を変更](/api-reference/会話管理/会話の名前を変更) API で `auto_generate: true` を設定して非同期でタイトルを生成します。",
+ "description": "会話タイトルを自動生成します。`false` の場合、[会話の名前を変更](/ja/api-reference/conversations/rename-conversation) API を `auto_generate: true` で使用して非同期でタイトルを生成します。",
"default": true
},
"workflow_id": {
"type": "string",
- "description": "実行する公開済みワークフローバージョンの ID を指定します。指定しない場合、最新の公開バージョンが使用されます。"
+ "description": "実行する公開済みワークフローバージョン ID を指定します。指定しない場合、最新の公開バージョンが使用されます。"
}
}
},
@@ -2895,22 +2895,22 @@
"properties": {
"event": {
"type": "string",
- "description": "イベントタイプ。`message` に固定されています。"
+ "description": "イベントタイプ。`message` で固定。"
},
"task_id": {
"type": "string",
"format": "uuid",
- "description": "リクエスト追跡およびレスポンス停止 API 用のタスク ID です。"
+ "description": "リクエスト追跡とレスポンス停止 API 用のタスク ID。"
},
"id": {
"type": "string",
"format": "uuid",
- "description": "このレスポンスイベントの一意 ID です。"
+ "description": "このレスポンスイベントの一意の ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "一意のメッセージ ID です。フィードバックや推奨質問のエンドポイントを呼び出す際に `message_id` パラメータとして使用します。"
+ "description": "一意のメッセージ ID。フィードバックや推奨質問エンドポイントを呼び出す際に `message_id` パラメータとしてこれを使用してください。"
},
"conversation_id": {
"type": "string",
@@ -2919,11 +2919,11 @@
},
"mode": {
"type": "string",
- "description": "アプリモード、`advanced-chat` 固定です。"
+ "description": "アプリモード。`advanced-chat` で固定。"
},
"answer": {
"type": "string",
- "description": "完全なレスポンスコンテンツ。"
+ "description": "完全なレスポンス内容。"
},
"metadata": {
"type": "object",
@@ -2950,11 +2950,11 @@
},
"ChunkChatEvent": {
"type": "object",
- "description": "ストリーミングモードにおける Server-Sent Event チャンクのベーススキーマです。",
+ "description": "ストリーミングモードでの Server-Sent Event チャンクの基本スキーマ。",
"properties": {
"event": {
"type": "string",
- "description": "イベントの種類です。",
+ "description": "イベントのタイプ。",
"enum": [
"message",
"tts_message",
@@ -3019,7 +3019,7 @@
},
"StreamEventBase": {
"type": "object",
- "description": "ストリームイベントの基本プロパティです。",
+ "description": "ストリームイベントの基本プロパティ。",
"properties": {
"task_id": {
"type": "string",
@@ -3056,7 +3056,7 @@
"properties": {
"answer": {
"type": "string",
- "description": "LLM が返したテキストチャンクです。"
+ "description": "LLM が返したテキストチャンク。"
}
}
}
@@ -3072,12 +3072,12 @@
},
{
"type": "object",
- "description": "TTS 音声ストリームイベント(base64 エンコードの Mp3)です。自動再生が有効な場合に利用できます。",
+ "description": "TTS 音声ストリームイベント(base64 エンコードされた Mp3)。自動再生が有効な場合に利用可能。",
"properties": {
"audio": {
"type": "string",
"format": "byte",
- "description": "Base64 エンコードされた MP3 音声チャンク。すべてのチャンクを順番にデコードして連結すると、完全な音声ファイルが生成されます。"
+ "description": "Base64 エンコードされた MP3 音声チャンク。完全な音声ファイルを生成するには、すべてのチャンクをデコードして順番に連結してください。"
}
}
}
@@ -3097,7 +3097,7 @@
"properties": {
"audio": {
"type": "string",
- "description": "空の文字列。音声ストリームの終了を示します。"
+ "description": "空文字列。音声ストリームの終了を示します。"
}
}
}
@@ -3110,23 +3110,23 @@
},
{
"type": "object",
- "description": "メッセージファイルイベント。ツールによって作成された新しいファイルです。",
+ "description": "メッセージファイルイベント。ツールによって作成された新しいファイル。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "ファイルの一意の ID。"
+ "description": "ファイル一意 ID。"
},
"type": {
"type": "string",
- "description": "ファイルタイプ(例:`image`)。"
+ "description": "ファイルタイプ。例: `image`。"
},
"belongs_to": {
"type": "string",
"enum": [
"assistant"
],
- "description": "このファイルの所有者。ここでは常に `assistant` です。"
+ "description": "このファイルの所有者。ここでは常に `assistant`。"
},
"url": {
"type": "string",
@@ -3152,12 +3152,12 @@
},
{
"type": "object",
- "description": "メッセージ終了イベント、ストリーミングが終了しました。",
+ "description": "メッセージ終了イベント。ストリーミングが終了しました。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "メッセージの一意な ID。"
+ "description": "一意のメッセージ ID。"
},
"metadata": {
"type": "object",
@@ -3189,7 +3189,7 @@
},
{
"type": "object",
- "description": "メッセージコンテンツ置換イベント(例:コンテンツモデレーションによるもの)。",
+ "description": "メッセージ内容置換イベント(例: コンテンツモデレーションによる)。",
"properties": {
"answer": {
"type": "string",
@@ -3244,58 +3244,58 @@
},
"Usage": {
"type": "object",
- "description": "モデルの使用情報です。",
+ "description": "モデル使用量情報。",
"properties": {
"prompt_tokens": {
"type": "integer",
- "description": "プロンプト内のトークン数。"
+ "description": "プロンプト内の token 数。"
},
"prompt_unit_price": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンあたりの単価。"
+ "description": "プロンプト token あたりの単価。"
},
"prompt_price_unit": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンの価格単位。"
+ "description": "プロンプト token の価格単位。"
},
"prompt_price": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンの合計価格。"
+ "description": "プロンプト token の合計価格。"
},
"completion_tokens": {
"type": "integer",
- "description": "補完のトークン数。"
+ "description": "補完内の token 数。"
},
"completion_unit_price": {
"type": "string",
"format": "decimal",
- "description": "補完トークンあたりの単価。"
+ "description": "補完 token あたりの単価。"
},
"completion_price_unit": {
"type": "string",
"format": "decimal",
- "description": "補完トークンの価格単位。"
+ "description": "補完 token の価格単位。"
},
"completion_price": {
"type": "string",
"format": "decimal",
- "description": "補完トークンの合計価格。"
+ "description": "補完 token の合計価格。"
},
"total_tokens": {
"type": "integer",
- "description": "使用されたトークンの合計数。"
+ "description": "使用された token の合計数。"
},
"total_price": {
"type": "string",
"format": "decimal",
- "description": "すべてのトークンの合計価格。"
+ "description": "すべての token の合計価格。"
},
"currency": {
"type": "string",
- "description": "課金通貨。"
+ "description": "価格の通貨。"
},
"latency": {
"type": "number",
@@ -3306,7 +3306,7 @@
},
"RetrieverResource": {
"type": "object",
- "description": "検索リソースの引用および帰属情報です。",
+ "description": "検索リソースの引用と帰属情報。",
"properties": {
"id": {
"type": "string",
@@ -3325,20 +3325,20 @@
"dataset_id": {
"type": "string",
"format": "uuid",
- "description": "ナレッジベース ID。"
+ "description": "ナレッジベースの ID。"
},
"dataset_name": {
"type": "string",
- "description": "ナレッジベース名。"
+ "description": "ナレッジベースの名前。"
},
"document_id": {
"type": "string",
"format": "uuid",
- "description": "ドキュメント ID。"
+ "description": "ドキュメントの ID。"
},
"document_name": {
"type": "string",
- "description": "ドキュメント名。"
+ "description": "ドキュメントの名前。"
},
"data_source_type": {
"type": "string",
@@ -3442,19 +3442,19 @@
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "関連付けられたユーザーの ID。"
+ "description": "関連するユーザーの ID。"
},
"tenant_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "関連付けられたテナントの ID。"
+ "description": "関連するテナントの ID。"
},
"conversation_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "関連付けられた会話の ID。"
+ "description": "関連する会話の ID。"
},
"file_key": {
"type": "string",
@@ -3484,12 +3484,12 @@
},
"type": {
"type": "string",
- "description": "エンドユーザーのタイプ。Service API ユーザーの場合は常に `service_api` です。"
+ "description": "エンドユーザータイプ。サービス API ユーザーの場合は常に `service_api`。"
},
"external_user_id": {
"type": "string",
"nullable": true,
- "description": "API リクエストで提供された `user` 識別子です(例:[チャットメッセージを送信](/api-reference/チャットメッセージ/チャットメッセージを送信) の `user` フィールド)。"
+ "description": "API リクエストで提供された `user` 識別子(例: [チャットメッセージを送信](/ja/api-reference/chats/send-chat-message) の `user` フィールド)。"
},
"name": {
"type": "string",
@@ -3498,11 +3498,11 @@
},
"is_anonymous": {
"type": "boolean",
- "description": "ユーザーが匿名かどうかを示します。元の API リクエストで `user` 識別子が提供されなかった場合、`true` になります。"
+ "description": "ユーザーが匿名かどうか。元の API リクエストで `user` 識別子が提供されなかった場合は `true`。"
},
"session_id": {
"type": "string",
- "description": "セッション識別子。デフォルトは `external_user_id` の値です。"
+ "description": "セッション識別子。デフォルトは `external_user_id` の値。"
},
"created_at": {
"type": "string",
@@ -3518,7 +3518,7 @@
},
"MessageFeedbackRequest": {
"type": "object",
- "description": "メッセージフィードバックを送信するためのリクエストボディ。",
+ "description": "メッセージフィードバック送信用のリクエストボディ。",
"required": [
"user"
],
@@ -3531,15 +3531,15 @@
null
],
"nullable": true,
- "description": "フィードバック評価。以前送信したフィードバックを取り消すには `null` に設定します。"
+ "description": "フィードバック評価。以前に送信したフィードバックを取り消すには `null` を設定します。"
},
"user": {
"type": "string",
- "description": "ユーザー識別子。開発者が定義し、アプリケーション内での一意性を確保する必要があります。"
+ "description": "ユーザー識別子。開発者によって定義され、アプリケーション内で一意性を確保する必要があります。"
},
"content": {
"type": "string",
- "description": "追加の詳細を提供する任意のテキストフィードバック。"
+ "description": "追加の詳細を提供するオプションのテキストフィードバック。"
}
}
},
@@ -3548,7 +3548,7 @@
"properties": {
"data": {
"type": "array",
- "description": "フィードバック項目のリスト。",
+ "description": "フィードバックアイテムのリスト。",
"items": {
"$ref": "#/components/schemas/FeedbackItem"
}
@@ -3557,7 +3557,7 @@
},
"FeedbackItem": {
"type": "object",
- "description": "単一のフィードバック項目。",
+ "description": "単一のフィードバックアイテム。",
"properties": {
"id": {
"type": "string",
@@ -3581,16 +3581,16 @@
},
"rating": {
"type": "string",
- "description": "フィードバック評価。肯定的な場合は `like`、否定的な場合は `dislike`。"
+ "description": "フィードバック評価。`like` はポジティブ、`dislike` はネガティブ。"
},
"content": {
"type": "string",
"nullable": true,
- "description": "任意のテキストフィードバック。"
+ "description": "オプションのテキストフィードバック。"
},
"from_source": {
"type": "string",
- "description": "フィードバックのソース。API 経由でエンドユーザーが送信したフィードバックの場合は `user`、コンソールから送信されたフィードバックの場合は `admin`。"
+ "description": "フィードバックソース。API 経由で送信されたエンドユーザーフィードバックは `user`、コンソールから送信されたフィードバックは `admin`。"
},
"from_end_user_id": {
"type": "string",
@@ -3628,7 +3628,7 @@
"items": {
"type": "string"
},
- "description": "提案された質問のリストです。"
+ "description": "推奨質問のリスト。"
}
}
},
@@ -3637,15 +3637,15 @@
"properties": {
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"has_more": {
"type": "boolean",
- "description": "さらにメッセージがあるかどうかです。"
+ "description": "さらにメッセージがあるかどうか。"
},
"data": {
"type": "array",
- "description": "メッセージのリストです。",
+ "description": "メッセージのリスト。",
"items": {
"$ref": "#/components/schemas/ConversationMessageItem"
}
@@ -3654,7 +3654,7 @@
},
"ConversationMessageItem": {
"type": "object",
- "description": "会話内の単一メッセージです。",
+ "description": "会話内の単一メッセージ。",
"properties": {
"id": {
"type": "string",
@@ -3670,33 +3670,33 @@
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "スレッド会話の親メッセージ ID です。"
+ "description": "スレッド会話用の親メッセージ ID。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "このメッセージの入力変数です。"
+ "description": "このメッセージの入力変数。"
},
"query": {
"type": "string",
- "description": "ユーザークエリテキストです。"
+ "description": "ユーザークエリテキスト。"
},
"answer": {
"type": "string",
- "description": "アシスタントの回答テキストです。"
+ "description": "アシスタントの回答テキスト。"
},
"status": {
"type": "string",
- "description": "メッセージステータスです。成功したメッセージの場合は `normal`、生成に失敗した場合は `error` です。"
+ "description": "メッセージステータス。成功したメッセージは `normal`、生成が失敗した場合は `error`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "`status` が `error` の場合のエラーメッセージです。"
+ "description": "`status` が `error` の場合のエラーメッセージ。"
},
"message_files": {
"type": "array",
- "description": "このメッセージに添付されたファイルです。",
+ "description": "このメッセージに添付されたファイル。",
"items": {
"$ref": "#/components/schemas/MessageFileItem"
}
@@ -3704,24 +3704,24 @@
"feedback": {
"type": "object",
"nullable": true,
- "description": "このメッセージのユーザーフィードバックです。",
+ "description": "このメッセージに対するユーザーフィードバック。",
"properties": {
"rating": {
"type": "string",
- "description": "フィードバック評価。肯定的な場合は `like`、否定的な場合は `dislike`。"
+ "description": "フィードバック評価。`like` はポジティブ、`dislike` はネガティブ。"
}
}
},
"retriever_resources": {
"type": "array",
- "description": "このメッセージに使用された検索リソースです。",
+ "description": "このメッセージに使用された検索リソース。",
"items": {
"$ref": "#/components/schemas/RetrieverResource"
}
},
"agent_thoughts": {
"type": "array",
- "description": "このメッセージのエージェント思考です。",
+ "description": "このメッセージの Agent の思考。",
"items": {
"$ref": "#/components/schemas/AgentThoughtItem"
}
@@ -3733,7 +3733,7 @@
},
"extra_contents": {
"type": "array",
- "description": "このメッセージに関連する追加の実行コンテンツです。chatflow ワークフローの人的介入ノードからのフォームデータなどが含まれます。",
+ "description": "このメッセージに関連する追加の実行コンテンツ。チャットフローワークフローの人間の入力ノードからの人間の入力フォームデータなど。",
"items": {
"$ref": "#/components/schemas/HumanInputContent"
}
@@ -3742,20 +3742,20 @@
},
"MessageFileItem": {
"type": "object",
- "description": "メッセージに添付されたファイルです。",
+ "description": "メッセージに添付されたファイル。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "File ID."
+ "description": "ファイル ID。"
},
"filename": {
"type": "string",
- "description": "元のファイル名です。"
+ "description": "元のファイル名。"
},
"type": {
"type": "string",
- "description": "ファイルの種類(例: `image`)です。"
+ "description": "ファイルタイプ。例: `image`。"
},
"url": {
"type": "string",
@@ -3775,72 +3775,72 @@
},
"transfer_method": {
"type": "string",
- "description": "使用された転送方法です。`remote_url` は URL ベースのファイル、`local_file` はアップロード済みファイル、`tool_file` はツール生成ファイルを示します。"
+ "description": "使用された転送方法。URL ベースのファイルは `remote_url`、アップロードされたファイルは `local_file`、ツール生成ファイルは `tool_file`。"
},
"belongs_to": {
"type": "string",
"nullable": true,
- "description": "このファイルの所有者です。ユーザーがアップロードしたファイルの場合は `user`、アシスタントが生成したファイルの場合は `assistant` です。"
+ "description": "このファイルの所有者。ユーザーがアップロードしたファイルは `user`、アシスタントが生成したファイルは `assistant`。"
},
"upload_file_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "`local_file` で転送された場合のアップロードファイル ID です。"
+ "description": "`local_file` 経由で転送された場合のアップロードファイル ID。"
}
}
},
"AgentThoughtItem": {
"type": "object",
- "description": "メッセージ内のエージェント思考ステップです。",
+ "description": "メッセージ内の Agent の思考ステップ。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "エージェント思考 ID です。"
+ "description": "Agent の思考 ID。"
},
"chain_id": {
"type": "string",
"nullable": true,
- "description": "この思考のチェーン ID です。"
+ "description": "この思考のチェーン ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "この思考が属する一意のメッセージ ID です。"
+ "description": "この思考が属する一意のメッセージ ID。"
},
"position": {
"type": "integer",
- "description": "この思考の位置です。"
+ "description": "この思考の位置。"
},
"thought": {
"type": "string",
- "description": "LLM が思考している内容です。"
+ "description": "LLM が考えていること。"
},
"tool": {
"type": "string",
- "description": "呼び出されたツール(`;` で区切り)です。"
+ "description": "呼び出されたツール。`;` で区切られています。"
},
"tool_labels": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "使用されたツールのラベルです。"
+ "description": "使用されたツールのラベル。"
},
"tool_input": {
"type": "string",
- "description": "ツールの入力(JSON 形式)です。"
+ "description": "JSON 形式のツールの入力。"
},
"observation": {
"type": "string",
- "description": "ツール呼び出しからのレスポンスです。"
+ "description": "ツール呼び出しからのレスポンス。"
},
"files": {
"type": "array",
"items": {
"type": "string"
},
- "description": "この思考に関連するファイル ID です。"
+ "description": "この思考に関連するファイル ID。"
},
"created_at": {
"type": "integer",
@@ -3854,15 +3854,15 @@
"properties": {
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"has_more": {
"type": "boolean",
- "description": "さらに会話があるかどうかです。"
+ "description": "さらに会話があるかどうか。"
},
"data": {
"type": "array",
- "description": "会話のリストです。",
+ "description": "会話のリスト。",
"items": {
"$ref": "#/components/schemas/ConversationListItem"
}
@@ -3879,20 +3879,20 @@
},
"name": {
"type": "string",
- "description": "会話名です。"
+ "description": "会話名。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "会話の入力変数です。"
+ "description": "会話の入力変数。"
},
"status": {
"type": "string",
- "description": "会話ステータスです。アクティブな会話の場合は `normal` です。"
+ "description": "会話ステータス。アクティブな会話は `normal`。"
},
"introduction": {
"type": "string",
- "description": "会話の紹介文です。"
+ "description": "会話の紹介。"
},
"created_at": {
"type": "integer",
@@ -3908,14 +3908,14 @@
},
"ConversationRenameRequest": {
"type": "object",
- "description": "会話の名前変更用リクエストボディです。",
+ "description": "会話の名前変更用リクエストボディ。",
"required": [
"user"
],
"properties": {
"name": {
"type": "string",
- "description": "会話の名前です。`auto_generate` が `false` の場合は必須です。"
+ "description": "会話の名前。`auto_generate` が `false` の場合に必須。"
},
"auto_generate": {
"type": "boolean",
@@ -3924,7 +3924,7 @@
},
"user": {
"type": "string",
- "description": "ユーザー識別子です。"
+ "description": "ユーザー識別子。"
}
}
},
@@ -3933,15 +3933,15 @@
"properties": {
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"has_more": {
"type": "boolean",
- "description": "次のページがあるかどうかです。"
+ "description": "次のページがあるかどうか。"
},
"data": {
"type": "array",
- "description": "会話変数のリストです。",
+ "description": "会話変数のリスト。",
"items": {
"$ref": "#/components/schemas/ConversationVariableItem"
}
@@ -3954,23 +3954,23 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "Variable ID."
+ "description": "変数 ID。"
},
"name": {
"type": "string",
- "description": "変数名です。"
+ "description": "変数名。"
},
"value_type": {
"type": "string",
- "description": "変数の値の型です。指定可能な値:`string`、`number`、`object`、`secret`、`file`、`boolean`、`array[any]`、`array[string]`、`array[number]`、`array[object]`、`array[file]`、`array[boolean]`。"
+ "description": "変数値タイプ。可能な値: `string`、`number`、`object`、`secret`、`file`、`boolean`、`array[any]`、`array[string]`、`array[number]`、`array[object]`、`array[file]`、`array[boolean]`。"
},
"value": {
"type": "string",
- "description": "変数値(複雑な型の場合は JSON 文字列)。"
+ "description": "変数値(複雑なタイプの場合は JSON 文字列になる可能性があります)。"
},
"description": {
"type": "string",
- "description": "変数の説明です。"
+ "description": "変数の説明。"
},
"created_at": {
"type": "integer",
@@ -3986,13 +3986,13 @@
},
"ConversationVariableUpdateRequest": {
"type": "object",
- "description": "会話変数を更新するためのリクエストボディです。",
+ "description": "会話変数更新用のリクエストボディ。",
"required": [
"value"
],
"properties": {
"value": {
- "description": "変数の新しい値。変数の期待される型と一致する必要があります。"
+ "description": "変数の新しい値。変数の期待されるタイプと一致する必要があります。"
},
"user": {
"type": "string",
@@ -4002,7 +4002,7 @@
},
"AudioToTextRequest": {
"type": "object",
- "description": "音声からテキストへの変換のリクエストボディ。",
+ "description": "音声からテキストへの変換用リクエストボディ。",
"required": [
"file"
],
@@ -4010,7 +4010,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "音声ファイルです。対応形式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。上限:`30 MB`。"
+ "description": "音声ファイル。サポート: `mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。制限: `30 MB`。"
},
"user": {
"type": "string",
@@ -4029,12 +4029,12 @@
},
"TextToAudioRequest": {
"type": "object",
- "description": "テキストから音声への変換のリクエストボディ。`message_id` または `text` のいずれかを指定してください。",
+ "description": "テキストから音声への変換用リクエストボディ。`message_id` または `text` のいずれかを指定します。",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
- "description": "メッセージ ID です。両方が指定された場合、`text` よりも優先されます。"
+ "description": "メッセージ ID。両方が指定された場合、`text` より優先されます。"
},
"text": {
"type": "string",
@@ -4046,7 +4046,7 @@
},
"voice": {
"type": "string",
- "description": "テキスト読み上げに使用する音声。利用可能な音声は、このアプリに設定された TTS プロバイダーによって異なります。デフォルトには[アプリケーションのパラメータ情報を取得](/api-reference/アプリケーション設定/アプリケーションのパラメータ情報を取得) → `text_to_speech.voice` の `voice` 値を使用してください。"
+ "description": "テキスト読み上げに使用する音声。利用可能な音声は、このアプリに設定された TTS プロバイダーによって異なります。デフォルトについては [アプリパラメータを取得](/ja/api-reference/applications/get-app-parameters) → `text_to_speech.voice` の `voice` 値を使用してください。"
},
"streaming": {
"type": "boolean",
@@ -4074,7 +4074,7 @@
},
"mode": {
"type": "string",
- "description": "アプリケーションモード。`completion` はテキスト生成アプリ、`chat` は基本チャットアプリ、`agent-chat` はエージェントベースのアプリ、`advanced-chat` は Chatflow アプリ、`workflow` はワークフローアプリです。"
+ "description": "アプリケーションモード。テキスト生成アプリは `completion`、基本チャットアプリは `chat`、Agent ベースのアプリは `agent-chat`、チャットフローアプリは `advanced-chat`、ワークフローアプリは `workflow`。"
},
"author_name": {
"type": "string",
@@ -4087,14 +4087,14 @@
"properties": {
"opening_statement": {
"type": "string",
- "description": "会話開始時に表示されるオープニングメッセージです。"
+ "description": "会話開始時に表示されるオープニングステートメント。"
},
"suggested_questions": {
"type": "array",
"items": {
"type": "string"
},
- "description": "推奨される初期質問のリスト。"
+ "description": "推奨されるスターター質問のリスト。"
},
"suggested_questions_after_answer": {
"type": "object",
@@ -4108,7 +4108,7 @@
},
"speech_to_text": {
"type": "object",
- "description": "音声からテキストへの変換設定。",
+ "description": "音声認識の設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -4118,7 +4118,7 @@
},
"text_to_speech": {
"type": "object",
- "description": "テキストから音声への変換設定。",
+ "description": "テキスト読み上げの設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -4134,7 +4134,7 @@
},
"autoPlay": {
"type": "string",
- "description": "自動再生設定です。音声を自動再生するには `enabled`、手動再生を要求するには `disabled` を指定します。"
+ "description": "自動再生設定。`enabled` で音声を自動再生、`disabled` で手動再生を要求。"
}
}
},
@@ -4150,7 +4150,7 @@
},
"annotation_reply": {
"type": "object",
- "description": "アノテーション返信の設定。",
+ "description": "アノテーション応答の設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -4170,7 +4170,7 @@
},
"sensitive_word_avoidance": {
"type": "object",
- "description": "センシティブワードフィルタリングの設定。",
+ "description": "機密語回避の設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -4191,7 +4191,7 @@
"properties": {
"image": {
"type": "object",
- "description": "画像アップロードの設定。",
+ "description": "画像アップロード設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -4199,7 +4199,7 @@
},
"number_limits": {
"type": "integer",
- "description": "最大画像数。"
+ "description": "画像の最大数。"
},
"detail": {
"type": "string",
@@ -4259,7 +4259,7 @@
]
},
"TextInputControlWrapper": {
- "title": "Text Input",
+ "title": "テキスト入力",
"type": "object",
"properties": {
"text-input": {
@@ -4268,7 +4268,7 @@
}
},
"ParagraphControlWrapper": {
- "title": "Paragraph",
+ "title": "段落",
"type": "object",
"properties": {
"paragraph": {
@@ -4277,7 +4277,7 @@
}
},
"SelectControlWrapper": {
- "title": "Select",
+ "title": "選択",
"type": "object",
"properties": {
"select": {
@@ -4287,63 +4287,63 @@
},
"TextInputControl": {
"type": "object",
- "description": "テキスト入力フォームコントロールです。",
+ "description": "テキスト入力フォームコントロール。",
"properties": {
"label": {
"type": "string",
- "description": "表示ラベルです。"
+ "description": "表示ラベル。"
},
"variable": {
"type": "string",
- "description": "変数名です。"
+ "description": "変数名。"
},
"required": {
"type": "boolean",
- "description": "入力が必須かどうかです。"
+ "description": "入力が必須かどうか。"
},
"default": {
"type": "string",
- "description": "デフォルト値です。"
+ "description": "デフォルト値。"
}
}
},
"ParagraphControl": {
"type": "object",
- "description": "段落(複数行テキスト)フォームコントロールです。",
+ "description": "段落(複数行テキスト)フォームコントロール。",
"properties": {
"label": {
"type": "string",
- "description": "表示ラベルです。"
+ "description": "表示ラベル。"
},
"variable": {
"type": "string",
- "description": "変数名です。"
+ "description": "変数名。"
},
"required": {
"type": "boolean",
- "description": "入力が必須かどうかです。"
+ "description": "入力が必須かどうか。"
},
"default": {
"type": "string",
- "description": "デフォルト値です。"
+ "description": "デフォルト値。"
}
}
},
"SelectControl": {
"type": "object",
- "description": "セレクト(ドロップダウン)フォームコントロールです。",
+ "description": "選択(ドロップダウン)フォームコントロール。",
"properties": {
"label": {
"type": "string",
- "description": "表示ラベルです。"
+ "description": "表示ラベル。"
},
"variable": {
"type": "string",
- "description": "変数名です。"
+ "description": "変数名。"
},
"required": {
"type": "boolean",
- "description": "選択が必須かどうかです。"
+ "description": "選択が必須かどうか。"
},
"default": {
"type": "string",
@@ -4366,7 +4366,7 @@
"additionalProperties": {
"oneOf": [
{
- "title": "Icon URL",
+ "title": "アイコン URL",
"type": "string",
"format": "url",
"description": "アイコンの URL。"
@@ -4381,7 +4381,7 @@
}
},
"ToolIconDetail": {
- "title": "Emoji Icon",
+ "title": "絵文字アイコン",
"type": "object",
"description": "絵文字を使用したツールアイコンの詳細。",
"properties": {
@@ -4391,7 +4391,7 @@
},
"content": {
"type": "string",
- "description": "Emoji コンテンツ。"
+ "description": "絵文字コンテンツ。"
}
}
},
@@ -4412,11 +4412,11 @@
},
"icon_type": {
"type": "string",
- "description": "使用されるアイコンのタイプ。`emoji` は絵文字アイコン、`image` はアップロードされた画像アイコンです。"
+ "description": "使用されるアイコンのタイプ。絵文字アイコンは `emoji`、アップロードされた画像アイコンは `image`。"
},
"icon": {
"type": "string",
- "description": "アイコンのコンテンツ(絵文字または画像 ID)。"
+ "description": "アイコンコンテンツ(絵文字または画像 ID)。"
},
"icon_background": {
"type": "string",
@@ -4466,23 +4466,23 @@
"items": {
"$ref": "#/components/schemas/AnnotationItem"
},
- "description": "現在のページのアノテーション項目のリストです。"
+ "description": "現在のページのアノテーションアイテムのリスト。"
},
"has_more": {
"type": "boolean",
- "description": "現在の結果セットの後にさらにページがある場合は `true` です。"
+ "description": "現在の結果セットを超えてさらにページが利用可能な場合は `true`。"
},
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"total": {
"type": "integer",
- "description": "クエリに一致するアノテーションの合計数です。"
+ "description": "クエリに一致するアノテーションの総数。"
},
"page": {
"type": "integer",
- "description": "現在のページ番号です。"
+ "description": "現在のページ番号。"
}
}
},
@@ -4492,22 +4492,22 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "アノテーションの一意識別子です。"
+ "description": "一意のアノテーション識別子。"
},
"question": {
"type": "string",
"nullable": true,
- "description": "このアノテーションをトリガーする質問テキストです。"
+ "description": "このアノテーションをトリガーする質問テキスト。"
},
"answer": {
"type": "string",
"nullable": true,
- "description": "アノテーションがマッチした際に返される定義済みの回答です。"
+ "description": "アノテーションがマッチした場合に返される事前定義された回答。"
},
"hit_count": {
"type": "integer",
"nullable": true,
- "description": "このアノテーションがマッチして返信として返された回数です。"
+ "description": "このアノテーションがマッチして返信として返された回数。"
},
"created_at": {
"type": "integer",
@@ -4519,7 +4519,7 @@
},
"CreateAnnotationRequest": {
"type": "object",
- "description": "新しいアノテーションを作成するためのリクエストボディです。",
+ "description": "新しいアノテーション作成用のリクエストボディ。",
"required": [
"question",
"answer"
@@ -4527,17 +4527,17 @@
"properties": {
"question": {
"type": "string",
- "description": "アノテーションの質問です。"
+ "description": "アノテーションの質問。"
},
"answer": {
"type": "string",
- "description": "アノテーションの回答です。"
+ "description": "アノテーションの回答。"
}
}
},
"UpdateAnnotationRequest": {
"type": "object",
- "description": "アノテーション更新のリクエストボディです。",
+ "description": "アノテーション更新用のリクエストボディ。",
"required": [
"question",
"answer"
@@ -4545,17 +4545,17 @@
"properties": {
"question": {
"type": "string",
- "description": "更新されたアノテーションの質問です。"
+ "description": "更新されたアノテーションの質問。"
},
"answer": {
"type": "string",
- "description": "更新されたアノテーションの回答です。"
+ "description": "更新されたアノテーションの回答。"
}
}
},
"InitialAnnotationReplySettingsRequest": {
"type": "object",
- "description": "アノテーション返信設定を構成するためのリクエストボディです。",
+ "description": "アノテーション応答設定用のリクエストボディ。",
"required": [
"score_threshold",
"embedding_provider_name",
@@ -4564,16 +4564,16 @@
"properties": {
"embedding_provider_name": {
"type": "string",
- "description": "埋め込みモデルプロバイダーの名前(例:`openai`、`cohere`)です。"
+ "description": "埋め込みモデルプロバイダーの名前(例: `openai`、`cohere`)。"
},
"embedding_model_name": {
"type": "string",
- "description": "アノテーションマッチングに使用する埋め込みモデルの名前です(例:`text-embedding-3-small`)。"
+ "description": "アノテーションマッチングに使用する埋め込みモデルの名前(例: `text-embedding-3-small`)。"
},
"score_threshold": {
"type": "number",
"format": "float",
- "description": "アノテーションがマッチとみなされるための最低類似度スコアです。値が高いほど、より正確なマッチが必要になります。",
+ "description": "アノテーションがマッチと見なされるための最小類似度スコア。高い値ほどより近いマッチが必要です。",
"minimum": 0,
"maximum": 1
}
@@ -4585,11 +4585,11 @@
"job_id": {
"type": "string",
"format": "uuid",
- "description": "非同期ジョブ ID です。[アノテーション返信の初期設定タスクステータスを取得](/api-reference/アノテーション管理/アノテーション返信の初期設定タスクステータスを取得) と組み合わせて進捗を追跡します。"
+ "description": "非同期ジョブ ID。進捗を追跡するには [アノテーション応答ジョブステータスを取得](/ja/api-reference/annotations/get-annotation-reply-job-status) で使用してください。"
},
"job_status": {
"type": "string",
- "description": "現在のジョブステータスです。`waiting` はキュー待ち、`processing` は処理中、`completed` は完了、`error` は失敗を示します。"
+ "description": "現在のジョブステータス。キュー待ちは `waiting`、進行中は `processing`、完了は `completed`、失敗は `error`。"
}
}
},
@@ -4599,15 +4599,15 @@
"job_id": {
"type": "string",
"format": "uuid",
- "description": "[アノテーション返信を設定](/api-reference/アノテーション管理/アノテーション返信を設定) 呼び出しから取得したジョブ ID です。"
+ "description": "[アノテーション応答を設定](/ja/api-reference/annotations/configure-annotation-reply) 呼び出しからのジョブ ID。"
},
"job_status": {
"type": "string",
- "description": "現在のジョブステータスです。`waiting` はキュー待ち、`processing` は処理中、`completed` は完了、`error` は失敗を示します。"
+ "description": "現在のジョブステータス。キュー待ちは `waiting`、進行中は `processing`、完了は `completed`、失敗は `error`。"
},
"error_msg": {
"type": "string",
- "description": "ジョブが失敗した理由を説明するエラーメッセージです。`job_status` が `error` でない場合は空文字列です。"
+ "description": "ジョブが失敗した理由を説明するエラーメッセージ。`job_status` が `error` でない場合は空文字列。"
}
}
},
@@ -4621,36 +4621,36 @@
},
{
"type": "object",
- "description": "ワークフローの実行が開始されました。",
+ "description": "ワークフロー実行が開始されました。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ワークフロー実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"workflow_id": {
"type": "string",
- "description": "関連するワークフロー ID です。"
+ "description": "関連するワークフロー ID。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "このワークフロー実行の入力変数です。"
+ "description": "このワークフロー実行の入力変数。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"reason": {
"type": "string",
- "description": "ワークフロー開始の理由です。`initial` は初回開始、`resumption` は一時停止後の再開(例:人的介入後)を示します。"
+ "description": "ワークフロー開始の理由。最初の開始は `initial`、一時停止後の再開(例: 人間の入力後)は `resumption`。"
}
}
}
@@ -4668,65 +4668,65 @@
},
{
"type": "object",
- "description": "ワークフローの実行が完了しました。",
+ "description": "ワークフロー実行が完了しました。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ワークフロー実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"workflow_id": {
"type": "string",
- "description": "関連するワークフロー ID です。"
+ "description": "関連するワークフロー ID。"
},
"status": {
"type": "string",
- "description": "実行ステータスです。`running` は進行中、`succeeded` は成功、`failed` は失敗、`stopped` は手動停止、`partial-succeeded` は部分完了、`paused` は人的介入待ちを示します。"
+ "description": "実行ステータス。進行中は `running`、成功は `succeeded`、失敗は `failed`、手動停止は `stopped`、部分的に完了は `partial-succeeded`、人間の入力待ちは `paused`。"
},
"outputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ワークフローの出力データです。"
+ "description": "ワークフロー出力データ。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "実行が失敗した場合のエラーメッセージです。"
+ "description": "実行が失敗した場合のエラーメッセージ。"
},
"elapsed_time": {
"type": "number",
- "description": "合計実行時間(秒)です。"
+ "description": "合計実行時間(秒)。"
},
"total_tokens": {
"type": "integer",
- "description": "消費された合計トークン数です。"
+ "description": "消費された合計 token 数。"
},
"total_steps": {
"type": "integer",
- "description": "実行された合計ステップ数です。"
+ "description": "実行された合計ステップ数。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"finished_at": {
"type": "integer",
"format": "int64",
"nullable": true,
- "description": "終了タイムスタンプ(Unix エポック秒)です。"
+ "description": "終了タイムスタンプ(Unix エポック秒)。"
},
"exceptions_count": {
"type": "integer",
"nullable": true,
- "description": "実行中の例外数です。"
+ "description": "実行中に発生した例外の数。"
},
"files": {
"type": "array",
@@ -4735,7 +4735,7 @@
"type": "object",
"additionalProperties": true
},
- "description": "ワークフロー実行中に生成されたファイルです。"
+ "description": "ワークフロー実行中に生成されたファイル。"
}
}
}
@@ -4753,65 +4753,65 @@
},
{
"type": "object",
- "description": "ノードの実行が開始されました。",
+ "description": "ノード実行が開始されました。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ノード実行 ID です。"
+ "description": "ノード実行 ID。"
},
"node_id": {
"type": "string",
- "description": "ワークフローグラフ内のノード ID です。"
+ "description": "ワークフローグラフ内のノード ID。"
},
"node_type": {
"type": "string",
- "description": "ノードタイプ(例:`llm`、`knowledge-retrieval`、`code`)です。"
+ "description": "ノードタイプ(例: `llm`、`knowledge-retrieval`、`code`)。"
},
"title": {
"type": "string",
- "description": "Node title."
+ "description": "ノードタイトル。"
},
"index": {
"type": "integer",
- "description": "実行インデックスです。"
+ "description": "実行インデックス。"
},
"predecessor_node_id": {
"type": "string",
"nullable": true,
- "description": "先行ノードの ID です。"
+ "description": "前のノードの ID。"
},
"inputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ノードの入力データです。簡略化された API レスポンスでは `null` の場合があります。"
+ "description": "ノード入力データ。簡略化された API レスポンスでは `null` の場合があります。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "追加メタデータです。"
+ "description": "追加のメタデータ。"
},
"iteration_id": {
"type": "string",
"nullable": true,
- "description": "このノードがイテレーション内で実行される場合のイテレーション ID です。"
+ "description": "このノードがイテレーション内で実行される場合のイテレーション ID。"
},
"loop_id": {
"type": "string",
"nullable": true,
- "description": "このノードがループ内で実行される場合のループ ID です。"
+ "description": "このノードがループ内で実行される場合のループ ID。"
}
}
}
@@ -4829,86 +4829,86 @@
},
{
"type": "object",
- "description": "ノードの実行が完了しました。",
+ "description": "ノード実行が完了しました。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ノード実行 ID です。"
+ "description": "ノード実行 ID。"
},
"node_id": {
"type": "string",
- "description": "ワークフローグラフ内のノード ID です。"
+ "description": "ワークフローグラフ内のノード ID。"
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "ノードタイプ。"
},
"title": {
"type": "string",
- "description": "Node title."
+ "description": "ノードタイトル。"
},
"index": {
"type": "integer",
- "description": "実行インデックスです。"
+ "description": "実行インデックス。"
},
"predecessor_node_id": {
"type": "string",
"nullable": true,
- "description": "先行ノードの ID です。"
+ "description": "前のノードの ID。"
},
"inputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ノードの入力データです。簡略化された API レスポンスでは `null` の場合があります。"
+ "description": "ノード入力データ。簡略化された API レスポンスでは `null` の場合があります。"
},
"process_data": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ノードの処理データです。簡略化された API レスポンスでは `null` の場合があります。"
+ "description": "ノード処理データ。簡略化された API レスポンスでは `null` の場合があります。"
},
"outputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ノードの出力データです。簡略化された API レスポンスでは `null` の場合があります。"
+ "description": "ノード出力データ。簡略化された API レスポンスでは `null` の場合があります。"
},
"status": {
"type": "string",
- "description": "ノードの実行ステータスです。`running` は進行中、`succeeded` は成功、`failed` は失敗、`exception` は例外発生を示します。"
+ "description": "ノード実行ステータス。進行中は `running`、成功は `succeeded`、失敗は `failed`、例外発生は `exception`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "ノードが失敗した場合のエラーメッセージです。"
+ "description": "ノードが失敗した場合のエラーメッセージ。"
},
"elapsed_time": {
"type": "number",
- "description": "ノードの実行時間(秒)です。"
+ "description": "ノード実行時間(秒)。"
},
"execution_metadata": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "実行メタデータ(例:トークン使用量、モデル情報)です。簡略化された API レスポンスでは `null` の場合があります。"
+ "description": "実行メタデータ(例: token 使用量、モデル情報)。簡略化された API レスポンスでは `null` の場合があります。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"finished_at": {
"type": "integer",
"format": "int64",
- "description": "終了タイムスタンプ(Unix エポック秒)です。"
+ "description": "終了タイムスタンプ(Unix エポック秒)。"
},
"files": {
"type": "array",
@@ -4917,17 +4917,17 @@
"type": "object",
"additionalProperties": true
},
- "description": "このノードで生成されたファイルです。"
+ "description": "このノードによって生成されたファイル。"
},
"iteration_id": {
"type": "string",
"nullable": true,
- "description": "このノードがイテレーション内で実行される場合のイテレーション ID です。"
+ "description": "このノードがイテレーション内で実行される場合のイテレーション ID。"
},
"loop_id": {
"type": "string",
"nullable": true,
- "description": "このノードがループ内で実行される場合のループ ID です。"
+ "description": "このノードがループ内で実行される場合のループ ID。"
}
}
}
@@ -4945,86 +4945,86 @@
},
{
"type": "object",
- "description": "ノードのリトライ回数です。",
+ "description": "ノードのリトライ試行。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ノード実行 ID です。"
+ "description": "ノード実行 ID。"
},
"node_id": {
"type": "string",
- "description": "ワークフローグラフ内のノード ID です。"
+ "description": "ワークフローグラフ内のノード ID。"
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "ノードタイプ。"
},
"title": {
"type": "string",
- "description": "Node title."
+ "description": "ノードタイトル。"
},
"index": {
"type": "integer",
- "description": "実行インデックスです。"
+ "description": "実行インデックス。"
},
"predecessor_node_id": {
"type": "string",
"nullable": true,
- "description": "先行ノードの ID です。"
+ "description": "前のノードの ID。"
},
"inputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ノードの入力データです。"
+ "description": "ノード入力データ。"
},
"process_data": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ノードの処理データです。"
+ "description": "ノード処理データ。"
},
"outputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ノードの出力データです。"
+ "description": "ノード出力データ。"
},
"status": {
"type": "string",
- "description": "ノードの実行ステータスです。`running` は進行中、`succeeded` は成功、`failed` は失敗、`exception` は例外発生を示します。"
+ "description": "ノード実行ステータス。進行中は `running`、成功は `succeeded`、失敗は `failed`、例外発生は `exception`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "このリトライのエラーメッセージです。"
+ "description": "このリトライ試行のエラーメッセージ。"
},
"elapsed_time": {
"type": "number",
- "description": "この試行の実行時間(秒)です。"
+ "description": "この試行の実行時間(秒)。"
},
"execution_metadata": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "実行メタデータです。"
+ "description": "実行メタデータ。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"finished_at": {
"type": "integer",
"format": "int64",
- "description": "終了タイムスタンプ(Unix エポック秒)です。"
+ "description": "終了タイムスタンプ(Unix エポック秒)。"
},
"files": {
"type": "array",
@@ -5033,21 +5033,21 @@
"type": "object",
"additionalProperties": true
},
- "description": "このリトライ中に生成されたファイルです。"
+ "description": "このリトライ中に生成されたファイル。"
},
"iteration_id": {
"type": "string",
"nullable": true,
- "description": "イテレーション ID(該当する場合)です。"
+ "description": "該当する場合のイテレーション ID。"
},
"loop_id": {
"type": "string",
"nullable": true,
- "description": "ループ ID(該当する場合)です。"
+ "description": "該当する場合のループ ID。"
},
"retry_index": {
"type": "integer",
- "description": "リトライ回数インデックス、`0` から開始します。"
+ "description": "リトライ試行インデックス。`0` から開始。"
}
}
}
@@ -5069,46 +5069,46 @@
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "イテレーション実行 ID です。"
+ "description": "イテレーション実行 ID。"
},
"node_id": {
"type": "string",
- "description": "イテレーションノード ID です。"
+ "description": "イテレーションノード ID。"
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "ノードタイプ。"
},
"title": {
"type": "string",
- "description": "イテレーションノードのタイトルです。"
+ "description": "イテレーションノードタイトル。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "追加メタデータです。"
+ "description": "追加のメタデータ。"
},
"metadata": {
"type": "object",
"additionalProperties": true,
- "description": "イテレーションのメタデータです。"
+ "description": "イテレーションメタデータ。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "イテレーションの入力データです。"
+ "description": "イテレーション入力データ。"
}
}
}
@@ -5126,44 +5126,44 @@
},
{
"type": "object",
- "description": "イテレーションが次の項目に進みました。",
+ "description": "イテレーションが次のアイテムに進みました。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "イテレーション実行 ID です。"
+ "description": "イテレーション実行 ID。"
},
"node_id": {
"type": "string",
- "description": "イテレーションノード ID です。"
+ "description": "イテレーションノード ID。"
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "ノードタイプ。"
},
"title": {
"type": "string",
- "description": "イテレーションノードのタイトルです。"
+ "description": "イテレーションノードタイトル。"
},
"index": {
"type": "integer",
- "description": "現在のイテレーションインデックス(0 始まり)です。"
+ "description": "現在のイテレーションインデックス(0 始まり)。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "タイムスタンプ(Unix エポック秒)です。"
+ "description": "タイムスタンプ(Unix エポック秒)。"
},
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "追加メタデータです。"
+ "description": "追加のメタデータ。"
}
}
}
@@ -5185,63 +5185,63 @@
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "イテレーション実行 ID です。"
+ "description": "イテレーション実行 ID。"
},
"node_id": {
"type": "string",
- "description": "イテレーションノード ID です。"
+ "description": "イテレーションノード ID。"
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "ノードタイプ。"
},
"title": {
"type": "string",
- "description": "イテレーションノードのタイトルです。"
+ "description": "イテレーションノードタイトル。"
},
"outputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "イテレーションの出力データです。"
+ "description": "イテレーション出力データ。"
},
"status": {
"type": "string",
- "description": "イテレーションの実行ステータスです。`running` は進行中、`succeeded` は成功、`failed` は失敗、`exception` は例外発生を示します。"
+ "description": "イテレーション実行ステータス。進行中は `running`、成功は `succeeded`、失敗は `failed`、例外発生は `exception`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "イテレーションが失敗した場合のエラーメッセージです。"
+ "description": "イテレーションが失敗した場合のエラーメッセージ。"
},
"elapsed_time": {
"type": "number",
- "description": "イテレーションの合計時間(秒)です。"
+ "description": "合計イテレーション時間(秒)。"
},
"total_tokens": {
"type": "integer",
- "description": "すべてのイテレーションで消費されたトークンの合計です。"
+ "description": "すべてのイテレーションで消費された合計 token 数。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"finished_at": {
"type": "integer",
"format": "int64",
- "description": "終了タイムスタンプ(Unix エポック秒)です。"
+ "description": "終了タイムスタンプ(Unix エポック秒)。"
},
"steps": {
"type": "integer",
- "description": "実行されたイテレーションステップの合計数です。"
+ "description": "実行されたイテレーションステップの総数。"
}
}
}
@@ -5263,46 +5263,46 @@
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ループ実行 ID です。"
+ "description": "ループ実行 ID。"
},
"node_id": {
"type": "string",
- "description": "ループノード ID です。"
+ "description": "ループノード ID。"
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "ノードタイプ。"
},
"title": {
"type": "string",
- "description": "ループノードのタイトルです。"
+ "description": "ループノードタイトル。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "追加メタデータです。"
+ "description": "追加のメタデータ。"
},
"metadata": {
"type": "object",
"additionalProperties": true,
- "description": "ループのメタデータです。"
+ "description": "ループメタデータ。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "ループの入力データです。"
+ "description": "ループ入力データ。"
}
}
}
@@ -5324,43 +5324,43 @@
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ループ実行 ID です。"
+ "description": "ループ実行 ID。"
},
"node_id": {
"type": "string",
- "description": "ループノード ID です。"
+ "description": "ループノード ID。"
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "ノードタイプ。"
},
"title": {
"type": "string",
- "description": "ループノードのタイトルです。"
+ "description": "ループノードタイトル。"
},
"index": {
"type": "integer",
- "description": "現在のループインデックス(0 始まり)です。"
+ "description": "現在のループインデックス(0 始まり)。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "タイムスタンプ(Unix エポック秒)です。"
+ "description": "タイムスタンプ(Unix エポック秒)。"
},
"pre_loop_output": {
- "description": "前回のループイテレーションからの出力です。"
+ "description": "前のループイテレーションからの出力。"
},
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "追加メタデータです。"
+ "description": "追加のメタデータ。"
}
}
}
@@ -5382,63 +5382,63 @@
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ループ実行 ID です。"
+ "description": "ループ実行 ID。"
},
"node_id": {
"type": "string",
- "description": "ループノード ID です。"
+ "description": "ループノード ID。"
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "ノードタイプ。"
},
"title": {
"type": "string",
- "description": "ループノードのタイトルです。"
+ "description": "ループノードタイトル。"
},
"outputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "ループの出力データです。"
+ "description": "ループ出力データ。"
},
"status": {
"type": "string",
- "description": "ループの実行ステータスです。`running` は進行中、`succeeded` は成功、`failed` は失敗、`exception` は例外発生を示します。"
+ "description": "ループ実行ステータス。進行中は `running`、成功は `succeeded`、失敗は `failed`、例外発生は `exception`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "ループが失敗した場合のエラーメッセージです。"
+ "description": "ループが失敗した場合のエラーメッセージ。"
},
"elapsed_time": {
"type": "number",
- "description": "ループの合計実行時間(秒)です。"
+ "description": "合計ループ実行時間(秒)。"
},
"total_tokens": {
"type": "integer",
- "description": "すべてのループイテレーションで消費されたトークンの合計です。"
+ "description": "すべてのループイテレーションで消費された合計 token 数。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "開始タイムスタンプ(Unix エポック秒)です。"
+ "description": "開始タイムスタンプ(Unix エポック秒)。"
},
"finished_at": {
"type": "integer",
"format": "int64",
- "description": "終了タイムスタンプ(Unix エポック秒)です。"
+ "description": "終了タイムスタンプ(Unix エポック秒)。"
},
"steps": {
"type": "integer",
- "description": "実行されたループの合計ステップ数です。"
+ "description": "実行されたループステップの総数。"
}
}
}
@@ -5456,30 +5456,30 @@
},
{
"type": "object",
- "description": "人的介入ノードがユーザー入力を待機しています。",
+ "description": "人間の入力ノードがユーザー入力を待っています。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"form_id": {
"type": "string",
- "description": "レスポンス送信用のフォーム ID です。"
+ "description": "レスポンス送信用のフォーム ID。"
},
"node_id": {
"type": "string",
- "description": "人的介入ノードのノード ID です。"
+ "description": "人間の入力ノードのノード ID。"
},
"node_title": {
"type": "string",
- "description": "人的介入ノードのタイトルです。"
+ "description": "人間の入力ノードのタイトル。"
},
"form_content": {
"type": "string",
- "description": "ユーザー向けのフォーム内容/説明です。"
+ "description": "ユーザー向けのフォームコンテンツ/説明。"
},
"inputs": {
"type": "array",
@@ -5487,7 +5487,7 @@
"type": "object",
"additionalProperties": true
},
- "description": "フォーム入力フィールドの定義です。"
+ "description": "フォーム入力フィールドの定義。"
},
"actions": {
"type": "array",
@@ -5495,17 +5495,17 @@
"type": "object",
"additionalProperties": true
},
- "description": "利用可能なユーザーアクションです。"
+ "description": "利用可能なユーザーアクション。"
},
"form_token": {
"type": "string",
"nullable": true,
- "description": "フォーム送信認証用のトークンです。"
+ "description": "フォーム送信認証用のトークン。"
},
"expiration_time": {
"type": "integer",
"format": "int64",
- "description": "フォームが期限切れになる Unix タイムスタンプです。"
+ "description": "フォームが期限切れになる Unix タイムスタンプ。"
}
}
}
@@ -5530,19 +5530,19 @@
"workflow_run_id": {
"type": "string",
"format": "uuid",
- "description": "このワークフロー実行記録の永続的な識別子です。[ワークフロー実行詳細を取得](/api-reference/ワークフロー/ワークフロー実行詳細を取得) と組み合わせて、実行後に結果を取得します。"
+ "description": "このワークフロー実行レコードの永続的な識別子。実行後に結果を取得するには [ワークフロー実行詳細を取得](/ja/api-reference/workflows/get-workflow-run-detail) で使用してください。"
},
"paused_nodes": {
"type": "array",
"items": {
"type": "string"
},
- "description": "一時停止中のノード ID のリストです。"
+ "description": "一時停止されたノード ID のリスト。"
},
"outputs": {
"type": "object",
"additionalProperties": true,
- "description": "一時停止時の部分的な出力です。"
+ "description": "一時停止時の部分的な出力。"
},
"reasons": {
"type": "array",
@@ -5550,11 +5550,11 @@
"type": "object",
"additionalProperties": true
},
- "description": "一時停止の理由です。"
+ "description": "一時停止の理由。"
},
"status": {
"type": "string",
- "description": "ワークフローの実行ステータスです。"
+ "description": "ワークフロー実行ステータス。"
},
"created_at": {
"type": "integer",
@@ -5564,15 +5564,15 @@
"elapsed_time": {
"type": "number",
"format": "float",
- "description": "合計経過時間(秒)です。"
+ "description": "合計経過時間(秒)。"
},
"total_tokens": {
"type": "integer",
- "description": "消費された合計トークン数です。"
+ "description": "消費された合計 token 数。"
},
"total_steps": {
"type": "integer",
- "description": "実行された合計ステップ数です。"
+ "description": "実行された合計ステップ数。"
}
}
}
@@ -5593,30 +5593,30 @@
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"node_id": {
"type": "string",
- "description": "Node ID."
+ "description": "ノード ID。"
},
"node_title": {
"type": "string",
- "description": "Node title."
+ "description": "ノードタイトル。"
},
"rendered_content": {
"type": "string",
- "description": "フォーム送信後のレンダリングされた内容です。"
+ "description": "フォーム送信後にレンダリングされたコンテンツ。"
},
"action_id": {
"type": "string",
- "description": "実行されたアクションの ID です。"
+ "description": "実行されたアクションの ID。"
},
"action_text": {
"type": "string",
- "description": "実行されたアクションのテキストです。"
+ "description": "実行されたアクションのテキスト。"
}
}
}
@@ -5637,23 +5637,23 @@
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "ワークフロー実行の実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"data": {
"type": "object",
"properties": {
"node_id": {
"type": "string",
- "description": "Node ID."
+ "description": "ノード ID。"
},
"node_title": {
"type": "string",
- "description": "Node title."
+ "description": "ノードタイトル。"
},
"expiration_time": {
"type": "integer",
"format": "int64",
- "description": "フォームが期限切れになった Unix タイムスタンプです。"
+ "description": "フォームが期限切れになった Unix タイムスタンプ。"
}
}
}
@@ -5671,50 +5671,50 @@
},
{
"type": "object",
- "description": "ワークフロー内のエージェントノードからのエージェントログです。",
+ "description": "ワークフロー内の Agent ノードからの Agent ログ。",
"properties": {
"data": {
"type": "object",
"properties": {
"node_execution_id": {
"type": "string",
- "description": "ノード実行 ID です。"
+ "description": "ノード実行 ID。"
},
"id": {
"type": "string",
- "description": "ログエントリ ID です。"
+ "description": "ログエントリ ID。"
},
"label": {
"type": "string",
- "description": "ログエントリのラベルです。"
+ "description": "ログエントリラベル。"
},
"parent_id": {
"type": "string",
"nullable": true,
- "description": "ネストされたエントリの親ログエントリ ID です。"
+ "description": "ネストされたエントリの親ログエントリ ID。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "エラーメッセージ(該当する場合)です。"
+ "description": "該当する場合のエラーメッセージ。"
},
"status": {
"type": "string",
- "description": "ログエントリのステータスです。"
+ "description": "ログエントリステータス。"
},
"data": {
"type": "object",
"additionalProperties": true,
- "description": "ログエントリのデータです。"
+ "description": "ログエントリデータ。"
},
"metadata": {
"type": "object",
"additionalProperties": true,
- "description": "追加メタデータです。"
+ "description": "追加のメタデータ。"
},
"node_id": {
"type": "string",
- "description": "ワークフローグラフ内のノード ID です。"
+ "description": "ワークフローグラフ内のノード ID。"
}
}
}
@@ -5738,7 +5738,7 @@
"properties": {
"text": {
"type": "string",
- "description": "テキスト内容のチャンクです。"
+ "description": "テキストコンテンツチャンク。"
},
"from_variable_selector": {
"type": "array",
@@ -5746,7 +5746,7 @@
"type": "string"
},
"nullable": true,
- "description": "ワークフロー内のテキスト変数のソースパスです。"
+ "description": "ワークフロー内のテキスト変数のソースパス。"
}
}
}
@@ -5770,7 +5770,7 @@
"properties": {
"text": {
"type": "string",
- "description": "置換テキスト内容です。"
+ "description": "置換テキストコンテンツ。"
}
}
}
@@ -5784,57 +5784,57 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "ワークフロー実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"workflow_id": {
"type": "string",
"format": "uuid",
- "description": "Workflow ID."
+ "description": "ワークフロー ID。"
},
"status": {
"type": "string",
- "description": "ワークフローの実行ステータスです。`running` は実行中、`succeeded` は正常完了、`failed` は実行エラー、`stopped` は手動停止、`partial-succeeded` は一部のノードが成功し他が失敗、`paused` は人的介入待ちを示します。"
+ "description": "ワークフロー実行ステータス。進行中の実行は `running`、正常に完了した場合は `succeeded`、実行がエラーに遭遇した場合は `failed`、手動で停止した場合は `stopped`、一部のノードが成功し他のノードが失敗した場合は `partial-succeeded`、人間の入力待ちの場合は `paused`。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "ワークフロー実行の入力変数です。"
+ "description": "ワークフロー実行の入力変数。"
},
"outputs": {
"type": "object",
"additionalProperties": true,
"nullable": true,
- "description": "ワークフローからの出力データです。"
+ "description": "ワークフローからの出力データ。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "ワークフローが失敗した場合のエラーメッセージです。"
+ "description": "ワークフローが失敗した場合のエラーメッセージ。"
},
"total_steps": {
"type": "integer",
- "description": "実行されたワークフローの合計ステップ数です。"
+ "description": "実行されたワークフローステップの総数。"
},
"total_tokens": {
"type": "integer",
- "description": "消費された合計トークン数です。"
+ "description": "消費された合計 token 数。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "ワークフロー実行が作成された Unix タイムスタンプです。"
+ "description": "ワークフロー実行が作成された Unix タイムスタンプ。"
},
"finished_at": {
"type": "integer",
"format": "int64",
"nullable": true,
- "description": "ワークフロー実行が完了した Unix タイムスタンプです。"
+ "description": "ワークフロー実行が終了した Unix タイムスタンプ。"
},
"elapsed_time": {
"type": "number",
"format": "float",
"nullable": true,
- "description": "合計経過時間(秒)です。"
+ "description": "合計経過時間(秒)。"
}
}
},
@@ -5843,26 +5843,26 @@
"properties": {
"page": {
"type": "integer",
- "description": "現在のページ番号です。"
+ "description": "現在のページ番号。"
},
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1ページあたりのアイテム数。"
},
"total": {
"type": "integer",
- "description": "ログエントリの合計数です。"
+ "description": "ログエントリの総数。"
},
"has_more": {
"type": "boolean",
- "description": "さらにページがあるかどうかです。"
+ "description": "さらにページが利用可能かどうか。"
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkflowLogItem"
},
- "description": "ワークフローログエントリのリストです。"
+ "description": "ワークフローログエントリのリスト。"
}
}
},
@@ -5872,23 +5872,23 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "ログエントリ ID です。"
+ "description": "ログエントリ ID。"
},
"workflow_run": {
"$ref": "#/components/schemas/WorkflowRunSummary"
},
"created_from": {
"type": "string",
- "description": "ワークフロー実行のソース(例:`service-api`)です。"
+ "description": "ワークフロー実行のソース(例: `service-api`)。"
},
"created_by_role": {
"type": "string",
- "description": "作成者のロール(例:`end_user`、`account`)です。"
+ "description": "作成者のロール(例: `end_user`、`account`)。"
},
"created_by_account": {
"type": "object",
"nullable": true,
- "description": "管理者ユーザーが作成した場合のアカウント詳細です。",
+ "description": "管理者ユーザーによって作成された場合のアカウント詳細。",
"properties": {
"id": {
"type": "string",
@@ -5911,13 +5911,13 @@
"created_at": {
"type": "integer",
"format": "int64",
- "description": "ログエントリが作成された Unix タイムスタンプです。"
+ "description": "ログエントリが作成された Unix タイムスタンプ。"
},
"details": {
"type": "object",
"additionalProperties": true,
"nullable": true,
- "description": "ログエントリの追加詳細です。"
+ "description": "ログエントリの追加詳細。"
}
}
},
@@ -5927,52 +5927,52 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "ワークフロー実行 ID です。"
+ "description": "ワークフロー実行 ID。"
},
"version": {
"type": "string",
- "description": "ワークフローバージョン識別子です。"
+ "description": "ワークフローバージョン識別子。"
},
"status": {
"type": "string",
- "description": "ワークフローの実行ステータスです。`running` は実行中、`succeeded` は正常完了、`failed` は実行エラー、`stopped` は手動停止、`partial-succeeded` は一部のノードが成功し他が失敗、`paused` は人的介入待ちを示します。"
+ "description": "ワークフロー実行ステータス。進行中の実行は `running`、正常に完了した場合は `succeeded`、実行がエラーに遭遇した場合は `failed`、手動で停止した場合は `stopped`、一部のノードが成功し他のノードが失敗した場合は `partial-succeeded`、人間の入力待ちの場合は `paused`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "ワークフローが失敗した場合のエラーメッセージです。"
+ "description": "ワークフローが失敗した場合のエラーメッセージ。"
},
"elapsed_time": {
"type": "number",
"format": "float",
- "description": "合計経過時間(秒)です。"
+ "description": "合計経過時間(秒)。"
},
"total_tokens": {
"type": "integer",
- "description": "消費された合計トークン数です。"
+ "description": "消費された合計 token 数。"
},
"total_steps": {
"type": "integer",
- "description": "実行されたワークフローの合計ステップ数です。"
+ "description": "実行されたワークフローステップの総数。"
},
"created_at": {
"type": "integer",
"format": "int64",
- "description": "ワークフロー実行が作成された Unix タイムスタンプです。"
+ "description": "ワークフロー実行が作成された Unix タイムスタンプ。"
},
"finished_at": {
"type": "integer",
"format": "int64",
"nullable": true,
- "description": "ワークフロー実行が完了した Unix タイムスタンプです。"
+ "description": "ワークフロー実行が終了した Unix タイムスタンプ。"
},
"exceptions_count": {
"type": "integer",
- "description": "実行中に発生した例外の数です。"
+ "description": "実行中に発生した例外の数。"
},
"triggered_from": {
"type": "string",
- "description": "ワークフロー実行をトリガーしたソースです。`debugging` はエディタからのテスト実行、`app` は API またはアプリからの実行を示します。"
+ "description": "ワークフロー実行をトリガーしたソース。エディターからのテスト実行は `debugging`、API またはアプリが開始した実行は `app`。"
}
}
},
@@ -5986,159 +5986,159 @@
},
"type": {
"type": "string",
- "description": "エンドユーザーの種類です。"
+ "description": "エンドユーザータイプ。"
},
"is_anonymous": {
"type": "boolean",
- "description": "エンドユーザーが匿名かどうかです。"
+ "description": "エンドユーザーが匿名かどうか。"
},
"session_id": {
"type": "string",
- "description": "セッション識別子です。"
+ "description": "セッション識別子。"
}
}
},
"HumanInputContent": {
"type": "object",
- "description": "人的介入ノードからの実行コンテンツです。フォーム定義と送信データを含みます。",
+ "description": "人間の入力ノードからの実行コンテンツ。フォーム定義と送信データを含みます。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "このコンテンツが属するワークフロー実行の ID です。"
+ "description": "このコンテンツが属するワークフロー実行の ID。"
},
"submitted": {
"type": "boolean",
- "description": "人的介入フォームが送信されたかどうかです。"
+ "description": "人間の入力フォームが送信されたかどうか。"
},
"type": {
"type": "string",
- "description": "`human_input` は人的介入コンテンツを示します。"
+ "description": "人間の入力コンテンツの場合は `human_input`。"
},
"form_definition": {
"nullable": true,
- "description": "人的介入ノードからのフォーム定義です。コンテンツが送信レスポンスを表す場合は `null` です。",
+ "description": "人間の入力ノードからのフォーム定義。コンテンツが送信レスポンスを表す場合は `null`。",
"$ref": "#/components/schemas/HumanInputFormDefinition"
},
"form_submission_data": {
"nullable": true,
- "description": "送信されたフォームデータです。フォームがまだ送信されていない場合は `null` です。",
+ "description": "送信されたフォームデータ。フォームがまだ送信されていない場合は `null`。",
"$ref": "#/components/schemas/HumanInputFormSubmissionData"
}
}
},
"HumanInputFormDefinition": {
"type": "object",
- "description": "人的介入ノードによってレンダリングされる人的介入フォームの定義です。",
+ "description": "人間の入力ノードによってレンダリングされる人間の入力フォームの定義。",
"properties": {
"form_id": {
"type": "string",
- "description": "フォームの一意識別子です。"
+ "description": "一意のフォーム識別子。"
},
"node_id": {
"type": "string",
- "description": "このフォームを生成した人的介入ノードの ID です。"
+ "description": "このフォームを生成した人間の入力ノードの ID。"
},
"node_title": {
"type": "string",
- "description": "人的介入ノードのタイトルです。"
+ "description": "人間の入力ノードのタイトル。"
},
"form_content": {
"type": "string",
- "description": "フォームと共に表示される Markdown またはテキストコンテンツです。"
+ "description": "フォームと共に表示される Markdown またはテキストコンテンツ。"
},
"inputs": {
"type": "array",
- "description": "フォーム内の入力フィールドです。",
+ "description": "フォーム内の入力フィールド。",
"items": {
"$ref": "#/components/schemas/FormInput"
}
},
"actions": {
"type": "array",
- "description": "フォームで利用可能なアクションボタンです。",
+ "description": "フォームで利用可能なアクションボタン。",
"items": {
"$ref": "#/components/schemas/UserAction"
}
},
"display_in_ui": {
"type": "boolean",
- "description": "フォームを UI に表示するかどうかです。"
+ "description": "フォームを UI に表示するかどうか。"
},
"form_token": {
"type": "string",
"nullable": true,
- "description": "フォーム送信認証用のトークンです。"
+ "description": "フォーム送信認証用のトークン。"
},
"resolved_default_values": {
"type": "object",
"additionalProperties": true,
- "description": "出力変数名をキーとする、フォーム入力の解決済みデフォルト値です。"
+ "description": "出力変数名でキー付けされたフォーム入力の解決済みデフォルト値。"
},
"expiration_time": {
"type": "integer",
- "description": "フォームが期限切れになる Unix タイムスタンプです。"
+ "description": "フォームが期限切れになる Unix タイムスタンプ。"
}
}
},
"HumanInputFormSubmissionData": {
"type": "object",
- "description": "送信された人的介入フォームからのデータです。",
+ "description": "送信された人間の入力フォームからのデータ。",
"properties": {
"node_id": {
"type": "string",
- "description": "人的介入ノードの ID です。"
+ "description": "人間の入力ノードの ID。"
},
"node_title": {
"type": "string",
- "description": "人的介入ノードのタイトルです。"
+ "description": "人間の入力ノードのタイトル。"
},
"rendered_content": {
"type": "string",
- "description": "フォーム送信のレンダリングされた内容です。"
+ "description": "フォーム送信のレンダリングされたコンテンツ。"
},
"action_id": {
"type": "string",
- "description": "クリックされたアクションボタンの ID です。"
+ "description": "クリックされたアクションボタンの ID。"
},
"action_text": {
"type": "string",
- "description": "クリックされたアクションボタンの表示テキストです。"
+ "description": "クリックされたアクションボタンの表示テキスト。"
}
}
},
"FormInput": {
"type": "object",
- "description": "フォーム入力フィールドの定義です。",
+ "description": "フォーム入力フィールドの定義。",
"properties": {
"type": {
"type": "string",
- "description": "`text_input` は単一行テキスト、`paragraph` は複数行テキストです。"
+ "description": "単一行テキストは `text_input`、複数行テキストは `paragraph`。"
},
"output_variable_name": {
"type": "string",
- "description": "入力値が格納される変数名です。"
+ "description": "入力値が格納される変数名。"
},
"default": {
"nullable": true,
- "description": "この入力のデフォルト値設定です。",
+ "description": "この入力のデフォルト値設定。",
"$ref": "#/components/schemas/FormInputDefault"
}
}
},
"FormInputDefault": {
"type": "object",
- "description": "フォーム入力のデフォルト値設定です。",
+ "description": "フォーム入力のデフォルト値設定。",
"properties": {
"type": {
"type": "string",
- "description": "`variable` はワークフロー変数からの動的な値、`constant` は静的な値です。"
+ "description": "ワークフロー変数からの動的値は `variable`、静的値は `constant`。"
},
"selector": {
"type": "array",
"items": {
"type": "string"
},
- "description": "`type` が `variable` の場合の変数セレクターパスです。"
+ "description": "`type` が `variable` の場合の変数セレクターパス。"
},
"value": {
"type": "string",
@@ -6148,19 +6148,19 @@
},
"UserAction": {
"type": "object",
- "description": "人的介入フォーム上のアクションボタンです。",
+ "description": "人間の入力フォーム上のアクションボタン。",
"properties": {
"id": {
"type": "string",
- "description": "アクションの一意識別子です。"
+ "description": "一意のアクション識別子。"
},
"title": {
"type": "string",
- "description": "ボタンの表示テキストです。"
+ "description": "ボタン表示テキスト。"
},
"button_style": {
"type": "string",
- "description": "`primary`, `default`, `accent`, or `ghost`."
+ "description": "`primary`、`default`、`accent`、または `ghost`。"
}
}
}
@@ -6168,40 +6168,40 @@
},
"tags": [
{
- "name": "チャットメッセージ",
- "description": "チャットメッセージとインタラクションに関連する操作です。"
+ "name": "Chats",
+ "description": "チャットメッセージとインタラクションに関連する操作。"
},
{
- "name": "ファイル操作",
- "description": "ファイルのアップロードとプレビューの操作です。"
+ "name": "Files",
+ "description": "ファイルのアップロードとプレビューの操作。"
},
{
- "name": "エンドユーザー",
- "description": "エンドユーザー情報に関連する操作です。"
+ "name": "End Users",
+ "description": "エンドユーザー情報に関連する操作。"
},
{
- "name": "メッセージフィードバック",
- "description": "ユーザーフィードバックの操作です。"
+ "name": "Feedback",
+ "description": "ユーザーフィードバックの操作。"
},
{
- "name": "会話管理",
- "description": "会話管理に関連する操作です。"
+ "name": "Conversations",
+ "description": "会話の管理に関連する操作。"
},
{
- "name": "音声・テキスト変換",
- "description": "テキスト読み上げと音声認識の操作です。"
+ "name": "TTS",
+ "description": "テキスト読み上げと音声認識の操作。"
},
{
- "name": "アプリケーション設定",
- "description": "アプリケーション設定と情報を取得する操作です。"
+ "name": "Applications",
+ "description": "アプリケーション設定と情報を取得する操作。"
},
{
- "name": "アノテーション管理",
- "description": "ダイレクト返信用のアノテーション管理に関連する操作です。"
+ "name": "Annotations",
+ "description": "直接返信用のアノテーション管理に関連する操作。"
},
{
- "name": "ワークフロー実行",
- "description": "ワークフロー実行の詳細とログに関連する操作です。"
+ "name": "Workflow Runs",
+ "description": "ワークフロー実行詳細とログに関連する操作。"
}
]
-}
+}
\ No newline at end of file
diff --git a/ja/api-reference/openapi_completion.json b/ja/api-reference/openapi_completion.json
index 05988e331..9b0c46ab8 100644
--- a/ja/api-reference/openapi_completion.json
+++ b/ja/api-reference/openapi_completion.json
@@ -1,8 +1,8 @@
{
"openapi": "3.0.1",
"info": {
- "title": "Completion アプリ API",
- "description": "テキスト生成アプリケーションはセッションなしで動作し、翻訳、記事作成、要約 AI などに最適です。",
+ "title": "テキスト生成アプリ API",
+ "description": "テキスト生成アプリケーションは非セッションサポートを提供し、翻訳、記事作成、要約 AI などに最適です。",
"version": "1.0.0"
},
"servers": [
@@ -25,11 +25,11 @@
"paths": {
"/completion-messages": {
"post": {
- "summary": "完了メッセージを送信",
+ "summary": "テキスト生成メッセージを送信",
"description": "テキスト生成アプリケーションにリクエストを送信します。",
- "operationId": "createCompletionMessageJp",
+ "operationId": "createCompletionMessage",
"tags": [
- "完了メッセージ"
+ "Completions"
],
"requestBody": {
"description": "テキスト生成メッセージを作成するためのリクエストボディ。",
@@ -75,7 +75,7 @@
},
"responses": {
"200": {
- "description": "リクエスト成功。コンテンツタイプと構造はリクエストの `response_mode` パラメータに依存します。\n\n- `response_mode` が `blocking` の場合、 `application/json` で `CompletionResponse` オブジェクトを返します。\n- `response_mode` が `streaming` の場合、 `text/event-stream` で `ChunkCompletionEvent` オブジェクトのストリームを返します。",
+ "description": "成功レスポンス。コンテンツタイプと構造はリクエストの `response_mode` パラメータによって異なります。\n- `response_mode` が `blocking` の場合、`CompletionResponse` オブジェクトを含む `application/json` を返します。\n- `response_mode` が `streaming` の場合、`ChunkCompletionEvent` オブジェクトのストリームを含む `text/event-stream` を返します。",
"content": {
"application/json": {
"schema": {
@@ -115,7 +115,7 @@
"text/event-stream": {
"schema": {
"type": "string",
- "description": "サーバー送信イベント (SSE) のストリームです。各イベントは `data: ` プレフィックス付きの JSON オブジェクトで、2 つの改行で終了します。\n\n**SSE パースガイド:**各イベントは `data: ` プレフィックス付きの JSON オブジェクトの行で、`\\n\\n` で終了します。JSON をパースする前に `data: ` プレフィックスを除去してください。JSON 内の `event` フィールドがイベントタイプを決定します。終了イベント(`message_end`、`error` など)を受信するとストリームは終了します。`ping` イベント(10 秒ごとに接続維持のために送信)は無視してください。ストリーム内でエラーイベントが発生しても HTTP ステータスコードは常に `200` です。"
+ "description": "Server-Sent Events(SSE)のストリーム。各イベントは `data: ` で始まり、2つの改行で終了する JSON オブジェクトです。可能なイベント構造については `ChunkCompletionEvent` を参照してください。\n**SSE パースガイド:** 各イベントは `data: ` で始まり、JSON オブジェクトが続き、`\\n\\n` で終了する行です。JSON をパースする前に `data: ` プレフィックスを削除してください。JSON 内の `event` フィールドがイベントタイプを決定します。`message_end` イベントを受信するとストリームは終了します。`ping` イベント(接続を維持するために10秒ごとに送信)は無視してください。ストリーム中に `error` イベントを受信した場合、ストリームは終了します — 詳細についてはエラーオブジェクトをパースしてください。ストリーム内でエラーイベントが発生しても、HTTP ステータスコードは常に `200` であることに注意してください。"
},
"examples": {
"streamingResponse": {
@@ -127,7 +127,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルは利用できません。\n- `completion_request_error` : テキスト生成に失敗しました。",
+ "description": "- `app_unavailable` : アプリが利用できないか、設定が間違っています。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータを超過しました。\n- `model_currently_not_support` : 現在のモデルは利用できません。\n- `completion_request_error` : テキスト生成に失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -176,7 +176,7 @@
}
},
"429": {
- "description": "`too_many_requests` : このアプリケーションへの同時リクエストが多すぎます。",
+ "description": "`too_many_requests` : このアプリへの同時リクエストが多すぎます。",
"content": {
"application/json": {
"examples": {
@@ -214,18 +214,18 @@
},
"/completion-messages/{task_id}/stop": {
"post": {
- "summary": "生成を停止",
- "description": "テキスト生成メッセージ生成タスクを停止します。`streaming` モードでのみサポートされています。",
- "operationId": "stopCompletionGenerationJp",
+ "summary": "テキスト生成メッセージの生成を停止",
+ "description": "テキスト生成メッセージの生成タスクを停止します。`streaming` モードでのみサポートされています。",
+ "operationId": "stopGenerate",
"tags": [
- "完了メッセージ"
+ "Completions"
],
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
- "description": "タスク ID です。[完了メッセージを送信](/api-reference/完了メッセージ/完了メッセージを送信) API のストリーミングチャンクレスポンスから取得できます。",
+ "description": "タスク ID。[テキスト生成メッセージを送信](/api-reference/completions/send-completion-message) API のストリーミングチャンクの戻り値から取得できます。",
"schema": {
"type": "string"
}
@@ -243,7 +243,7 @@
"properties": {
"user": {
"type": "string",
- "description": "ユーザー識別子。メッセージ送信インターフェースで渡された user と一致する必要があります。"
+ "description": "ユーザー識別子。メッセージ送信インターフェースで渡されたユーザーと一致する必要があります。"
}
}
},
@@ -263,7 +263,7 @@
"$ref": "#/components/responses/SuccessResult"
},
"400": {
- "description": "`app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。",
+ "description": "`app_unavailable` : アプリが利用できないか、設定が間違っています。",
"content": {
"application/json": {
"examples": {
@@ -284,12 +284,12 @@
},
"/messages/{message_id}/feedbacks": {
"post": {
- "operationId": "postCompletionMessageFeedbackJp",
+ "operationId": "postMessageFeedback",
"tags": [
- "メッセージフィードバック"
+ "Feedback"
],
"summary": "メッセージフィードバックを送信",
- "description": "メッセージに対するフィードバックを送信します。エンドユーザーはメッセージを `like` または `dislike` で評価でき、任意でテキストフィードバックを提供できます。`rating` に `null` を渡すと、以前送信したフィードバックを取り消せます。",
+ "description": "メッセージに対するフィードバックを送信します。エンドユーザーはメッセージを `like` または `dislike` として評価でき、オプションでテキストフィードバックを提供できます。`rating` に `null` を渡すと、以前に送信したフィードバックを取り消します。",
"parameters": [
{
"name": "message_id",
@@ -347,17 +347,17 @@
},
"/app/feedbacks": {
"get": {
- "operationId": "getAppFeedbacksCompletionJp",
+ "operationId": "getAppFeedbacks",
"tags": [
- "メッセージフィードバック"
+ "Feedback"
],
- "summary": "アプリのフィードバック一覧を取得",
- "description": "このアプリケーションのメッセージに対して送信されたすべてのフィードバックのページネーション付きリストを取得します。エンドユーザーと管理者のフィードバックの両方が含まれます。",
+ "summary": "アプリフィードバック一覧を取得",
+ "description": "このアプリケーションのメッセージに送信されたすべてのフィードバックのページネーションされたリストを取得します。エンドユーザーと管理者の両方のフィードバックが含まれます。",
"parameters": [
{
"name": "page",
"in": "query",
- "description": "ページネーションのページ番号。",
+ "description": "ページネーション用のページ番号。",
"required": false,
"schema": {
"type": "integer",
@@ -429,14 +429,14 @@
},
"/files/upload": {
"post": {
- "operationId": "uploadCompletionFileJp",
+ "operationId": "uploadFile",
"tags": [
- "ファイル操作"
+ "Files"
],
"summary": "ファイルをアップロード",
- "description": "メッセージ送信時に使用するファイルをアップロードします。画像、ドキュメント、音声、動画のマルチモーダル理解が可能です。アップロードされたファイルは現在のエンドユーザーのみが使用できます。",
+ "description": "メッセージ送信時に使用するファイルをアップロードし、画像、ドキュメント、音声、動画のマルチモーダル理解を有効にします。アップロードされたファイルは現在のエンドユーザーのみが使用できます。",
"requestBody": {
- "description": "ファイルアップロードリクエスト。multipart/form-data 形式が必要です。",
+ "description": "ファイルアップロードリクエスト。multipart/form-data が必要です。",
"required": true,
"content": {
"multipart/form-data": {
@@ -449,7 +449,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "アップロードするファイル。サポートされるタイプには画像、ドキュメント、音声、動画が含まれます。"
+ "description": "アップロードするファイル。サポートされるタイプには、画像、ドキュメント、音声、動画が含まれます。"
},
"user": {
"type": "string",
@@ -462,7 +462,7 @@
},
"responses": {
"201": {
- "description": "ファイルが正常にアップロードされました。",
+ "description": "ファイルのアップロードに成功しました。",
"content": {
"application/json": {
"schema": {
@@ -493,7 +493,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : リクエストにファイルが提供されていません。\n- `too_many_files` : 1 回のリクエストにつき 1 ファイルのみ許可されています。\n- `filename_not_exists_error` : アップロードされたファイルにファイル名がありません。",
+ "description": "- `no_file_uploaded` : リクエストにファイルが提供されていません。\n- `too_many_files` : リクエストごとに1つのファイルのみ許可されています。\n- `filename_not_exists_error` : アップロードされたファイルにファイル名がありません。",
"content": {
"application/json": {
"examples": {
@@ -526,7 +526,7 @@
}
},
"413": {
- "description": "`file_too_large` : ファイルサイズの上限を超えています。",
+ "description": "`file_too_large` : ファイルサイズを超過しました。",
"content": {
"application/json": {
"examples": {
@@ -543,7 +543,7 @@
}
},
"415": {
- "description": "`unsupported_file_type` : 許可されていないファイルタイプです。",
+ "description": "`unsupported_file_type` : ファイルタイプが許可されていません。",
"content": {
"application/json": {
"examples": {
@@ -564,18 +564,18 @@
},
"/files/{file_id}/preview": {
"get": {
- "operationId": "previewCompletionFileJa",
+ "operationId": "previewCompletionFile",
"tags": [
- "ファイル操作"
+ "Files"
],
"summary": "ファイルをダウンロード",
- "description": "以前[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API 経由でアップロードされたファイルをプレビューまたはダウンロードします。ファイルは、リクエスト元のアプリケーション内のメッセージに属する場合のみアクセスできます。",
+ "description": "[ファイルをアップロード](/api-reference/files/upload-file) API で以前にアップロードされたファイルをプレビューまたはダウンロードします。ファイルは、リクエストしているアプリケーション内のメッセージに属している場合のみアクセスできます。",
"parameters": [
{
"name": "file_id",
"in": "path",
"required": true,
- "description": "プレビューするファイルの一意の識別子です。[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API のレスポンスから取得します。",
+ "description": "プレビューするファイルの一意の識別子。[ファイルをアップロード](/api-reference/files/upload-file) API のレスポンスから取得できます。",
"schema": {
"type": "string",
"format": "uuid"
@@ -585,7 +585,7 @@
"name": "as_attachment",
"in": "query",
"required": false,
- "description": "`true` の場合、ブラウザでプレビューする代わりにファイルを添付ファイルとして強制ダウンロードします。",
+ "description": "`true` の場合、ブラウザでのプレビューではなく、添付ファイルとして強制的にダウンロードします。",
"schema": {
"type": "boolean",
"default": false
@@ -595,7 +595,7 @@
"name": "user",
"in": "query",
"required": false,
- "description": "ユーザー識別子。エンドユーザーのコンテキストに使用されます。",
+ "description": "ユーザー識別子。エンドユーザーコンテキストに使用されます。",
"schema": {
"type": "string"
}
@@ -603,7 +603,7 @@
],
"responses": {
"200": {
- "description": "生のファイルコンテンツを返します。`Content-Type` ヘッダーはファイルの MIME タイプに設定されます。`as_attachment` が `true` の場合、ファイルは `Content-Disposition: attachment` としてダウンロード形式で返されます。",
+ "description": "生のファイルコンテンツを返します。`Content-Type` ヘッダーはファイルの MIME タイプに設定されます。`as_attachment` が `true` の場合、ファイルは `Content-Disposition: attachment` でダウンロードとして返されます。",
"content": {
"application/octet-stream": {
"schema": {
@@ -631,7 +631,7 @@
}
},
"404": {
- "description": "`file_not_found` : リクエストされたファイルが見つかりません。",
+ "description": "`file_not_found` : リクエストされたファイルが見つかりませんでした。",
"content": {
"application/json": {
"examples": {
@@ -652,12 +652,12 @@
},
"/end-users/{end_user_id}": {
"get": {
- "operationId": "getEndUserCompletionJp",
+ "operationId": "getEndUserCompletion",
"tags": [
- "エンドユーザー"
+ "End Users"
],
- "summary": "エンドユーザー取得",
- "description": "ID を指定してエンドユーザーを取得します。他の API がエンドユーザー ID を返す場合(例:[ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード)の `created_by`)に便利です。",
+ "summary": "エンドユーザー情報を取得",
+ "description": "ID でエンドユーザーを取得します。他の API がエンドユーザー ID を返す場合に便利です(例:[ファイルをアップロード](/api-reference/files/upload-file) の `created_by`)。",
"parameters": [
{
"name": "end_user_id",
@@ -672,7 +672,7 @@
],
"responses": {
"200": {
- "description": "エンドユーザーを正常に取得しました。",
+ "description": "エンドユーザーの取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -720,12 +720,12 @@
},
"/audio-to-text": {
"post": {
- "operationId": "completionAudioToTextJa",
+ "operationId": "completionAudioToText",
"tags": [
- "音声・テキスト変換"
+ "TTS"
],
"summary": "音声をテキストに変換",
- "description": "音声ファイルをテキストに変換します。サポートされる形式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。ファイルサイズの上限は `30 MB` です。",
+ "description": "音声ファイルをテキストに変換します。サポートされる形式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。ファイルサイズ制限は `30 MB` です。",
"requestBody": {
"required": true,
"content": {
@@ -756,7 +756,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `no_audio_uploaded` : 音声ファイルがアップロードされていません。\n- `provider_not_support_speech_to_text` : モデルプロバイダーが音声認識をサポートしていません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : 音声認識リクエストに失敗しました。",
+ "description": "- `app_unavailable` : アプリが利用できないか、設定が間違っています。\n- `no_audio_uploaded` : 音声ファイルがアップロードされていません。\n- `provider_not_support_speech_to_text` : モデルプロバイダーは音声認識をサポートしていません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータを超過しました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : 音声認識リクエストに失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -821,7 +821,7 @@
}
},
"413": {
- "description": "`audio_too_large` : 音声ファイルサイズが上限を超えています。",
+ "description": "`audio_too_large` : 音声ファイルのサイズ制限を超過しました。",
"content": {
"application/json": {
"examples": {
@@ -838,7 +838,7 @@
}
},
"415": {
- "description": "`unsupported_audio_type` : 許可されていない音声タイプです。",
+ "description": "`unsupported_audio_type` : 音声タイプが許可されていません。",
"content": {
"application/json": {
"examples": {
@@ -876,9 +876,9 @@
},
"/text-to-audio": {
"post": {
- "operationId": "textToAudioCompletionJp",
+ "operationId": "textToAudio",
"tags": [
- "音声・テキスト変換"
+ "TTS"
],
"summary": "テキストを音声に変換",
"description": "テキストを音声に変換します。",
@@ -916,7 +916,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータが使い切られました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : テキスト読み上げリクエストに失敗しました。",
+ "description": "- `app_unavailable` : アプリが利用できないか、設定が間違っています。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。\n- `provider_quota_exceeded` : モデルプロバイダーのクォータを超過しました。\n- `model_currently_not_support` : 現在のモデルはこの操作をサポートしていません。\n- `completion_request_error` : テキスト読み上げリクエストに失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -986,12 +986,12 @@
},
"/info": {
"get": {
- "operationId": "getCompletionAppInfoJp",
+ "operationId": "getAppInfo",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
- "summary": "アプリケーションの基本情報を取得",
- "description": "このアプリケーションの基本情報(名前、説明、タグ、モード)を取得します。",
+ "summary": "アプリ情報を取得",
+ "description": "このアプリケーションの基本情報(名前、説明、タグ、モードなど)を取得します。",
"responses": {
"200": {
"description": "アプリケーションの基本情報。",
@@ -1023,12 +1023,12 @@
},
"/parameters": {
"get": {
- "operationId": "getCompletionAppParametersJp",
+ "operationId": "getAppParameters",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
- "summary": "アプリケーションのパラメータ情報を取得",
- "description": "アプリケーションの入力フォーム設定(機能スイッチ、入力パラメータ名、タイプ、デフォルト値)を取得します。",
+ "summary": "アプリパラメータを取得",
+ "description": "アプリケーションの入力フォーム設定(機能スイッチ、入力パラメータ名、タイプ、デフォルト値など)を取得します。",
"responses": {
"200": {
"description": "アプリケーションパラメータ情報。",
@@ -1105,7 +1105,7 @@
}
},
"400": {
- "description": "`app_unavailable` : アプリケーションが利用できないか、設定が正しくありません。",
+ "description": "`app_unavailable` : アプリが利用できないか、設定が間違っています。",
"content": {
"application/json": {
"examples": {
@@ -1126,15 +1126,15 @@
},
"/meta": {
"get": {
- "operationId": "getCompletionAppMetaJa",
+ "operationId": "getCompletionAppMeta",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
- "summary": "アプリケーションのメタ情報を取得",
- "description": "このアプリケーションのメタデータ(ツールアイコンやその他の設定詳細)を取得します。",
+ "summary": "アプリメタ情報を取得",
+ "description": "このアプリケーションのメタデータ(ツールアイコンやその他の設定詳細など)を取得します。",
"responses": {
"200": {
- "description": "アプリケーションのメタ情報を正常に取得しました。",
+ "description": "アプリケーションメタ情報の取得に成功しました。",
"content": {
"application/json": {
"schema": {
@@ -1162,12 +1162,12 @@
},
"/site": {
"get": {
- "operationId": "getCompletionWebAppSettingsJp",
+ "operationId": "getWebAppSettings",
"tags": [
- "アプリケーション設定"
+ "Applications"
],
- "summary": "アプリの WebApp 設定を取得",
- "description": "このアプリケーションの WebApp 設定(サイト設定、テーマ、カスタマイズオプション)を取得します。",
+ "summary": "アプリ WebApp 設定を取得",
+ "description": "このアプリケーションの WebApp 設定(サイト設定、テーマ、カスタマイズオプションなど)を取得します。",
"responses": {
"200": {
"description": "アプリケーションの WebApp 設定。",
@@ -1180,7 +1180,7 @@
"webAppSettings": {
"summary": "レスポンス例",
"value": {
- "title": "My Chat App",
+ "title": "マイチャットアプリ",
"chat_color_theme": "#4A90D9",
"chat_color_theme_inverted": false,
"icon_type": "emoji",
@@ -1227,12 +1227,12 @@
"type": "http",
"scheme": "bearer",
"bearerFormat": "API_KEY",
- "description": "API Key 認証です。すべての API リクエストにおいて、`Authorization` HTTP ヘッダーに `Bearer ` プレフィックスを付けた API Key を含めてください。例:`Authorization: Bearer {API_KEY}`。**API Key はサーバーサイドに保存し、クライアントサイドで共有・保存しないことを強く推奨します。API Key の漏洩は深刻な結果につながる可能性があります。**"
+ "description": "API キー認証。すべての API リクエストで、`Authorization` HTTP ヘッダーに `Bearer ` をプレフィックスとして API キーを含めてください。例:`Authorization: Bearer {API_KEY}`。**API キーはサーバー側に保存し、クライアント側で共有または保存しないことを強く推奨します。API キーの漏洩は深刻な結果につながる可能性があります。**"
}
},
"responses": {
"SuccessResult": {
- "description": "操作が成功しました。",
+ "description": "操作成功。",
"content": {
"application/json": {
"schema": {
@@ -1266,13 +1266,13 @@
"properties": {
"inputs": {
"type": "object",
- "description": "アプリで定義されたさまざまな変数の値を入力できます。キーと値のペアを含み、各キーは特定の変数に対応し、各値はその変数の具体的な値です。アプリが期待する変数名と型については、[アプリケーションのパラメータ情報を取得](/api-reference/アプリケーション設定/アプリケーションのパラメータ情報を取得) レスポンスの `user_input_form` フィールドを参照してください。",
+ "description": "アプリで定義されたさまざまな変数値の入力を許可します。キー/値のペアを含み、各キーは特定の変数に対応し、各値はその変数の具体的な値です。アプリが期待する変数名とタイプを確認するには、[アプリパラメータを取得](/api-reference/applications/get-app-parameters) レスポンスの `user_input_form` フィールドを参照してください。",
"additionalProperties": true
},
"query": {
"type": "string",
"default": "",
- "description": "処理対象の入力テキストです。これはレガシーパラメータであり、新しいアプリではクエリを `inputs` オブジェクト内で渡す必要があります。"
+ "description": "処理する入力テキスト。これはレガシーパラメータです。新しいアプリでは、クエリは `inputs` オブジェクト内に渡す必要があります。"
},
"response_mode": {
"type": "string",
@@ -1280,18 +1280,18 @@
"streaming",
"blocking"
],
- "description": "レスポンスの返却モード。`streaming`(推奨)は SSE を使用します。`blocking` は完了後に返却します(長時間の処理では中断される場合があります)。Cloudflare のタイムアウトは `100 s` です。省略した場合、デフォルトでブロッキングモードになります。"
+ "description": "レスポンス返却のモード。`streaming`(推奨)は SSE を使用します。`blocking` は完了後に返します(長いプロセスでは中断される可能性があります)。Cloudflare のタイムアウトは `100 秒` です。省略した場合、デフォルトでブロッキング動作になります。"
},
"user": {
"type": "string",
- "description": "ユーザー識別子。アプリケーション内で一意です。この識別子はデータアクセスの範囲を制限します。メッセージとファイルは同じ `user` 値でクエリした場合のみ表示されます。"
+ "description": "ユーザー識別子。アプリケーション内で一意です。この識別子はデータアクセスをスコープします — メッセージとファイルは同じ `user` 値でクエリした場合にのみ表示されます。"
},
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/InputFileObject"
},
- "description": "マルチモーダル理解用のファイルリストです。画像、ドキュメント、音声、動画を含みます。ローカルファイルを添付するには、まず [ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) でアップロードし、返された `id` を `upload_file_id` として `transfer_method: local_file` で使用します。"
+ "description": "画像、ドキュメント、音声、動画を含むマルチモーダル理解用のファイルリスト。ローカルファイルを添付するには、まず [ファイルをアップロード](/api-reference/files/upload-file) でアップロードし、返された `id` を `upload_file_id` として `transfer_method: local_file` で使用してください。"
}
}
},
@@ -1319,16 +1319,16 @@
"remote_url",
"local_file"
],
- "description": "転送方法です。ファイル URL の場合は `remote_url`、アップロードファイルの場合は `local_file` です。"
+ "description": "転送方法:ファイル URL の場合は `remote_url`、アップロードされたファイルの場合は `local_file`。"
},
"url": {
"type": "string",
"format": "url",
- "description": "ファイル URL(`transfer_method` が `remote_url` の場合)です。"
+ "description": "ファイル URL(`transfer_method` が `remote_url` の場合)。"
},
"upload_file_id": {
"type": "string",
- "description": "事前に [ファイルをアップロード](/api-reference/ファイル操作/ファイルをアップロード) API でアップロードして取得したファイル ID です(`transfer_method` が `local_file` の場合に使用)。"
+ "description": "アップロードされたファイル ID。事前に [ファイルをアップロード](/api-reference/files/upload-file) API でアップロードして取得します(`transfer_method` が `local_file` の場合)。"
}
},
"anyOf": [
@@ -1380,26 +1380,26 @@
"properties": {
"event": {
"type": "string",
- "description": "イベントタイプ。`message` に固定されています。"
+ "description": "イベントタイプ。`message` に固定。"
},
"task_id": {
"type": "string",
"format": "uuid",
- "description": "リクエスト追跡および [生成を停止](/api-reference/完了メッセージ/生成を停止) API 用のタスク ID です。"
+ "description": "リクエスト追跡および [テキスト生成メッセージの生成を停止](/api-reference/completions/stop-completion-message-generation) API 用のタスク ID。"
},
"id": {
"type": "string",
"format": "uuid",
- "description": "このレスポンスイベントの一意 ID です。"
+ "description": "このレスポンスイベントの一意の ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "一意のメッセージ ID です。フィードバックや推奨質問のエンドポイントを呼び出す際に `message_id` パラメータとして使用します。"
+ "description": "一意のメッセージ ID。フィードバックまたは推奨質問エンドポイントを呼び出す際に `message_id` パラメータとしてこれを使用してください。"
},
"mode": {
"type": "string",
- "description": "アプリモード、`completion` 固定です。"
+ "description": "アプリモード。`completion` に固定。"
},
"answer": {
"type": "string",
@@ -1490,7 +1490,7 @@
},
{
"type": "object",
- "description": "LLM がテキストチャンクイベントを返します。",
+ "description": "LLM がテキストチャンクを返すイベント。",
"properties": {
"answer": {
"type": "string",
@@ -1510,12 +1510,12 @@
},
{
"type": "object",
- "description": "メッセージ終了イベント。このイベントを受信すると、ストリーミングが終了したことを意味します。",
+ "description": "メッセージ終了イベント。このイベントを受信するとストリーミングが終了したことを意味します。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "メッセージの一意な ID。"
+ "description": "一意のメッセージ ID。"
},
"metadata": {
"type": "object",
@@ -1547,12 +1547,12 @@
},
{
"type": "object",
- "description": "TTS 音声ストリームイベント(base64 エンコード MP3)。自動再生が有効な場合に利用できます。",
+ "description": "TTS 音声ストリームイベント(base64 エンコードされた MP3)。自動再生が有効な場合に利用可能です。",
"properties": {
"audio": {
"type": "string",
"format": "byte",
- "description": "Base64 エンコードされた MP3 音声チャンク。すべてのチャンクを順番にデコードして連結すると、完全な音声ファイルが生成されます。"
+ "description": "Base64 エンコードされた MP3 音声チャンク。完全な音声ファイルを生成するには、すべてのチャンクを順番にデコードして連結してください。"
}
}
}
@@ -1572,7 +1572,7 @@
"properties": {
"audio": {
"type": "string",
- "description": "空の文字列。音声ストリームの終了を示します。"
+ "description": "空文字列。音声ストリームの終了を示します。"
}
}
}
@@ -1585,7 +1585,7 @@
},
{
"type": "object",
- "description": "メッセージファイルイベント。ツールによって作成された新しいファイルです。",
+ "description": "メッセージファイルイベント。ツールによって作成された新しいファイル。",
"properties": {
"id": {
"type": "string",
@@ -1594,14 +1594,14 @@
},
"type": {
"type": "string",
- "description": "ファイルタイプ(例:`image`)。"
+ "description": "ファイルタイプ。例:`image`。"
},
"belongs_to": {
"type": "string",
"enum": [
"assistant"
],
- "description": "このファイルの所有者。ここでは常に `assistant` です。"
+ "description": "このファイルの所属先。ここでは常に `assistant` です。"
},
"url": {
"type": "string",
@@ -1622,7 +1622,7 @@
},
{
"type": "object",
- "description": "メッセージコンテンツ置換イベント(例:コンテンツモデレーションによるもの)。",
+ "description": "メッセージコンテンツ置換イベント(例:コンテンツモデレーションによる)。",
"properties": {
"answer": {
"type": "string",
@@ -1680,54 +1680,54 @@
"properties": {
"prompt_tokens": {
"type": "integer",
- "description": "プロンプト内のトークン数。"
+ "description": "プロンプト内の token 数。"
},
"prompt_unit_price": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンあたりの単価。"
+ "description": "プロンプト token あたりの単価。"
},
"prompt_price_unit": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンの価格単位。"
+ "description": "プロンプト token の価格単位。"
},
"prompt_price": {
"type": "string",
"format": "decimal",
- "description": "プロンプトトークンの合計価格。"
+ "description": "プロンプト token の合計価格。"
},
"completion_tokens": {
"type": "integer",
- "description": "補完のトークン数。"
+ "description": "補完内の token 数。"
},
"completion_unit_price": {
"type": "string",
"format": "decimal",
- "description": "補完トークンあたりの単価。"
+ "description": "補完 token あたりの単価。"
},
"completion_price_unit": {
"type": "string",
"format": "decimal",
- "description": "補完トークンの価格単位。"
+ "description": "補完 token の価格単位。"
},
"completion_price": {
"type": "string",
"format": "decimal",
- "description": "補完トークンの合計価格。"
+ "description": "補完 token の合計価格。"
},
"total_tokens": {
"type": "integer",
- "description": "使用されたトークンの合計数。"
+ "description": "使用された token の合計数。"
},
"total_price": {
"type": "string",
"format": "decimal",
- "description": "すべてのトークンの合計価格。"
+ "description": "すべての token の合計価格。"
},
"currency": {
"type": "string",
- "description": "課金通貨。"
+ "description": "価格の通貨。"
},
"latency": {
"type": "number",
@@ -1756,20 +1756,20 @@
"dataset_id": {
"type": "string",
"format": "uuid",
- "description": "ナレッジベース ID。"
+ "description": "ナレッジベースの ID。"
},
"dataset_name": {
"type": "string",
- "description": "ナレッジベース名。"
+ "description": "ナレッジベースの名前。"
},
"document_id": {
"type": "string",
"format": "uuid",
- "description": "ドキュメント ID。"
+ "description": "ドキュメントの ID。"
},
"document_name": {
"type": "string",
- "description": "ドキュメント名。"
+ "description": "ドキュメントの名前。"
},
"data_source_type": {
"type": "string",
@@ -1867,7 +1867,7 @@
"original_url": {
"type": "string",
"nullable": true,
- "description": "ファイルの元の URL。"
+ "description": "ファイルのオリジナル URL。"
},
"user_id": {
"type": "string",
@@ -1915,12 +1915,12 @@
},
"type": {
"type": "string",
- "description": "エンドユーザーのタイプ。Service API ユーザーの場合は常に `service_api` です。"
+ "description": "エンドユーザータイプ。サービス API ユーザーの場合は常に `service_api` です。"
},
"external_user_id": {
"type": "string",
"nullable": true,
- "description": "API リクエストで提供された `user` 識別子です(例:[完了メッセージを送信](/api-reference/完了メッセージ/完了メッセージを送信) の `user` フィールド)。"
+ "description": "API リクエストで提供された `user` 識別子(例:[テキスト生成メッセージを送信](/api-reference/completions/send-completion-message) の `user` フィールド)。"
},
"name": {
"type": "string",
@@ -1929,7 +1929,7 @@
},
"is_anonymous": {
"type": "boolean",
- "description": "ユーザーが匿名かどうかを示します。元の API リクエストで `user` 識別子が提供されなかった場合、`true` になります。"
+ "description": "ユーザーが匿名かどうか。元の API リクエストで `user` 識別子が提供されなかった場合は `true` です。"
},
"session_id": {
"type": "string",
@@ -1962,15 +1962,15 @@
null
],
"nullable": true,
- "description": "フィードバック評価。以前送信したフィードバックを取り消すには `null` に設定します。"
+ "description": "フィードバック評価。以前に送信したフィードバックを取り消すには `null` に設定します。"
},
"user": {
"type": "string",
- "description": "ユーザー識別子。開発者が定義し、アプリケーション内での一意性を確保する必要があります。"
+ "description": "ユーザー識別子。開発者によって定義され、アプリケーション内での一意性を確保する必要があります。"
},
"content": {
"type": "string",
- "description": "追加の詳細を提供する任意のテキストフィードバック。"
+ "description": "追加の詳細を提供するオプションのテキストフィードバック。"
}
}
},
@@ -2017,11 +2017,11 @@
"content": {
"type": "string",
"nullable": true,
- "description": "任意のテキストフィードバック。"
+ "description": "オプションのテキストフィードバック。"
},
"from_source": {
"type": "string",
- "description": "フィードバックのソース。API 経由でエンドユーザーが送信したフィードバックの場合は `user`、コンソールから送信されたフィードバックの場合は `admin`。"
+ "description": "フィードバックソース。API 経由でエンドユーザーが送信したフィードバックの場合は `user`、コンソールから送信されたフィードバックの場合は `admin`。"
},
"from_end_user_id": {
"type": "string",
@@ -2057,7 +2057,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "音声ファイルです。対応形式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。上限:`30 MB`。"
+ "description": "音声ファイル。サポート:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。制限:`30 MB`。"
},
"user": {
"type": "string",
@@ -2076,12 +2076,12 @@
},
"TextToAudioRequest": {
"type": "object",
- "description": "テキストから音声への変換のリクエストボディ。`message_id` または `text` のいずれかを指定してください。",
+ "description": "テキストから音声への変換のリクエストボディ。`message_id` または `text` のいずれかを提供してください。",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
- "description": "メッセージ ID です。両方が指定された場合、`text` よりも優先されます。"
+ "description": "メッセージ ID。両方が提供された場合、`text` よりも優先されます。"
},
"text": {
"type": "string",
@@ -2093,7 +2093,7 @@
},
"voice": {
"type": "string",
- "description": "テキスト読み上げに使用する音声。利用可能な音声は、このアプリに設定された TTS プロバイダーによって異なります。デフォルトには[アプリケーションのパラメータ情報を取得](/api-reference/アプリケーション設定/アプリケーションのパラメータ情報を取得) → `text_to_speech.voice` の `voice` 値を使用してください。"
+ "description": "テキスト読み上げに使用する音声。利用可能な音声はこのアプリに設定された TTS プロバイダーによって異なります。デフォルトには [アプリパラメータを取得](/api-reference/applications/get-app-parameters) → `text_to_speech.voice` の `voice` 値を使用してください。"
},
"streaming": {
"type": "boolean",
@@ -2117,11 +2117,11 @@
"items": {
"type": "string"
},
- "description": "アプリケーションタグ。"
+ "description": "アプリケーションのタグ。"
},
"mode": {
"type": "string",
- "description": "アプリケーションモード。`completion` はテキスト生成アプリ、`chat` は基本チャットアプリ、`agent-chat` はエージェントベースのアプリ、`advanced-chat` は Chatflow アプリ、`workflow` はワークフローアプリです。"
+ "description": "アプリケーションモード。テキスト生成アプリの場合は `completion`、基本的なチャットアプリの場合は `chat`、エージェントベースのアプリの場合は `agent-chat`、チャットフローアプリの場合は `advanced-chat`、ワークフローアプリの場合は `workflow`。"
},
"author_name": {
"type": "string",
@@ -2141,7 +2141,7 @@
"items": {
"type": "string"
},
- "description": "推奨される初期質問のリスト。"
+ "description": "推奨される開始質問のリスト。"
},
"suggested_questions_after_answer": {
"type": "object",
@@ -2155,7 +2155,7 @@
},
"speech_to_text": {
"type": "object",
- "description": "音声からテキストへの変換設定。",
+ "description": "音声認識の設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -2165,7 +2165,7 @@
},
"text_to_speech": {
"type": "object",
- "description": "テキストから音声への変換設定。",
+ "description": "テキスト読み上げの設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -2201,7 +2201,7 @@
},
"annotation_reply": {
"type": "object",
- "description": "アノテーション返信の設定。",
+ "description": "注釈返信の設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -2221,7 +2221,7 @@
},
"sensitive_word_avoidance": {
"type": "object",
- "description": "センシティブワードフィルタリングの設定。",
+ "description": "機密語回避の設定。",
"properties": {
"enabled": {
"type": "boolean",
@@ -2250,7 +2250,7 @@
},
"number_limits": {
"type": "integer",
- "description": "最大画像数。"
+ "description": "画像の最大数。"
},
"detail": {
"type": "string",
@@ -2314,7 +2314,7 @@
]
},
"TextInputControlWrapper": {
- "title": "Text Input",
+ "title": "テキスト入力",
"type": "object",
"properties": {
"text-input": {
@@ -2323,7 +2323,7 @@
}
},
"ParagraphControlWrapper": {
- "title": "Paragraph",
+ "title": "段落",
"type": "object",
"properties": {
"paragraph": {
@@ -2332,7 +2332,7 @@
}
},
"SelectControlWrapper": {
- "title": "Select",
+ "title": "選択",
"type": "object",
"properties": {
"select": {
@@ -2395,18 +2395,18 @@
},
"required": {
"type": "boolean",
- "description": "送信前に選択を行う必要があるかどうか。"
+ "description": "送信前に選択する必要があるかどうか。"
},
"default": {
"type": "string",
- "description": "デフォルトで選択される値。"
+ "description": "デフォルトで選択された値。"
},
"options": {
"type": "array",
"items": {
"type": "string"
},
- "description": "このフォームコントロールの選択可能な値のリスト。"
+ "description": "このフォームコントロールで選択可能な値のリスト。"
}
}
},
@@ -2418,7 +2418,7 @@
"additionalProperties": {
"oneOf": [
{
- "title": "Icon URL",
+ "title": "アイコン URL",
"type": "string",
"format": "url",
"description": "アイコンの URL。"
@@ -2433,17 +2433,17 @@
}
},
"ToolIconDetail": {
- "title": "Emoji Icon",
+ "title": "絵文字アイコン",
"type": "object",
"description": "絵文字を使用したツールアイコンの詳細。",
"properties": {
"background": {
"type": "string",
- "description": "16進数形式の背景色。"
+ "description": "16進形式の背景色。"
},
"content": {
"type": "string",
- "description": "Emoji コンテンツ。"
+ "description": "絵文字コンテンツ。"
}
}
},
@@ -2460,15 +2460,15 @@
},
"chat_color_theme_inverted": {
"type": "boolean",
- "description": "チャットカラーテーマが反転しているかどうか。"
+ "description": "チャットカラーテーマが反転されているかどうか。"
},
"icon_type": {
"type": "string",
- "description": "使用されるアイコンのタイプ。`emoji` は絵文字アイコン、`image` はアップロードされた画像アイコンです。"
+ "description": "使用されるアイコンのタイプ。絵文字アイコンの場合は `emoji`、アップロードされた画像アイコンの場合は `image`。"
},
"icon": {
"type": "string",
- "description": "アイコンのコンテンツ(絵文字または画像 ID)。"
+ "description": "アイコンコンテンツ(絵文字または画像 ID)。"
},
"icon_background": {
"type": "string",
@@ -2490,7 +2490,7 @@
},
"privacy_policy": {
"type": "string",
- "description": "プライバシーポリシー URL。"
+ "description": "プライバシーポリシーの URL。"
},
"custom_disclaimer": {
"type": "string",
@@ -2498,7 +2498,7 @@
},
"default_language": {
"type": "string",
- "description": "デフォルト言語コード。"
+ "description": "デフォルトの言語コード。"
},
"show_workflow_steps": {
"type": "boolean",
@@ -2514,28 +2514,28 @@
},
"tags": [
{
- "name": "完了メッセージ",
- "description": "テキスト生成に関連する操作です。"
+ "name": "Completions",
+ "description": "テキスト生成と補完に関連する操作。"
},
{
- "name": "ファイル操作",
- "description": "ファイル管理に関連する操作です。"
+ "name": "Files",
+ "description": "ファイル管理に関連する操作。"
},
{
- "name": "エンドユーザー",
- "description": "エンドユーザー情報に関連する操作です。"
+ "name": "End Users",
+ "description": "エンドユーザー情報に関連する操作。"
},
{
- "name": "メッセージフィードバック",
- "description": "ユーザーフィードバックに関連する操作です。"
+ "name": "Feedback",
+ "description": "ユーザーフィードバックに関連する操作。"
},
{
- "name": "音声・テキスト変換",
- "description": "テキスト読み上げと音声認識に関連する操作です。"
+ "name": "TTS",
+ "description": "テキスト読み上げと音声認識に関連する操作。"
},
{
- "name": "アプリケーション設定",
- "description": "アプリケーション設定と情報を取得する操作です。"
+ "name": "Applications",
+ "description": "アプリケーション設定と情報を取得する操作。"
}
]
-}
+}
\ No newline at end of file
diff --git a/ja/api-reference/openapi_knowledge.json b/ja/api-reference/openapi_knowledge.json
index dd8064013..10052ceeb 100644
--- a/ja/api-reference/openapi_knowledge.json
+++ b/ja/api-reference/openapi_knowledge.json
@@ -1,14 +1,14 @@
{
"openapi": "3.0.1",
"info": {
- "title": "ナレッジAPI",
- "description": "ナレッジベース、ドキュメント、チャンク、メタデータ、タグの管理(作成、取得、設定を含む)のための API です。**注意:**単一のナレッジベース API キーは、同じアカウント配下のすべての可視ナレッジベースを操作する権限を持ちます。データセキュリティにご注意ください。",
+ "title": "ナレッジベース API",
+ "description": "ナレッジベース、ドキュメント、チャンク、メタデータ、タグの管理(作成、取得、設定を含む)のための API です。**注意:** 単一のナレッジベース API キーは、同じアカウント配下のすべての可視ナレッジベースを操作する権限を持ちます。データセキュリティにご注意ください。",
"version": "1.0.0"
},
"servers": [
{
"url": "{apiBaseUrl}",
- "description": "Knowledge API のベース URL です。",
+ "description": "ナレッジベース API のベース URL です。",
"variables": {
"apiBaseUrl": {
"default": "https://api.dify.ai/v1",
@@ -24,42 +24,42 @@
],
"tags": [
{
- "name": "データセット",
- "description": "ナレッジベースの作成、設定、取得を含むナレッジベース管理の操作です。"
+ "name": "Knowledge Bases",
+ "description": "ナレッジベースの作成、設定、取得を含む管理操作です。"
},
{
- "name": "ドキュメント",
- "description": "ナレッジベース内のドキュメントの作成、更新、管理のための操作です。"
+ "name": "Documents",
+ "description": "ナレッジベース内でのドキュメントの作成、更新、管理操作です。"
},
{
- "name": "チャンク",
- "description": "ドキュメントチャンクと子チャンクの管理のための操作です。"
+ "name": "Chunks",
+ "description": "ドキュメントのチャンクと子チャンクの管理操作です。"
},
{
- "name": "メタデータ",
- "description": "ナレッジベースのメタデータフィールドとドキュメントメタデータ値の管理のための操作です。"
+ "name": "Metadata",
+ "description": "ナレッジベースのメタデータフィールドとドキュメントのメタデータ値の管理操作です。"
},
{
- "name": "タグ管理",
- "description": "ナレッジベースタグとタグバインディングの管理のための操作です。"
+ "name": "Tags",
+ "description": "ナレッジベースのタグとタグバインディングの管理操作です。"
},
{
- "name": "モデル",
- "description": "利用可能なモデルを取得するための操作です。"
+ "name": "Models",
+ "description": "利用可能なモデルの取得操作です。"
},
{
- "name": "ナレッジパイプライン",
- "description": "データソースプラグインとパイプライン実行を含むナレッジパイプラインの管理と実行のための操作です。"
+ "name": "Knowledge Pipeline",
+ "description": "データソースプラグインやパイプライン実行を含む、ナレッジパイプラインの管理と実行操作です。"
}
],
"paths": {
"/datasets": {
"post": {
"tags": [
- "データセット"
+ "Knowledge Bases"
],
"summary": "空のナレッジベースを作成",
- "description": "新しい空のナレッジベースを作成します。作成後、[テキストからドキュメントを作成](/api-reference/ドキュメント/テキストからドキュメントを作成) または [ファイルからドキュメントを作成](/api-reference/ドキュメント/ファイルからドキュメントを作成) を使用してドキュメントを追加します。",
+ "description": "新しい空のナレッジベースを作成します。作成後、[テキストでドキュメントを作成](/api-reference/documents/create-document-by-text)または[ファイルでドキュメントを作成](/api-reference/documents/create-document-by-file)を使用してドキュメントを追加します。",
"operationId": "createDataset",
"requestBody": {
"required": true,
@@ -75,13 +75,13 @@
"type": "string",
"minLength": 1,
"maxLength": 40,
- "description": "ナレッジベース名。"
+ "description": "ナレッジベースの名前。"
},
"description": {
"type": "string",
"maxLength": 400,
"default": "",
- "description": "ナレッジベースの説明です。"
+ "description": "ナレッジベースの説明。"
},
"indexing_technique": {
"type": "string",
@@ -90,7 +90,7 @@
"economy"
],
"nullable": true,
- "description": "`high_quality` は埋め込みモデルを使用した精密検索、`economy` はキーワードベースのインデキシングです。"
+ "description": "`high_quality` は埋め込みモデルを使用して精密な検索を行います。`economy` はキーワードベースのインデックスを使用します。"
},
"permission": {
"type": "string",
@@ -100,7 +100,7 @@
"partial_members"
],
"default": "only_me",
- "description": "このナレッジベースにアクセスできるユーザーを制御します。`only_me` は作成者のみに制限、`all_team_members` はワークスペース全体にアクセスを許可、`partial_members` は指定されたメンバーにアクセスを許可します。"
+ "description": "このナレッジベースにアクセスできる人を制御します。`only_me` は作成者のみに制限、`all_team_members` はワークスペース全体にアクセスを許可、`partial_members` は指定されたメンバーにアクセスを許可します。"
},
"provider": {
"type": "string",
@@ -113,44 +113,44 @@
},
"embedding_model": {
"type": "string",
- "description": "埋め込みモデル名です。[利用可能なモデルを取得](/api-reference/モデル/利用可能なモデルを取得) で `model_type=text-embedding` を指定した際の `model` フィールドの値を使用します。"
+ "description": "埋め込みモデル名。[利用可能なモデルを取得](/api-reference/models/get-available-models)の `model_type=text-embedding` で `model` フィールドを使用してください。"
},
"embedding_model_provider": {
"type": "string",
- "description": "埋め込みモデルプロバイダーです。[利用可能なモデルを取得](/api-reference/モデル/利用可能なモデルを取得) で `model_type=text-embedding` を指定した際の `provider` フィールドの値を使用します。"
+ "description": "埋め込みモデルプロバイダー。[利用可能なモデルを取得](/api-reference/models/get-available-models)の `model_type=text-embedding` で `provider` フィールドを使用してください。"
},
"retrieval_model": {
"$ref": "#/components/schemas/RetrievalModel",
- "description": "検索モデルの設定です。このナレッジベースをクエリする際のチャンクの検索方法とランキング方法を制御します。"
+ "description": "検索モデル設定。このナレッジベースをクエリする際のチャンクの検索とランキング方法を制御します。"
},
"external_knowledge_api_id": {
"type": "string",
- "description": "外部ナレッジ API 接続の ID です。"
+ "description": "外部ナレッジ API 接続の ID。"
},
"external_knowledge_id": {
"type": "string",
- "description": "外部ナレッジベースの ID です。"
+ "description": "外部ナレッジベースの ID。"
},
"summary_index_setting": {
"type": "object",
"nullable": true,
- "description": "サマリーインデックスの設定です。",
+ "description": "要約インデックス設定。",
"properties": {
"enable": {
"type": "boolean",
- "description": "サマリーインデックスを有効にするかどうかです。"
+ "description": "要約インデックスを有効にするかどうか。"
},
"model_name": {
"type": "string",
- "description": "要約生成に使用されるモデルの名前です。"
+ "description": "要約生成に使用するモデルの名前。"
},
"model_provider_name": {
"type": "string",
- "description": "要約生成モデルのプロバイダーです。"
+ "description": "要約生成モデルのプロバイダー。"
},
"summary_prompt": {
"type": "string",
- "description": "要約生成用のカスタムプロンプトテンプレートです。"
+ "description": "要約生成用のカスタムプロンプトテンプレート。"
}
}
}
@@ -173,7 +173,7 @@
"value": {
"id": "c42e2a6e-40b3-4330-96f8-f1e4d768e8c9",
"name": "Product Documentation",
- "description": "プロダクト API 技術ドキュメント",
+ "description": "製品 API の技術ドキュメント",
"provider": "vendor",
"permission": "only_me",
"data_source_type": null,
@@ -225,7 +225,7 @@
}
},
"409": {
- "description": "`dataset_name_duplicate` : ナレッジベース名は既に存在します。名前を変更してください。",
+ "description": "`dataset_name_duplicate` : データセット名はすでに存在します。データセット名を変更してください。",
"content": {
"application/json": {
"examples": {
@@ -245,10 +245,10 @@
},
"get": {
"tags": [
- "データセット"
+ "Knowledge Bases"
],
- "summary": "ナレッジベースリストを取得",
- "description": "ナレッジベースのページネーションリストを返します。キーワードとタグによるフィルタリングをサポートしています。",
+ "summary": "ナレッジベース一覧を取得",
+ "description": "ナレッジベースのページネーションされた一覧を返します。キーワードとタグによるフィルタリングをサポートしています。",
"operationId": "listDatasets",
"parameters": [
{
@@ -267,7 +267,7 @@
"type": "integer",
"default": 20
},
- "description": "1 ページあたりの件数です。"
+ "description": "1 ページあたりのアイテム数。"
},
{
"name": "keyword",
@@ -275,7 +275,7 @@
"schema": {
"type": "string"
},
- "description": "名前でフィルタリングする検索キーワードです。"
+ "description": "名前でフィルタリングする検索キーワード。"
},
{
"name": "include_all",
@@ -284,7 +284,7 @@
"type": "boolean",
"default": false
},
- "description": "権限に関係なくすべてのナレッジベースを含めるかどうかです。"
+ "description": "権限に関係なくすべてのナレッジベースを含めるかどうか。"
},
{
"name": "tag_ids",
@@ -297,12 +297,12 @@
},
"style": "form",
"explode": true,
- "description": "フィルタリングに使用するタグ ID です。"
+ "description": "フィルタリングするタグ ID。"
}
],
"responses": {
"200": {
- "description": "ナレッジベースのリストです。",
+ "description": "ナレッジベースの一覧。",
"content": {
"application/json": {
"schema": {
@@ -310,26 +310,26 @@
"properties": {
"data": {
"type": "array",
- "description": "ナレッジベースオブジェクトの配列です。",
+ "description": "ナレッジベースオブジェクトの配列。",
"items": {
"$ref": "#/components/schemas/Dataset"
}
},
"has_more": {
"type": "boolean",
- "description": "次のページにさらに項目が存在するかどうかです。"
+ "description": "次のページにさらにアイテムが存在するかどうか。"
},
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1 ページあたりのアイテム数。"
},
"total": {
"type": "integer",
- "description": "一致する項目の合計数です。"
+ "description": "一致するアイテムの総数。"
},
"page": {
"type": "integer",
- "description": "現在のページ番号です。"
+ "description": "現在のページ番号。"
}
}
},
@@ -341,7 +341,7 @@
{
"id": "c42e2a6e-40b3-4330-96f8-f1e4d768e8c9",
"name": "Product Documentation",
- "description": "プロダクト API 技術ドキュメント",
+ "description": "製品 API の技術ドキュメント",
"provider": "vendor",
"permission": "only_me",
"data_source_type": null,
@@ -404,9 +404,9 @@
"/datasets/{dataset_id}": {
"get": {
"tags": [
- "データセット"
+ "Knowledge Bases"
],
- "summary": "ナレッジベース詳細を取得",
+ "summary": "ナレッジベースを取得",
"description": "特定のナレッジベースの詳細情報(埋め込みモデル、検索設定、ドキュメント統計を含む)を取得します。",
"operationId": "getDatasetDetail",
"parameters": [
@@ -418,12 +418,12 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"responses": {
"200": {
- "description": "ナレッジベースの詳細です。",
+ "description": "ナレッジベースの詳細。",
"content": {
"application/json": {
"schema": {
@@ -435,7 +435,7 @@
"value": {
"id": "c42e2a6e-40b3-4330-96f8-f1e4d768e8c9",
"name": "Product Documentation",
- "description": "プロダクト API 技術ドキュメント",
+ "description": "製品 API の技術ドキュメント",
"provider": "vendor",
"permission": "only_me",
"data_source_type": null,
@@ -504,7 +504,7 @@
}
},
"404": {
- "description": "`not_found` : ナレッジベースが見つかりません。",
+ "description": "`not_found` : データセットが見つかりません。",
"content": {
"application/json": {
"examples": {
@@ -524,10 +524,10 @@
},
"patch": {
"tags": [
- "データセット"
+ "Knowledge Bases"
],
"summary": "ナレッジベースを更新",
- "description": "既存のナレッジベースの名前、説明、権限、または検索設定を更新します。リクエストボディで指定されたフィールドのみが更新されます。",
+ "description": "既存のナレッジベースの名前、説明、権限、または検索設定を更新します。リクエストボディで提供されたフィールドのみが更新されます。",
"operationId": "updateDataset",
"parameters": [
{
@@ -538,7 +538,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"requestBody": {
@@ -552,12 +552,12 @@
"type": "string",
"minLength": 1,
"maxLength": 40,
- "description": "ナレッジベース名。"
+ "description": "ナレッジベースの名前。"
},
"description": {
"type": "string",
"maxLength": 400,
- "description": "ナレッジベースの説明です。"
+ "description": "ナレッジベースの説明。"
},
"indexing_technique": {
"type": "string",
@@ -566,7 +566,7 @@
"economy"
],
"nullable": true,
- "description": "`high_quality` は埋め込みモデルを使用した精密検索、`economy` はキーワードベースのインデキシングです。"
+ "description": "`high_quality` は埋め込みモデルを使用して精密な検索を行います。`economy` はキーワードベースのインデックスを使用します。"
},
"permission": {
"type": "string",
@@ -575,58 +575,58 @@
"all_team_members",
"partial_members"
],
- "description": "このナレッジベースにアクセスできるユーザーを制御します。`only_me` は作成者のみに制限、`all_team_members` はワークスペース全体にアクセスを許可、`partial_members` は指定されたメンバーにアクセスを許可します。"
+ "description": "このナレッジベースにアクセスできる人を制御します。`only_me` は作成者のみに制限、`all_team_members` はワークスペース全体にアクセスを許可、`partial_members` は指定されたメンバーにアクセスを許可します。"
},
"embedding_model": {
"type": "string",
- "description": "埋め込みモデル名です。[利用可能なモデルを取得](/api-reference/モデル/利用可能なモデルを取得) で `model_type=text-embedding` を指定した際の `model` フィールドの値を使用します。"
+ "description": "埋め込みモデル名。[利用可能なモデルを取得](/api-reference/models/get-available-models)の `model_type=text-embedding` で `model` フィールドを使用してください。"
},
"embedding_model_provider": {
"type": "string",
- "description": "埋め込みモデルプロバイダーです。[利用可能なモデルを取得](/api-reference/モデル/利用可能なモデルを取得) で `model_type=text-embedding` を指定した際の `provider` フィールドの値を使用します。"
+ "description": "埋め込みモデルプロバイダー。[利用可能なモデルを取得](/api-reference/models/get-available-models)の `model_type=text-embedding` で `provider` フィールドを使用してください。"
},
"retrieval_model": {
"$ref": "#/components/schemas/RetrievalModel",
- "description": "検索モデルの設定です。このナレッジベースをクエリする際のチャンクの検索方法とランキング方法を制御します。"
+ "description": "検索モデル設定。このナレッジベースをクエリする際のチャンクの検索とランキング方法を制御します。"
},
"partial_member_list": {
"type": "array",
- "description": "`permission` が `partial_members` の場合にアクセス権を持つチームメンバーのリストです。",
+ "description": "`permission` が `partial_members` の場合にアクセスできるチームメンバーのリスト。",
"items": {
"type": "object",
"properties": {
"user_id": {
"type": "string",
- "description": "アクセス権を付与するチームメンバーの ID です。"
+ "description": "アクセスを許可するチームメンバーの ID。"
}
}
}
},
"external_retrieval_model": {
"type": "object",
- "description": "外部ナレッジベースの検索設定です。",
+ "description": "外部ナレッジベースの検索設定。",
"properties": {
"top_k": {
"type": "integer",
- "description": "返す結果の最大数です。"
+ "description": "返す結果の最大数。"
},
"score_threshold": {
"type": "number",
- "description": "結果フィルタリング用の最小関連性スコア閾値です。"
+ "description": "結果をフィルタリングするための最小関連性スコアしきい値。"
},
"score_threshold_enabled": {
"type": "boolean",
- "description": "スコア閾値フィルタリングが有効かどうかです。"
+ "description": "スコアしきい値フィルタリングが有効かどうか。"
}
}
},
"external_knowledge_id": {
"type": "string",
- "description": "外部ナレッジベースの ID です。"
+ "description": "外部ナレッジベースの ID。"
},
"external_knowledge_api_id": {
"type": "string",
- "description": "外部ナレッジ API 接続の ID です。"
+ "description": "外部ナレッジ API 接続の ID。"
}
}
}
@@ -647,7 +647,7 @@
"value": {
"id": "c42e2a6e-40b3-4330-96f8-f1e4d768e8c9",
"name": "Product Documentation",
- "description": "プロダクト API 技術ドキュメント",
+ "description": "製品 API の技術ドキュメント",
"provider": "vendor",
"permission": "only_me",
"data_source_type": null,
@@ -716,7 +716,7 @@
}
},
"404": {
- "description": "`not_found` : ナレッジベースが見つかりません。",
+ "description": "`not_found` : データセットが見つかりません。",
"content": {
"application/json": {
"examples": {
@@ -736,10 +736,10 @@
},
"delete": {
"tags": [
- "データセット"
+ "Knowledge Bases"
],
"summary": "ナレッジベースを削除",
- "description": "ナレッジベースとそのすべてのドキュメントを完全に削除します。対象のナレッジベースはどのアプリケーションでも使用されていない必要があります。",
+ "description": "ナレッジベースとそのすべてのドキュメントを完全に削除します。ナレッジベースはどのアプリケーションでも使用されていない必要があります。",
"operationId": "deleteDataset",
"parameters": [
{
@@ -750,15 +750,15 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
},
"404": {
- "description": "`not_found` : ナレッジベースが見つかりません。",
+ "description": "`not_found` : データセットが見つかりません。",
"content": {
"application/json": {
"examples": {
@@ -775,7 +775,7 @@
}
},
"409": {
- "description": "`dataset_in_use` : このナレッジベースは一部のアプリで使用されています。削除する前にアプリから削除してください。",
+ "description": "`dataset_in_use` : このナレッジベースはいくつかのアプリで使用されています。削除する前にアプリから削除してください。",
"content": {
"application/json": {
"examples": {
@@ -797,10 +797,10 @@
"/datasets/{dataset_id}/document/create-by-text": {
"post": {
"tags": [
- "ドキュメント"
+ "Documents"
],
- "summary": "テキストからドキュメントを作成",
- "description": "テキストコンテンツからドキュメントを作成します。ドキュメントは非同期で処理されます——返された `batch` ID を [ドキュメント埋め込みステータス(進捗)を取得](/api-reference/ドキュメント/ドキュメント埋め込みステータス(進捗)を取得) で使用して進捗を追跡します。",
+ "summary": "テキストでドキュメントを作成",
+ "description": "生のテキストコンテンツからドキュメントを作成します。ドキュメントは非同期で処理されます。返された `batch` ID を[ドキュメントのインデックスステータスを取得](/api-reference/documents/get-document-indexing-status)で使用して進捗を追跡してください。",
"operationId": "createDocumentFromText",
"parameters": [
{
@@ -811,7 +811,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"requestBody": {
@@ -827,11 +827,11 @@
"properties": {
"name": {
"type": "string",
- "description": "ドキュメント名です。"
+ "description": "ドキュメント名。"
},
"text": {
"type": "string",
- "description": "ドキュメントのテキスト内容です。"
+ "description": "ドキュメントのテキストコンテンツ。"
},
"indexing_technique": {
"type": "string",
@@ -839,7 +839,7 @@
"high_quality",
"economy"
],
- "description": "ナレッジベースに最初のドキュメントを追加する際に必須です。以降のドキュメントでは省略するとナレッジベースのインデックス方式を継承します。`high_quality` は埋め込みモデルによる精密検索、`economy` はキーワードベースのインデックスを使用します。"
+ "description": "ナレッジベースに最初のドキュメントを追加する際に必須です。省略した場合、後続のドキュメントはナレッジベースのインデックス方法を継承します。`high_quality` は埋め込みモデルを使用して精密な検索を行います。`economy` はキーワードベースのインデックスを使用します。"
},
"doc_form": {
"type": "string",
@@ -849,16 +849,16 @@
"qa_model"
],
"default": "text_model",
- "description": "`text_model` は標準テキストチャンキング、`hierarchical_model` は親子チャンク構造、`qa_model` は質問・回答ペアの抽出です。"
+ "description": "`text_model` は標準的なテキストチャンキング、`hierarchical_model` は親子チャンク構造、`qa_model` は質問-回答ペアの抽出です。"
},
"doc_language": {
"type": "string",
"default": "English",
- "description": "処理最適化のためのドキュメント言語です。"
+ "description": "処理最適化のためのドキュメントの言語。"
},
"process_rule": {
"type": "object",
- "description": "チャンキングの処理ルールです。",
+ "description": "チャンキングの処理ルール。",
"required": [
"mode"
],
@@ -870,7 +870,7 @@
"custom",
"hierarchical"
],
- "description": "処理モードです。`automatic` は組み込みルールを使用、`custom` は手動設定が可能、`hierarchical` は親子チャンク構造を有効にします(`doc_form: hierarchical_model` と組み合わせて使用)。"
+ "description": "処理モード。`automatic` は組み込みルールを使用、`custom` は手動設定を許可、`hierarchical` は親子チャンク構造を有効にします(`doc_form: hierarchical_model` と併用)。"
},
"rules": {
"type": "object",
@@ -887,11 +887,11 @@
"remove_extra_spaces",
"remove_urls_emails"
],
- "description": "ルール識別子です。"
+ "description": "ルール識別子。"
},
"enabled": {
"type": "boolean",
- "description": "この前処理ルールが有効かどうかです。"
+ "description": "この前処理ルールが有効かどうか。"
}
}
}
@@ -902,16 +902,16 @@
"separator": {
"type": "string",
"default": "\n",
- "description": "テキスト分割用のカスタムセパレーターです。"
+ "description": "テキストを分割するためのカスタムデリミタ。"
},
"max_tokens": {
"type": "integer",
- "description": "チャンクあたりの最大トークン数です。"
+ "description": "チャンクあたりの最大 token 数。"
},
"chunk_overlap": {
"type": "integer",
"default": 0,
- "description": "チャンク間のトークンオーバーラップです。"
+ "description": "チャンク間の token オーバーラップ。"
}
}
}
@@ -921,19 +921,19 @@
},
"retrieval_model": {
"$ref": "#/components/schemas/RetrievalModel",
- "description": "検索モデルの設定です。このナレッジベースをクエリする際のチャンクの検索方法とランキング方法を制御します。"
+ "description": "検索モデル設定。このナレッジベースをクエリする際のチャンクの検索とランキング方法を制御します。"
},
"embedding_model": {
"type": "string",
- "description": "埋め込みモデル名です。[利用可能なモデルを取得](/api-reference/モデル/利用可能なモデルを取得) で `model_type=text-embedding` を指定した際の `model` フィールドの値を使用します。"
+ "description": "埋め込みモデル名。[利用可能なモデルを取得](/api-reference/models/get-available-models)の `model_type=text-embedding` で `model` フィールドを使用してください。"
},
"embedding_model_provider": {
"type": "string",
- "description": "埋め込みモデルプロバイダーです。[利用可能なモデルを取得](/api-reference/モデル/利用可能なモデルを取得) で `model_type=text-embedding` を指定した際の `provider` フィールドの値を使用します。"
+ "description": "埋め込みモデルプロバイダー。[利用可能なモデルを取得](/api-reference/models/get-available-models)の `model_type=text-embedding` で `provider` フィールドを使用してください。"
},
"original_document_id": {
"type": "string",
- "description": "バージョン管理用の元ドキュメント ID です。"
+ "description": "バージョン管理用の元のドキュメント ID。"
}
}
}
@@ -953,7 +953,7 @@
},
"batch": {
"type": "string",
- "description": "インデックス進捗を追跡するためのバッチ ID です。"
+ "description": "インデックス進捗を追跡するためのバッチ ID。"
}
}
},
@@ -1007,7 +1007,7 @@
}
},
"400": {
- "description": "- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 → モデルプロバイダーで認証情報を完了してください。\n- `invalid_param` : ナレッジベースが存在しません。/ indexing_technique は必須です。/ doc_form が無効です(`text_model`、`hierarchical_model`、または `qa_model` のいずれかである必要があります)。",
+ "description": "- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 -> モデルプロバイダーでプロバイダーの認証情報を完了してください。\n- `invalid_param` : ナレッジベースが存在しません。/ indexing_technique が必要です。/ 無効な doc_form(`text_model`、`hierarchical_model`、または `qa_model` である必要があります)。",
"content": {
"application/json": {
"examples": {
@@ -1045,10 +1045,10 @@
"/datasets/{dataset_id}/document/create-by-file": {
"post": {
"tags": [
- "ドキュメント"
+ "Documents"
],
- "summary": "ファイルからドキュメントを作成",
- "description": "ファイルをアップロードしてドキュメントを作成します。一般的なドキュメント形式(PDF、TXT、DOCX など)をサポートしています。処理は非同期で行われます——返された `batch` ID を [ドキュメント埋め込みステータス(進捗)を取得](/api-reference/ドキュメント/ドキュメント埋め込みステータス(進捗)を取得) で使用して進捗を追跡します。",
+ "summary": "ファイルでドキュメントを作成",
+ "description": "ファイルをアップロードしてドキュメントを作成します。一般的なドキュメント形式(PDF、TXT、DOCX など)をサポートしています。処理は非同期です。返された `batch` ID を[ドキュメントのインデックスステータスを取得](/api-reference/documents/get-document-indexing-status)で使用して進捗を追跡してください。",
"operationId": "createDocumentFromFile",
"parameters": [
{
@@ -1059,7 +1059,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"requestBody": {
@@ -1075,11 +1075,11 @@
"file": {
"type": "string",
"format": "binary",
- "description": "アップロードするファイルです。"
+ "description": "アップロードするファイル。"
},
"data": {
"type": "string",
- "description": "設定情報を含む JSON 文字列です。[テキストからドキュメントを作成](/api-reference/ドキュメント/テキストからドキュメントを作成) と同じフィールド(`indexing_technique`、`doc_form`、`doc_language`、`process_rule`、`retrieval_model`、`embedding_model`、`embedding_model_provider`)を受け付けますが、`name` と `text` は除きます。",
+ "description": "設定を含む JSON 文字列。[テキストでドキュメントを作成](/api-reference/documents/create-document-by-text)と同じフィールド(`indexing_technique`、`doc_form`、`doc_language`、`process_rule`、`retrieval_model`、`embedding_model`、`embedding_model_provider`)を受け付けます(`name` と `text` を除く)。",
"example": "{\"indexing_technique\":\"high_quality\",\"doc_form\":\"text_model\",\"doc_language\":\"English\",\"process_rule\":{\"mode\":\"automatic\"}}"
}
}
@@ -1100,7 +1100,7 @@
},
"batch": {
"type": "string",
- "description": "インデックス進捗を追跡するためのバッチ ID です。"
+ "description": "インデックス進捗を追跡するためのバッチ ID。"
}
}
},
@@ -1154,7 +1154,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : ファイルをアップロードしてください。\n- `too_many_files` : ファイルは 1 つのみ許可されています。\n- `filename_not_exists_error` : 指定されたファイル名が存在しません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 → モデルプロバイダーで認証情報を完了してください。\n- `invalid_param` : ナレッジベースが存在しない、外部データセットは非対応、ファイルが大きすぎる、サポートされていないファイルタイプ、必須フィールドが不足している、または doc_form が無効です(`text_model`、`hierarchical_model`、または `qa_model` のいずれかである必要があります)。",
+ "description": "- `no_file_uploaded` : ファイルをアップロードしてください。\n- `too_many_files` : ファイルは 1 つのみ許可されています。\n- `filename_not_exists_error` : 指定されたファイル名が存在しません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 -> モデルプロバイダーでプロバイダーの認証情報を完了してください。\n- `invalid_param` : ナレッジベースが存在しない、外部データセットはサポートされていない、ファイルが大きすぎる、サポートされていないファイルタイプ、必須フィールドが不足、または無効な doc_form(`text_model`、`hierarchical_model`、または `qa_model` である必要があります)。",
"content": {
"application/json": {
"examples": {
@@ -1248,10 +1248,10 @@
"/datasets/{dataset_id}/documents": {
"get": {
"tags": [
- "ドキュメント"
+ "Documents"
],
- "summary": "ナレッジベースのドキュメントリストを取得",
- "description": "ナレッジベース内のドキュメントのページネーションされた一覧を返します。キーワードやインデックスステータスによるフィルタリングをサポートしています。",
+ "summary": "ドキュメント一覧を取得",
+ "description": "ナレッジベース内のドキュメントのページネーションされた一覧を返します。キーワードとインデックスステータスによるフィルタリングをサポートしています。",
"operationId": "listDocuments",
"parameters": [
{
@@ -1262,7 +1262,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "page",
@@ -1280,7 +1280,7 @@
"type": "integer",
"default": 20
},
- "description": "1 ページあたりの項目数です。サーバーの上限は `100` です。"
+ "description": "1 ページあたりのアイテム数。サーバーは `100` を上限とします。"
},
{
"name": "keyword",
@@ -1288,7 +1288,7 @@
"schema": {
"type": "string"
},
- "description": "ドキュメント名でフィルタリングするための検索キーワードです。"
+ "description": "ドキュメント名でフィルタリングする検索キーワード。"
},
{
"name": "status",
@@ -1305,12 +1305,12 @@
"archived"
]
},
- "description": "表示ステータスでフィルタリングします。"
+ "description": "表示ステータスでフィルタリング。"
}
],
"responses": {
"200": {
- "description": "ドキュメントのリストです。",
+ "description": "ドキュメントの一覧。",
"content": {
"application/json": {
"schema": {
@@ -1318,26 +1318,26 @@
"properties": {
"data": {
"type": "array",
- "description": "ナレッジベースオブジェクトの配列です。",
+ "description": "ナレッジベースオブジェクトの配列。",
"items": {
"$ref": "#/components/schemas/Document"
}
},
"has_more": {
"type": "boolean",
- "description": "次のページにさらに項目が存在するかどうかです。"
+ "description": "次のページにさらにアイテムが存在するかどうか。"
},
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1 ページあたりのアイテム数。"
},
"total": {
"type": "integer",
- "description": "一致する項目の合計数です。"
+ "description": "一致するアイテムの総数。"
},
"page": {
"type": "integer",
- "description": "現在のページ番号です。"
+ "description": "現在のページ番号。"
}
}
},
@@ -1418,9 +1418,9 @@
"/datasets/{dataset_id}/documents/{document_id}": {
"get": {
"tags": [
- "ドキュメント"
+ "Documents"
],
- "summary": "ドキュメント詳細を取得",
+ "summary": "ドキュメントを取得",
"description": "特定のドキュメントの詳細情報(インデックスステータス、メタデータ、処理統計を含む)を取得します。",
"operationId": "getDocumentDetail",
"parameters": [
@@ -1432,7 +1432,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -1442,7 +1442,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "metadata",
@@ -1461,7 +1461,7 @@
],
"responses": {
"200": {
- "description": "ドキュメントの詳細です。レスポンスの形式は `metadata` クエリパラメータによって異なります。`metadata` が `only` の場合、`id`、`doc_type`、`doc_metadata` のみが返されます。`metadata` が `without` の場合、`doc_type` と `doc_metadata` は省略されます。",
+ "description": "ドキュメントの詳細。レスポンスの形式は `metadata` クエリパラメータに基づいて異なります。`metadata` が `only` の場合、`id`、`doc_type`、`doc_metadata` のみが返されます。`metadata` が `without` の場合、`doc_type` と `doc_metadata` は省略されます。",
"content": {
"application/json": {
"schema": {
@@ -1469,160 +1469,160 @@
"properties": {
"id": {
"type": "string",
- "description": "ドキュメント識別子です。"
+ "description": "ドキュメント識別子。"
},
"position": {
"type": "integer",
- "description": "ナレッジベース内の位置インデックスです。"
+ "description": "ナレッジベース内の位置インデックス。"
},
"data_source_type": {
"type": "string",
- "description": "ドキュメントのアップロード方法です。ファイルアップロードの場合は `upload_file`、Notion インポートの場合は `notion_import` です。"
+ "description": "ドキュメントのアップロード方法。`upload_file` はファイルアップロード、`notion_import` は Notion インポート。"
},
"data_source_info": {
"type": "object",
- "description": "生データソース情報です。"
+ "description": "生のデータソース情報。"
},
"dataset_process_rule_id": {
"type": "string",
- "description": "このドキュメントに適用された処理ルールの ID です。"
+ "description": "このドキュメントに適用された処理ルールの ID。"
},
"dataset_process_rule": {
"type": "object",
- "description": "ナレッジベースレベルの処理ルール設定です。"
+ "description": "ナレッジベースレベルの処理ルール設定。"
},
"document_process_rule": {
"type": "object",
- "description": "ドキュメントレベルの処理ルール設定です。"
+ "description": "ドキュメントレベルの処理ルール設定。"
},
"name": {
"type": "string",
- "description": "ドキュメント名です。"
+ "description": "ドキュメント名。"
},
"created_from": {
"type": "string",
- "description": "ドキュメントの作成元です。API で作成した場合は `api`、UI で作成した場合は `web` です。"
+ "description": "ドキュメントの作成元。`api` は API 作成、`web` は UI 作成。"
},
"created_by": {
"type": "string",
- "description": "ドキュメントを作成したユーザーの ID です。"
+ "description": "ドキュメントを作成したユーザーの ID。"
},
"created_at": {
"type": "number",
- "description": "ドキュメント作成の Unix タイムスタンプです。"
+ "description": "ドキュメント作成の Unix タイムスタンプ。"
},
"tokens": {
"type": "integer",
- "description": "ドキュメント内のトークン数です。"
+ "description": "ドキュメント内の token 数。"
},
"indexing_status": {
"type": "string",
- "description": "現在のインデックスステータスです(例:`waiting`、`parsing`、`cleaning`、`splitting`、`indexing`、`completed`、`error`、`paused`)。"
+ "description": "現在のインデックスステータス。例:`waiting`、`parsing`、`cleaning`、`splitting`、`indexing`、`completed`、`error`、`paused`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "インデックス作成が失敗した場合のエラーメッセージです。それ以外は `null` です。"
+ "description": "インデックスが失敗した場合のエラーメッセージ、それ以外は `null`。"
},
"enabled": {
"type": "boolean",
- "description": "このドキュメントが検索に対して有効かどうかです。"
+ "description": "ドキュメントが検索で有効かどうか。"
},
"disabled_at": {
"type": "number",
"nullable": true,
- "description": "ドキュメントが無効化された Unix タイムスタンプです。有効な場合は `null` です。"
+ "description": "ドキュメントが無効化された Unix タイムスタンプ、有効な場合は `null`。"
},
"disabled_by": {
"type": "string",
"nullable": true,
- "description": "ドキュメントを無効化したユーザーの ID です。有効な場合は `null` です。"
+ "description": "ドキュメントを無効化したユーザーの ID、有効な場合は `null`。"
},
"archived": {
"type": "boolean",
- "description": "ドキュメントがアーカイブ済みかどうかです。"
+ "description": "ドキュメントがアーカイブされているかどうか。"
},
"display_status": {
"type": "string",
- "description": "UI 向けの表示用インデックスステータスです。"
+ "description": "UI 向けの表示用インデックスステータス。"
},
"word_count": {
"type": "integer",
- "description": "ドキュメントの合計単語数です。"
+ "description": "ドキュメントの総単語数。"
},
"hit_count": {
"type": "integer",
- "description": "このドキュメントが検索された回数です。"
+ "description": "このドキュメントが検索された回数。"
},
"doc_form": {
"type": "string",
- "description": "ドキュメントのチャンキングモードです。`text_model` は標準テキスト、`hierarchical_model` は親子構造、`qa_model` は QA ペアを示します。"
+ "description": "ドキュメントのチャンキングモード。`text_model` は標準テキスト、`hierarchical_model` は親子構造、`qa_model` は QA ペア。"
},
"doc_language": {
"type": "string",
- "description": "ドキュメント内容の言語です。"
+ "description": "ドキュメントコンテンツの言語。"
},
"doc_type": {
"type": "string",
"nullable": true,
- "description": "ドキュメントタイプの分類です。未設定の場合は `null` です。"
+ "description": "ドキュメントタイプの分類、設定されていない場合は `null`。"
},
"doc_metadata": {
"type": "array",
+ "description": "このドキュメントのカスタムメタデータキーバリューペア。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "メタデータフィールドの識別子です。"
+ "description": "メタデータフィールド識別子。"
},
"name": {
"type": "string",
- "description": "メタデータフィールド名です。"
+ "description": "メタデータフィールド名。"
},
"type": {
"type": "string",
- "description": "メタデータフィールドの種類です。"
+ "description": "メタデータフィールドタイプ。"
},
"value": {
"type": "string",
"description": "このドキュメントのメタデータフィールド値。"
}
}
- },
- "description": "このドキュメントのカスタムメタデータキーバリューペア。"
+ }
},
"completed_at": {
"type": "number",
"nullable": true,
- "description": "処理が完了した Unix タイムスタンプです。まだ完了していない場合は `null` です。"
+ "description": "処理が完了した Unix タイムスタンプ、まだ完了していない場合は `null`。"
},
"updated_at": {
"type": "number",
"nullable": true,
- "description": "最終更新の Unix タイムスタンプです。更新されたことがない場合は `null` です。"
+ "description": "最終更新の Unix タイムスタンプ、更新されていない場合は `null`。"
},
"indexing_latency": {
"type": "number",
"nullable": true,
- "description": "インデックス作成にかかった時間(秒)です。未完了の場合は `null` です。"
+ "description": "インデックスにかかった時間(秒)、完了していない場合は `null`。"
},
"segment_count": {
"type": "integer",
- "description": "ドキュメント内のチャンク数です。"
+ "description": "ドキュメント内のチャンク数。"
},
"average_segment_length": {
"type": "number",
- "description": "チャンクの平均文字長です。"
+ "description": "チャンクの平均文字長。"
},
"summary_index_status": {
"type": "string",
"nullable": true,
- "description": "要約インデックスのステータスです。要約インデックスが有効でない場合は `null` です。"
+ "description": "要約インデックスのステータス、要約インデックスが有効でない場合は `null`。"
},
"need_summary": {
"type": "boolean",
- "description": "このドキュメントが要約生成を必要とするかどうかです。"
+ "description": "ドキュメントが要約生成を必要とするかどうか。"
}
}
},
@@ -1738,10 +1738,10 @@
},
"delete": {
"tags": [
- "ドキュメント"
+ "Documents"
],
"summary": "ドキュメントを削除",
- "description": "ナレッジベースからドキュメントとそのすべてのチャンクを完全に削除します。",
+ "description": "ドキュメントとそのすべてのチャンクをナレッジベースから完全に削除します。",
"operationId": "deleteDocument",
"parameters": [
{
@@ -1752,7 +1752,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -1762,15 +1762,15 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
}
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
},
"400": {
- "description": "`document_indexing` : インデキシング中はドキュメントを削除できません。",
+ "description": "`document_indexing` : インデックス中のドキュメントは削除できません。",
"content": {
"application/json": {
"examples": {
@@ -1826,11 +1826,11 @@
"/datasets/{dataset_id}/documents/{document_id}/download": {
"get": {
"tags": [
- "ドキュメント"
+ "Documents"
],
"summary": "ドキュメントをダウンロード",
"description": "ドキュメントの元のアップロードファイルの署名付きダウンロード URL を取得します。",
- "operationId": "downloadDocumentJa",
+ "operationId": "downloadDocument",
"parameters": [
{
"name": "dataset_id",
@@ -1840,7 +1840,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -1850,7 +1850,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
}
],
"responses": {
@@ -1863,7 +1863,7 @@
"properties": {
"url": {
"type": "string",
- "description": "元のアップロードファイルをダウンロードするための署名付き URL です。"
+ "description": "元のアップロードファイルをダウンロードするための署名付き URL。"
}
}
},
@@ -1918,10 +1918,10 @@
"/datasets/{dataset_id}/documents/{batch}/indexing-status": {
"get": {
"tags": [
- "ドキュメント"
+ "Documents"
],
- "summary": "ドキュメント埋め込みステータス(進捗)を取得",
- "description": "バッチ内のドキュメントのインデックス進捗を確認します。各ドキュメントの現在の処理段階とチャンク完了数を返します。`indexing_status` が `completed` または `error` に達するまでこのエンドポイントをポーリングしてください。ステータスは次の順序で進行します:`waiting` → `parsing` → `cleaning` → `splitting` → `indexing` → `completed`。",
+ "summary": "ドキュメントのインデックスステータスを取得",
+ "description": "バッチ内のドキュメントのインデックス進捗を確認します。各ドキュメントの現在の処理段階とチャンク完了数を返します。`indexing_status` が `completed` または `error` になるまでこのエンドポイントをポーリングしてください。ステータスは `waiting` → `parsing` → `cleaning` → `splitting` → `indexing` → `completed` の順に進行します。",
"operationId": "getDocumentIndexingStatus",
"parameters": [
{
@@ -1932,7 +1932,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "batch",
@@ -1941,12 +1941,12 @@
"schema": {
"type": "string"
},
- "description": "ドキュメント作成時に返されるバッチ ID です。"
+ "description": "ドキュメント作成から返されたバッチ ID。"
}
],
"responses": {
"200": {
- "description": "バッチ内のドキュメントのインデックス状態です。",
+ "description": "バッチ内のドキュメントのインデックスステータス。",
"content": {
"application/json": {
"schema": {
@@ -1954,63 +1954,63 @@
"properties": {
"data": {
"type": "array",
+ "description": "インデックスステータスエントリのリスト。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "ドキュメント識別子です。"
+ "description": "ドキュメント識別子。"
},
"indexing_status": {
"type": "string",
- "description": "現在のインデックスステータスです:`waiting`、`parsing`、`cleaning`、`splitting`、`indexing`、`completed`、または `error`。"
+ "description": "現在のインデックスステータス:`waiting`、`parsing`、`cleaning`、`splitting`、`indexing`、`completed`、または `error`。"
},
"processing_started_at": {
"type": "number",
- "description": "処理開始時の Unix タイムスタンプです。"
+ "description": "処理が開始された Unix タイムスタンプ。"
},
"parsing_completed_at": {
"type": "number",
- "description": "パース完了時の Unix タイムスタンプです。"
+ "description": "パースが完了した Unix タイムスタンプ。"
},
"cleaning_completed_at": {
"type": "number",
- "description": "クリーニング完了時の Unix タイムスタンプです。"
+ "description": "クリーニングが完了した Unix タイムスタンプ。"
},
"splitting_completed_at": {
"type": "number",
- "description": "分割完了時の Unix タイムスタンプです。"
+ "description": "分割が完了した Unix タイムスタンプ。"
},
"completed_at": {
"type": "number",
- "description": "インデックス完了時の Unix タイムスタンプです。"
+ "description": "インデックスが完了した Unix タイムスタンプ。"
},
"paused_at": {
"type": "number",
"nullable": true,
- "description": "インデキシングが一時停止されたタイムスタンプ。一時停止されていない場合は `null`。"
+ "description": "インデックスが一時停止されたタイムスタンプ。一時停止されていない場合は `null`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "インデキシングが失敗した場合のエラーメッセージ。エラーがない場合は `null`。"
+ "description": "インデックスが失敗した場合のエラーメッセージ。エラーがない場合は `null`。"
},
"stopped_at": {
"type": "number",
"nullable": true,
- "description": "インデキシングが停止されたタイムスタンプ。停止されていない場合は `null`。"
+ "description": "インデックスが停止されたタイムスタンプ。停止されていない場合は `null`。"
},
"completed_segments": {
"type": "integer",
- "description": "インデックス済みのチャンク数です。"
+ "description": "インデックス済みのチャンク数。"
},
"total_segments": {
"type": "integer",
- "description": "インデックス対象のチャンクの合計数です。"
+ "description": "インデックスするチャンクの総数。"
}
}
- },
- "description": "インデキシングステータスエントリのリスト。"
+ }
}
}
},
@@ -2071,10 +2071,10 @@
"/datasets/{dataset_id}/documents/{document_id}/update-by-text": {
"post": {
"tags": [
- "ドキュメント"
+ "Documents"
],
"summary": "テキストでドキュメントを更新",
- "description": "既存ドキュメントのテキストコンテンツ、名前、または処理設定を更新します。コンテンツが変更された場合はインデックスが再トリガーされます——返された `batch` ID を [ドキュメント埋め込みステータス(進捗)を取得](/api-reference/ドキュメント/ドキュメント埋め込みステータス(進捗)を取得) で使用して進捗を追跡します。",
+ "description": "既存のドキュメントのテキストコンテンツ、名前、または処理設定を更新します。コンテンツが変更された場合はインデックスが再トリガーされます。返された `batch` ID を[ドキュメントのインデックスステータスを取得](/api-reference/documents/get-document-indexing-status)で使用して進捗を追跡してください。",
"operationId": "updateDocumentByText",
"parameters": [
{
@@ -2085,7 +2085,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -2095,7 +2095,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
}
],
"requestBody": {
@@ -2107,15 +2107,15 @@
"properties": {
"name": {
"type": "string",
- "description": "ドキュメント名です。`text` を指定する場合は必須です。"
+ "description": "ドキュメント名。`text` が提供される場合は必須です。"
},
"text": {
"type": "string",
- "description": "ドキュメントのテキスト内容です。"
+ "description": "ドキュメントのテキストコンテンツ。"
},
"process_rule": {
"type": "object",
- "description": "チャンキングの処理ルールです。",
+ "description": "チャンキングの処理ルール。",
"required": [
"mode"
],
@@ -2127,7 +2127,7 @@
"custom",
"hierarchical"
],
- "description": "処理モードです。`automatic` は組み込みルールを使用、`custom` は手動設定が可能、`hierarchical` は親子チャンク構造を有効にします(`doc_form: hierarchical_model` と組み合わせて使用)。"
+ "description": "処理モード。`automatic` は組み込みルールを使用、`custom` は手動設定を許可、`hierarchical` は親子チャンク構造を有効にします(`doc_form: hierarchical_model` と併用)。"
},
"rules": {
"type": "object",
@@ -2144,11 +2144,11 @@
"remove_extra_spaces",
"remove_urls_emails"
],
- "description": "ルール識別子です。"
+ "description": "ルール識別子。"
},
"enabled": {
"type": "boolean",
- "description": "この前処理ルールが有効かどうかです。"
+ "description": "この前処理ルールが有効かどうか。"
}
}
}
@@ -2159,16 +2159,16 @@
"separator": {
"type": "string",
"default": "\n",
- "description": "テキスト分割用のカスタムセパレーターです。"
+ "description": "テキストを分割するためのカスタムデリミタ。"
},
"max_tokens": {
"type": "integer",
- "description": "チャンクあたりの最大トークン数です。"
+ "description": "チャンクあたりの最大 token 数。"
},
"chunk_overlap": {
"type": "integer",
"default": 0,
- "description": "チャンク間のトークンオーバーラップです。"
+ "description": "チャンク間の token オーバーラップ。"
}
}
}
@@ -2184,16 +2184,16 @@
"qa_model"
],
"default": "text_model",
- "description": "`text_model` は標準テキストチャンキング、`hierarchical_model` は親子チャンク構造、`qa_model` は質問・回答ペアの抽出です。"
+ "description": "`text_model` は標準的なテキストチャンキング、`hierarchical_model` は親子チャンク構造、`qa_model` は質問-回答ペアの抽出です。"
},
"doc_language": {
"type": "string",
"default": "English",
- "description": "処理最適化のためのドキュメント言語です。"
+ "description": "処理最適化のためのドキュメントの言語。"
},
"retrieval_model": {
"$ref": "#/components/schemas/RetrievalModel",
- "description": "検索モデルの設定です。このナレッジベースをクエリする際のチャンクの検索方法とランキング方法を制御します。"
+ "description": "検索モデル設定。このナレッジベースをクエリする際のチャンクの検索とランキング方法を制御します。"
}
}
}
@@ -2213,7 +2213,7 @@
},
"batch": {
"type": "string",
- "description": "インデックス進捗を追跡するためのバッチ ID です。"
+ "description": "インデックス進捗を追跡するためのバッチ ID。"
}
}
},
@@ -2267,7 +2267,7 @@
}
},
"400": {
- "description": "- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 → モデルプロバイダーで認証情報を完了してください。\n- `invalid_param` : ナレッジベースが存在しない、テキスト指定時は name が必須、または doc_form が無効です(`text_model`、`hierarchical_model`、または `qa_model` のいずれかである必要があります)。",
+ "description": "- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 -> モデルプロバイダーでプロバイダーの認証情報を完了してください。\n- `invalid_param` : ナレッジベースが存在しない、text が提供される場合は name が必要、または無効な doc_form(`text_model`、`hierarchical_model`、または `qa_model` である必要があります)。",
"content": {
"application/json": {
"examples": {
@@ -2305,10 +2305,10 @@
"/datasets/{dataset_id}/documents/{document_id}/update-by-file": {
"post": {
"tags": [
- "ドキュメント"
+ "Documents"
],
"summary": "ファイルでドキュメントを更新",
- "description": "新しいファイルをアップロードして既存のドキュメントを更新します。インデックスが再トリガーされます——返された `batch` ID を [ドキュメント埋め込みステータス(進捗)を取得](/api-reference/ドキュメント/ドキュメント埋め込みステータス(進捗)を取得) で使用して進捗を追跡します。",
+ "description": "新しいファイルをアップロードして既存のドキュメントを更新します。インデックスが再トリガーされます。返された `batch` ID を[ドキュメントのインデックスステータスを取得](/api-reference/documents/get-document-indexing-status)で使用して進捗を追跡してください。",
"operationId": "updateDocumentByFile",
"parameters": [
{
@@ -2319,7 +2319,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -2329,7 +2329,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
}
],
"requestBody": {
@@ -2342,11 +2342,11 @@
"file": {
"type": "string",
"format": "binary",
- "description": "アップロードするファイルです。"
+ "description": "アップロードするファイル。"
},
"data": {
"type": "string",
- "description": "設定情報を含む JSON 文字列です。[テキストからドキュメントを作成](/api-reference/ドキュメント/テキストからドキュメントを作成) と同じフィールド(`indexing_technique`、`doc_form`、`doc_language`、`process_rule`、`retrieval_model`、`embedding_model`、`embedding_model_provider`)を受け付けますが、`name` と `text` は除きます。",
+ "description": "設定を含む JSON 文字列。[テキストでドキュメントを作成](/api-reference/documents/create-document-by-text)と同じフィールド(`indexing_technique`、`doc_form`、`doc_language`、`process_rule`、`retrieval_model`、`embedding_model`、`embedding_model_provider`)を受け付けます(`name` と `text` を除く)。",
"example": "{\"indexing_technique\":\"high_quality\",\"doc_form\":\"text_model\",\"doc_language\":\"English\",\"process_rule\":{\"mode\":\"automatic\"}}"
}
}
@@ -2367,7 +2367,7 @@
},
"batch": {
"type": "string",
- "description": "インデックス進捗を追跡するためのバッチ ID です。"
+ "description": "インデックス進捗を追跡するためのバッチ ID。"
}
}
},
@@ -2421,7 +2421,7 @@
}
},
"400": {
- "description": "- `too_many_files` : ファイルは 1 つのみ許可されています。\n- `filename_not_exists_error` : 指定されたファイル名が存在しません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 → モデルプロバイダーで認証情報を完了してください。\n- `invalid_param` : ナレッジベースが存在しない、外部データセットは非対応、ファイルが大きすぎる、サポートされていないファイルタイプ、または doc_form が無効です(`text_model`、`hierarchical_model`、または `qa_model` のいずれかである必要があります)。",
+ "description": "- `too_many_files` : ファイルは 1 つのみ許可されています。\n- `filename_not_exists_error` : 指定されたファイル名が存在しません。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 -> モデルプロバイダーでプロバイダーの認証情報を完了してください。\n- `invalid_param` : ナレッジベースが存在しない、外部データセットはサポートされていない、ファイルが大きすぎる、サポートされていないファイルタイプ、または無効な doc_form(`text_model`、`hierarchical_model`、または `qa_model` である必要があります)。",
"content": {
"application/json": {
"examples": {
@@ -2491,11 +2491,11 @@
"/datasets/{dataset_id}/documents/download-zip": {
"post": {
"tags": [
- "ドキュメント"
+ "Documents"
],
- "summary": "ドキュメントを一括ダウンロード(ZIP)",
- "description": "複数のアップロードファイルドキュメントを単一の ZIP アーカイブとしてダウンロードします。最大 `100` 件のドキュメント ID を受け付けます。",
- "operationId": "downloadDocumentsZipJa",
+ "summary": "ドキュメントを ZIP としてダウンロード",
+ "description": "複数のアップロードファイルドキュメントを単一の ZIP アーカイブとしてダウンロードします。最大 `100` 個のドキュメント ID を受け付けます。",
+ "operationId": "downloadDocumentsZip",
"parameters": [
{
"name": "dataset_id",
@@ -2505,7 +2505,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"requestBody": {
@@ -2526,7 +2526,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ZIP アーカイブに含めるドキュメント ID の配列です。"
+ "description": "ZIP アーカイブに含めるドキュメント ID の配列。"
}
}
}
@@ -2535,19 +2535,19 @@
},
"responses": {
"200": {
- "description": "リクエストされたドキュメントを含む ZIP アーカイブです。",
+ "description": "リクエストされたドキュメントを含む ZIP アーカイブ。",
"content": {
"application/zip": {
"schema": {
"type": "string",
"format": "binary",
- "description": "ZIP アーカイブのバイナリストリームです。"
+ "description": "ZIP アーカイブバイナリストリーム。"
}
}
}
},
"403": {
- "description": "`forbidden` : 権限が不足しています。",
+ "description": "`forbidden` : 権限がありません。",
"content": {
"application/json": {
"examples": {
@@ -2564,7 +2564,7 @@
}
},
"404": {
- "description": "`not_found` : ドキュメントまたはナレッジベースが見つかりません。",
+ "description": "`not_found` : ドキュメントまたはデータセットが見つかりません。",
"content": {
"application/json": {
"examples": {
@@ -2586,10 +2586,10 @@
"/datasets/{dataset_id}/documents/status/{action}": {
"patch": {
"tags": [
- "ドキュメント"
+ "Documents"
],
"summary": "ドキュメントステータスを一括更新",
- "description": "複数のドキュメントを一括で有効化、無効化、アーカイブ、またはアーカイブ解除します。",
+ "description": "複数のドキュメントを一度に有効化、無効化、アーカイブ、またはアーカイブ解除します。",
"operationId": "batchUpdateDocumentStatus",
"parameters": [
{
@@ -2600,7 +2600,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "action",
@@ -2615,7 +2615,7 @@
"un_archive"
]
},
- "description": "`enable` で有効化、`disable` で無効化、`archive` でアーカイブ、`un_archive` でアーカイブから復元します。"
+ "description": "`enable` は有効化、`disable` は無効化、`archive` はアーカイブ、`un_archive` はアーカイブから復元。"
}
],
"requestBody": {
@@ -2633,7 +2633,7 @@
"items": {
"type": "string"
},
- "description": "更新するドキュメント ID のリストです。"
+ "description": "更新するドキュメント ID のリスト。"
}
}
}
@@ -2650,7 +2650,7 @@
"properties": {
"result": {
"type": "string",
- "description": "操作結果です。"
+ "description": "操作結果。"
}
}
},
@@ -2683,7 +2683,7 @@
}
},
"403": {
- "description": "`forbidden` : 権限が不足しています。",
+ "description": "`forbidden` : 権限がありません。",
"content": {
"application/json": {
"examples": {
@@ -2722,9 +2722,9 @@
"/datasets/{dataset_id}/documents/{document_id}/segments": {
"post": {
"tags": [
- "チャンク"
+ "Chunks"
],
- "summary": "ドキュメントにチャンクを追加",
+ "summary": "チャンクを作成",
"description": "ドキュメント内に 1 つ以上のチャンクを作成します。各チャンクにはオプションのキーワードと回答フィールド(QA モードドキュメント用)を含めることができます。",
"operationId": "createSegments",
"parameters": [
@@ -2736,7 +2736,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -2746,7 +2746,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
}
],
"requestBody": {
@@ -2766,29 +2766,29 @@
"properties": {
"content": {
"type": "string",
- "description": "チャンクのテキスト内容です。"
+ "description": "チャンクのテキストコンテンツ。"
},
"answer": {
"type": "string",
- "description": "QA モードの回答内容です。"
+ "description": "QA モード用の回答コンテンツ。"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
},
- "description": "チャンクのキーワードです。"
+ "description": "チャンクのキーワード。"
},
"attachment_ids": {
"type": "array",
"items": {
"type": "string"
},
- "description": "添付ファイル ID です。"
+ "description": "添付ファイル ID。"
}
}
},
- "description": "作成するチャンクオブジェクトの配列です。"
+ "description": "作成するチャンクオブジェクトの配列。"
}
}
}
@@ -2805,14 +2805,14 @@
"properties": {
"data": {
"type": "array",
+ "description": "作成されたチャンクのリスト。",
"items": {
"$ref": "#/components/schemas/Segment"
- },
- "description": "作成されたチャンクのリスト。"
+ }
},
"doc_form": {
"type": "string",
- "description": "このドキュメントが使用するドキュメントチャンキングモードです。"
+ "description": "このドキュメントで使用されているドキュメントチャンキングモード。"
}
}
},
@@ -2863,7 +2863,7 @@
}
},
"404": {
- "description": "`not_found` : ドキュメントが完了していないか、無効になっています。",
+ "description": "`not_found` : ドキュメントが完了していないか無効です。",
"content": {
"application/json": {
"examples": {
@@ -2891,10 +2891,10 @@
},
"get": {
"tags": [
- "チャンク"
+ "Chunks"
],
"summary": "チャンク一覧を取得",
- "description": "ドキュメント内のチャンクのページネーションリストを返します。キーワードとステータスによるフィルタリングをサポートしています。",
+ "description": "ドキュメント内のチャンクのページネーションされた一覧を返します。キーワードとステータスによるフィルタリングをサポートしています。",
"operationId": "listSegments",
"parameters": [
{
@@ -2905,7 +2905,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -2915,7 +2915,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "page",
@@ -2933,7 +2933,7 @@
"type": "integer",
"default": 20
},
- "description": "1 ページあたりの項目数です。サーバーの上限は `100` です。"
+ "description": "1 ページあたりのアイテム数。サーバーは `100` を上限とします。"
},
{
"name": "status",
@@ -2946,7 +2946,7 @@
},
"style": "form",
"explode": true,
- "description": "インデックスステータスでチャンクをフィルタリングします(例:`completed`、`indexing`、`error`)。"
+ "description": "インデックスステータスでチャンクをフィルタリング。例:`completed`、`indexing`、`error`。"
},
{
"name": "keyword",
@@ -2954,12 +2954,12 @@
"schema": {
"type": "string"
},
- "description": "検索キーワードです。"
+ "description": "検索キーワード。"
}
],
"responses": {
"200": {
- "description": "チャンクのリストです。",
+ "description": "チャンクの一覧。",
"content": {
"application/json": {
"schema": {
@@ -2967,30 +2967,30 @@
"properties": {
"data": {
"type": "array",
+ "description": "チャンクのリスト。",
"items": {
"$ref": "#/components/schemas/Segment"
- },
- "description": "チャンクのリスト。"
+ }
},
"doc_form": {
"type": "string",
- "description": "このドキュメントが使用するドキュメントチャンキングモードです。"
+ "description": "このドキュメントで使用されているドキュメントチャンキングモード。"
},
"total": {
"type": "integer",
- "description": "一致するチャンクの合計数です。"
+ "description": "一致するチャンクの総数。"
},
"has_more": {
"type": "boolean",
- "description": "次のページにさらに項目が存在するかどうかです。"
+ "description": "次のページにさらにアイテムが存在するかどうか。"
},
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1 ページあたりのアイテム数。"
},
"page": {
"type": "integer",
- "description": "現在のページ番号です。"
+ "description": "現在のページ番号。"
}
}
},
@@ -3050,10 +3050,10 @@
"/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}": {
"get": {
"tags": [
- "チャンク"
+ "Chunks"
],
- "summary": "ドキュメント内のチャンク詳細を取得",
- "description": "特定のチャンクの詳細情報(内容、キーワード、インデックスステータスを含む)を取得します。",
+ "summary": "チャンクを取得",
+ "description": "特定のチャンクの詳細情報(コンテンツ、キーワード、インデックスステータスを含む)を取得します。",
"operationId": "getSegmentDetail",
"parameters": [
{
@@ -3064,7 +3064,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -3074,7 +3074,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "segment_id",
@@ -3084,12 +3084,12 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "チャンク ID。"
}
],
"responses": {
"200": {
- "description": "チャンクの詳細です。",
+ "description": "チャンクの詳細。",
"content": {
"application/json": {
"schema": {
@@ -3100,7 +3100,7 @@
},
"doc_form": {
"type": "string",
- "description": "このドキュメントが使用するドキュメントチャンキングモードです。"
+ "description": "このドキュメントで使用されているドキュメントチャンキングモード。"
}
}
},
@@ -3152,10 +3152,10 @@
},
"post": {
"tags": [
- "チャンク"
+ "Chunks"
],
- "summary": "ドキュメント内のチャンクを更新",
- "description": "チャンクのコンテンツ、キーワード、または回答を更新します。変更されたチャンクのインデックス作成が再トリガーされます。",
+ "summary": "チャンクを更新",
+ "description": "チャンクのコンテンツ、キーワード、または回答を更新します。変更されたチャンクのインデックスが再トリガーされます。",
"operationId": "updateSegment",
"parameters": [
{
@@ -3166,7 +3166,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -3176,7 +3176,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "segment_id",
@@ -3186,7 +3186,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "チャンク ID。"
}
],
"requestBody": {
@@ -3204,42 +3204,42 @@
"properties": {
"content": {
"type": "string",
- "description": "チャンクのテキスト内容です。"
+ "description": "チャンクのテキストコンテンツ。"
},
"answer": {
"type": "string",
- "description": "QA モードの回答内容です。"
+ "description": "QA モード用の回答コンテンツ。"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
},
- "description": "チャンクのキーワードです。"
+ "description": "チャンクのキーワード。"
},
"enabled": {
"type": "boolean",
- "description": "チャンクが有効かどうかです。"
+ "description": "チャンクが有効かどうか。"
},
"regenerate_child_chunks": {
"type": "boolean",
"default": false,
- "description": "子チャンクを再生成するかどうかです。"
+ "description": "子チャンクを再生成するかどうか。"
},
"attachment_ids": {
"type": "array",
"items": {
"type": "string"
},
- "description": "添付ファイル ID です。"
+ "description": "添付ファイル ID。"
},
"summary": {
"type": "string",
"nullable": true,
- "description": "サマリーインデックスのサマリー内容です。"
+ "description": "要約インデックス用の要約コンテンツ。"
}
},
- "description": "更新するチャンクデータです。"
+ "description": "更新するチャンクデータ。"
}
}
}
@@ -3259,7 +3259,7 @@
},
"doc_form": {
"type": "string",
- "description": "このドキュメントが使用するドキュメントチャンキングモードです。"
+ "description": "このドキュメントで使用されているドキュメントチャンキングモード。"
}
}
},
@@ -3311,9 +3311,9 @@
},
"delete": {
"tags": [
- "チャンク"
+ "Chunks"
],
- "summary": "ドキュメント内のチャンクを削除",
+ "summary": "チャンクを削除",
"description": "ドキュメントからチャンクを完全に削除します。",
"operationId": "deleteSegment",
"parameters": [
@@ -3325,7 +3325,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -3335,7 +3335,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "segment_id",
@@ -3345,12 +3345,12 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "チャンク ID。"
}
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -3358,10 +3358,10 @@
"/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks": {
"post": {
"tags": [
- "チャンク"
+ "Chunks"
],
"summary": "子チャンクを作成",
- "description": "親チャンクの下に子チャンクを作成します。`hierarchical_model` チャンキングモードを使用しているドキュメントでのみ利用可能です。",
+ "description": "親チャンクの下に子チャンクを作成します。`hierarchical_model` チャンキングモードを使用するドキュメントでのみ利用可能です。",
"operationId": "createChildChunk",
"parameters": [
{
@@ -3372,7 +3372,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -3382,7 +3382,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "segment_id",
@@ -3392,7 +3392,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "チャンク ID。"
}
],
"requestBody": {
@@ -3407,7 +3407,7 @@
"properties": {
"content": {
"type": "string",
- "description": "子チャンクのテキスト内容です。"
+ "description": "子チャンクのテキストコンテンツ。"
}
}
}
@@ -3468,10 +3468,10 @@
},
"get": {
"tags": [
- "チャンク"
+ "Chunks"
],
"summary": "子チャンク一覧を取得",
- "description": "特定の親チャンク配下の子チャンクのページネーションリストを返します。",
+ "description": "特定の親チャンクの下にある子チャンクのページネーションされた一覧を返します。",
"operationId": "getChildChunks",
"parameters": [
{
@@ -3482,7 +3482,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -3492,7 +3492,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "segment_id",
@@ -3502,7 +3502,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "チャンク ID。"
},
{
"name": "page",
@@ -3522,7 +3522,7 @@
"default": 20,
"minimum": 1
},
- "description": "1 ページあたりの項目数です。サーバーの上限は `100` です。"
+ "description": "1 ページあたりのアイテム数。サーバーは `100` を上限とします。"
},
{
"name": "keyword",
@@ -3530,12 +3530,12 @@
"schema": {
"type": "string"
},
- "description": "検索キーワードです。"
+ "description": "検索キーワード。"
}
],
"responses": {
"200": {
- "description": "子チャンクのリストです。",
+ "description": "子チャンクの一覧。",
"content": {
"application/json": {
"schema": {
@@ -3543,26 +3543,26 @@
"properties": {
"data": {
"type": "array",
+ "description": "子チャンクのリスト。",
"items": {
"$ref": "#/components/schemas/ChildChunk"
- },
- "description": "子チャンクのリスト。"
+ }
},
"total": {
"type": "integer",
- "description": "子チャンクの合計数です。"
+ "description": "子チャンクの総数。"
},
"total_pages": {
"type": "integer",
- "description": "合計ページ数です。"
+ "description": "総ページ数。"
},
"page": {
"type": "integer",
- "description": "現在のページ番号です。"
+ "description": "現在のページ番号。"
},
"limit": {
"type": "integer",
- "description": "1 ページあたりの件数です。"
+ "description": "1 ページあたりのアイテム数。"
}
}
},
@@ -3598,7 +3598,7 @@
"/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks/{child_chunk_id}": {
"patch": {
"tags": [
- "チャンク"
+ "Chunks"
],
"summary": "子チャンクを更新",
"description": "既存の子チャンクのコンテンツを更新します。",
@@ -3612,7 +3612,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -3622,7 +3622,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "segment_id",
@@ -3632,7 +3632,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "チャンク ID。"
},
{
"name": "child_chunk_id",
@@ -3642,7 +3642,7 @@
"type": "string",
"format": "uuid"
},
- "description": "子チャンク ID です。"
+ "description": "子チャンク ID。"
}
],
"requestBody": {
@@ -3657,7 +3657,7 @@
"properties": {
"content": {
"type": "string",
- "description": "子チャンクのテキスト内容です。"
+ "description": "子チャンクのテキストコンテンツ。"
}
}
}
@@ -3718,7 +3718,7 @@
},
"delete": {
"tags": [
- "チャンク"
+ "Chunks"
],
"summary": "子チャンクを削除",
"description": "親チャンクから子チャンクを完全に削除します。",
@@ -3732,7 +3732,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "document_id",
@@ -3742,7 +3742,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Document ID."
+ "description": "ドキュメント ID。"
},
{
"name": "segment_id",
@@ -3752,7 +3752,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "チャンク ID。"
},
{
"name": "child_chunk_id",
@@ -3762,12 +3762,12 @@
"type": "string",
"format": "uuid"
},
- "description": "子チャンク ID です。"
+ "description": "子チャンク ID。"
}
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
},
"400": {
"description": "`invalid_param` : 子チャンクインデックスの削除に失敗しました。",
@@ -3792,10 +3792,10 @@
"/datasets/{dataset_id}/retrieve": {
"post": {
"tags": [
- "データセット"
+ "Knowledge Bases"
],
- "summary": "ナレッジベースからチャンクを取得 / テスト検索",
- "description": "ナレッジベースに対して検索クエリを実行し、最も関連性の高いチャンクを取得します。このエンドポイントは本番環境の検索とテスト検索の両方に使用できます。",
+ "summary": "ナレッジベースからチャンクを検索 / 検索テスト",
+ "description": "ナレッジベースに対して検索クエリを実行し、最も関連性の高いチャンクを取得します。このエンドポイントは本番環境での検索と検索テストの両方に使用できます。",
"operationId": "retrieveSegments",
"parameters": [
{
@@ -3806,7 +3806,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"requestBody": {
@@ -3822,27 +3822,27 @@
"query": {
"type": "string",
"maxLength": 250,
- "description": "検索クエリテキストです。"
+ "description": "検索クエリテキスト。"
},
"retrieval_model": {
"$ref": "#/components/schemas/RetrievalModel",
- "description": "検索モデルの設定です。このナレッジベースをクエリする際のチャンクの検索方法とランキング方法を制御します。"
+ "description": "検索モデル設定。このナレッジベースをクエリする際のチャンクの検索とランキング方法を制御します。"
},
"external_retrieval_model": {
"type": "object",
- "description": "外部ナレッジベースの検索設定です。",
+ "description": "外部ナレッジベースの検索設定。",
"properties": {
"top_k": {
"type": "integer",
- "description": "返す結果の最大数です。"
+ "description": "返す結果の最大数。"
},
"score_threshold": {
"type": "number",
- "description": "結果フィルタリング用の最小関連性スコア閾値です。"
+ "description": "結果をフィルタリングするための最小関連性スコアしきい値。"
},
"score_threshold_enabled": {
"type": "boolean",
- "description": "スコア閾値フィルタリングが有効かどうかです。"
+ "description": "スコアしきい値フィルタリングが有効かどうか。"
}
}
},
@@ -3852,7 +3852,7 @@
"type": "string"
},
"nullable": true,
- "description": "検索コンテキストに含める添付ファイル ID のリストです。"
+ "description": "検索コンテキストに含める添付ファイル ID のリスト。"
}
}
}
@@ -3861,7 +3861,7 @@
},
"responses": {
"200": {
- "description": "検索結果です。",
+ "description": "検索結果。",
"content": {
"application/json": {
"schema": {
@@ -3869,26 +3869,27 @@
"properties": {
"query": {
"type": "object",
- "description": "元のクエリオブジェクトです。",
+ "description": "元のクエリオブジェクト。",
"properties": {
"content": {
"type": "string",
- "description": "クエリテキストです。"
+ "description": "クエリテキスト。"
}
}
},
"records": {
"type": "array",
+ "description": "一致した検索レコードのリスト。",
"items": {
"type": "object",
"properties": {
"segment": {
"type": "object",
- "description": "ナレッジベースから一致したチャンクです。",
+ "description": "ナレッジベースから一致したチャンク。",
"properties": {
"id": {
"type": "string",
- "description": "チャンクの一意識別子です。"
+ "description": "チャンクの一意識別子。"
},
"position": {
"type": "integer",
@@ -3896,118 +3897,118 @@
},
"document_id": {
"type": "string",
- "description": "このチャンクが属するドキュメントの ID です。"
+ "description": "このチャンクが属するドキュメントの ID。"
},
"content": {
"type": "string",
- "description": "チャンクのテキスト内容です。"
+ "description": "チャンクのテキストコンテンツ。"
},
"sign_content": {
"type": "string",
- "description": "整合性検証用の署名付きコンテンツハッシュです。"
+ "description": "整合性検証用の署名付きコンテンツハッシュ。"
},
"answer": {
"type": "string",
- "description": "回答コンテンツです。Q&A モードのドキュメントで使用されます。"
+ "description": "Q&A モードドキュメントで使用される回答コンテンツ。"
},
"word_count": {
"type": "integer",
- "description": "チャンク内容の単語数です。"
+ "description": "チャンクコンテンツの単語数。"
},
"tokens": {
"type": "integer",
- "description": "チャンク内容のトークン数です。"
+ "description": "チャンクコンテンツの token 数。"
},
"keywords": {
"type": "array",
- "description": "キーワードベースの検索のためにこのチャンクに関連付けられたキーワードです。",
+ "description": "キーワードベースの検索に関連付けられたキーワード。",
"items": {
"type": "string"
}
},
"index_node_id": {
"type": "string",
- "description": "ベクトルストア内のインデックスノードの ID です。"
+ "description": "ベクトルストア内のインデックスノードの ID。"
},
"index_node_hash": {
"type": "string",
- "description": "インデックスされたコンテンツのハッシュです。変更の検出に使用されます。"
+ "description": "変更を検出するために使用されるインデックス済みコンテンツのハッシュ。"
},
"hit_count": {
"type": "integer",
- "description": "このチャンクが検索クエリでマッチした回数です。"
+ "description": "このチャンクが検索クエリで一致した回数。"
},
"enabled": {
"type": "boolean",
- "description": "このチャンクが検索に対して有効かどうかです。"
+ "description": "チャンクが検索で有効かどうか。"
},
"disabled_at": {
"type": "number",
"nullable": true,
- "description": "チャンクが無効化されたタイムスタンプです。有効な場合は `null` です。"
+ "description": "チャンクが無効化されたタイムスタンプ。有効な場合は `null`。"
},
"disabled_by": {
"type": "string",
"nullable": true,
- "description": "チャンクを無効化したユーザーの ID です。有効な場合は `null` です。"
+ "description": "チャンクを無効化したユーザーの ID。有効な場合は `null`。"
},
"status": {
"type": "string",
- "description": "チャンクのインデックスステータスです。"
+ "description": "チャンクのインデックスステータス。"
},
"created_by": {
"type": "string",
- "description": "チャンクを作成したユーザーの ID です。"
+ "description": "チャンクを作成したユーザーの ID。"
},
"created_at": {
"type": "number",
- "description": "作成タイムスタンプ(Unix エポック、秒単位)です。"
+ "description": "作成タイムスタンプ(Unix エポック秒)。"
},
"indexing_at": {
"type": "number",
"nullable": true,
- "description": "インデックス作成が開始されたタイムスタンプです。まだ開始されていない場合は `null` です。"
+ "description": "インデックスが開始されたタイムスタンプ。まだ開始されていない場合は `null`。"
},
"completed_at": {
"type": "number",
"nullable": true,
- "description": "インデックス作成が完了したタイムスタンプです。まだ完了していない場合は `null` です。"
+ "description": "インデックスが完了したタイムスタンプ。まだ完了していない場合は `null`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "インデックス作成が失敗した場合のエラーメッセージです。エラーなしの場合は `null` です。"
+ "description": "インデックスが失敗した場合のエラーメッセージ。エラーがない場合は `null`。"
},
"stopped_at": {
"type": "number",
"nullable": true,
- "description": "インデックス作成が停止されたタイムスタンプです。停止されていない場合は `null` です。"
+ "description": "インデックスが停止されたタイムスタンプ。停止されていない場合は `null`。"
},
"document": {
"type": "object",
- "description": "マッチしたチャンクの親ドキュメント情報です。",
+ "description": "一致したチャンクの親ドキュメント情報。",
"properties": {
"id": {
"type": "string",
- "description": "ドキュメントの一意識別子です。"
+ "description": "ドキュメントの一意識別子。"
},
"data_source_type": {
"type": "string",
- "description": "ドキュメントの作成方法です。"
+ "description": "ドキュメントの作成方法。"
},
"name": {
"type": "string",
- "description": "ドキュメント名です。"
+ "description": "ドキュメント名。"
},
"doc_type": {
"type": "string",
"nullable": true,
- "description": "ドキュメントタイプの分類です。未設定の場合は `null` です。"
+ "description": "ドキュメントタイプの分類。設定されていない場合は `null`。"
},
"doc_metadata": {
"type": "object",
"nullable": true,
- "description": "ドキュメントのメタデータ値です。メタデータが設定されていない場合は `null` です。"
+ "description": "ドキュメントのメタデータ値。メタデータが設定されていない場合は `null`。"
}
}
}
@@ -4015,51 +4016,51 @@
},
"child_chunks": {
"type": "array",
- "description": "階層インデックスを使用している場合、チャンク内でマッチした子チャンクです。",
+ "description": "階層インデックスを使用している場合の、チャンク内の一致した子チャンク。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "子チャンクの一意識別子です。"
+ "description": "子チャンクの一意識別子。"
},
"content": {
"type": "string",
- "description": "子チャンクのテキスト内容です。"
+ "description": "子チャンクのテキストコンテンツ。"
},
"position": {
"type": "integer",
- "description": "親チャンク内の子チャンクの位置です。"
+ "description": "親チャンク内の子チャンクの位置。"
},
"score": {
"type": "number",
- "description": "子チャンクの関連性スコアです。"
+ "description": "子チャンクの関連性スコア。"
}
}
}
},
"score": {
"type": "number",
- "description": "関連性スコアです。"
+ "description": "関連性スコア。"
},
"tsne_position": {
"type": "object",
"nullable": true,
- "description": "t-SNE 可視化の位置です。"
+ "description": "t-SNE 可視化位置。"
},
"files": {
"type": "array",
- "description": "このチャンクに添付されたファイルです。",
+ "description": "このチャンクに添付されたファイル。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "添付ファイルの識別子です。"
+ "description": "添付ファイル識別子。"
},
"name": {
"type": "string",
- "description": "元のファイル名です。"
+ "description": "元のファイル名。"
},
"size": {
"type": "integer",
@@ -4075,7 +4076,7 @@
},
"source_url": {
"type": "string",
- "description": "添付ファイルにアクセスする URL です。"
+ "description": "添付ファイルにアクセスするための URL。"
}
}
}
@@ -4083,11 +4084,10 @@
"summary": {
"type": "string",
"nullable": true,
- "description": "要約インデックス経由で取得された場合の要約コンテンツです。"
+ "description": "要約インデックス経由で取得された場合の要約コンテンツ。"
}
}
- },
- "description": "一致した検索レコードのリスト。"
+ }
}
}
},
@@ -4149,7 +4149,7 @@
}
},
"400": {
- "description": "- `dataset_not_initialized` : ナレッジベースはまだ初期化中またはインデキシング中です。しばらくお待ちください。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 → モデルプロバイダーで認証情報を完了してください。\n- `provider_quota_exceeded` : Your quota for Dify Hosted OpenAI has been exhausted. Please go to Settings -> Model Provider to complete your own provider credentials.\n- `model_currently_not_support` : Dify Hosted OpenAI trial currently not support the GPT-4 model.\n- `completion_request_error` : Completion request failed.\n- `invalid_param` : Invalid parameter value.",
+ "description": "- `dataset_not_initialized` : データセットはまだ初期化中またはインデックス中です。しばらくお待ちください。\n- `provider_not_initialize` : 有効なモデルプロバイダーの認証情報が見つかりません。設定 -> モデルプロバイダーでプロバイダーの認証情報を完了してください。\n- `provider_quota_exceeded` : Dify Hosted OpenAI のクォータが使い果たされました。設定 -> モデルプロバイダーで独自のプロバイダー認証情報を完了してください。\n- `model_currently_not_support` : Dify Hosted OpenAI トライアルは現在 GPT-4 モデルをサポートしていません。\n- `completion_request_error` : 補完リクエストが失敗しました。\n- `invalid_param` : 無効なパラメータ値。",
"content": {
"application/json": {
"examples": {
@@ -4206,7 +4206,7 @@
}
},
"403": {
- "description": "`forbidden` : 権限が不足しています。",
+ "description": "`forbidden` : 権限がありません。",
"content": {
"application/json": {
"examples": {
@@ -4262,9 +4262,9 @@
"/datasets/tags": {
"post": {
"tags": [
- "タグ管理"
+ "Tags"
],
- "summary": "ナレッジベースタグを作成",
+ "summary": "ナレッジタグを作成",
"description": "ナレッジベースを整理するための新しいタグを作成します。",
"operationId": "createKnowledgeTag",
"requestBody": {
@@ -4281,7 +4281,7 @@
"type": "string",
"minLength": 1,
"maxLength": 50,
- "description": "Tag name."
+ "description": "タグ名。"
}
}
}
@@ -4298,20 +4298,20 @@
"properties": {
"id": {
"type": "string",
- "description": "タグ識別子です。"
+ "description": "タグ識別子。"
},
"name": {
"type": "string",
- "description": "タグの表示名です。"
+ "description": "タグ表示名。"
},
"type": {
"type": "string",
- "description": "タグタイプです。ナレッジベースタグの場合は常に `knowledge` です。"
+ "description": "タグタイプ。ナレッジベースタグの場合は常に `knowledge`。"
},
"binding_count": {
"type": "string",
"nullable": true,
- "description": "このタグにバインドされたナレッジベースの数です。"
+ "description": "このタグにバインドされているナレッジベースの数。"
}
}
},
@@ -4333,14 +4333,14 @@
},
"get": {
"tags": [
- "タグ管理"
+ "Tags"
],
- "summary": "ナレッジベースタグリストを取得",
- "description": "ワークスペース内のすべてのナレッジベースタグのリストを返します。",
+ "summary": "ナレッジタグ一覧を取得",
+ "description": "ワークスペース内のすべてのナレッジベースタグの一覧を返します。",
"operationId": "getKnowledgeTags",
"responses": {
"200": {
- "description": "タグのリストです。",
+ "description": "タグの一覧。",
"content": {
"application/json": {
"schema": {
@@ -4350,20 +4350,20 @@
"properties": {
"id": {
"type": "string",
- "description": "タグ識別子です。"
+ "description": "タグ識別子。"
},
"name": {
"type": "string",
- "description": "タグの表示名です。"
+ "description": "タグ表示名。"
},
"type": {
"type": "string",
- "description": "タグタイプです。ナレッジベースタグの場合は常に `knowledge` です。"
+ "description": "タグタイプ。ナレッジベースタグの場合は常に `knowledge`。"
},
"binding_count": {
"type": "string",
"nullable": true,
- "description": "このタグにバインドされたナレッジベースの数です。"
+ "description": "このタグにバインドされているナレッジベースの数。"
}
}
}
@@ -4388,9 +4388,9 @@
},
"patch": {
"tags": [
- "タグ管理"
+ "Tags"
],
- "summary": "ナレッジベースタグを変更",
+ "summary": "ナレッジタグを更新",
"description": "既存のナレッジベースタグの名前を変更します。",
"operationId": "updateKnowledgeTag",
"requestBody": {
@@ -4406,13 +4406,13 @@
"properties": {
"tag_id": {
"type": "string",
- "description": "更新するタグ ID です。"
+ "description": "更新するタグ ID。"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 50,
- "description": "新しいタグ名です。"
+ "description": "新しいタグ名。"
}
}
}
@@ -4429,20 +4429,20 @@
"properties": {
"id": {
"type": "string",
- "description": "タグ識別子です。"
+ "description": "タグ識別子。"
},
"name": {
"type": "string",
- "description": "タグの表示名です。"
+ "description": "タグ表示名。"
},
"type": {
"type": "string",
- "description": "タグタイプです。ナレッジベースタグの場合は常に `knowledge` です。"
+ "description": "タグタイプ。ナレッジベースタグの場合は常に `knowledge`。"
},
"binding_count": {
"type": "string",
"nullable": true,
- "description": "このタグにバインドされたナレッジベースの数です。"
+ "description": "このタグにバインドされているナレッジベースの数。"
}
}
},
@@ -4464,10 +4464,10 @@
},
"delete": {
"tags": [
- "タグ管理"
+ "Tags"
],
- "summary": "ナレッジベースタグを削除",
- "description": "ナレッジベースタグを完全に削除します。タグ付けされたナレッジベース自体は削除されません。",
+ "summary": "ナレッジタグを削除",
+ "description": "ナレッジベースタグを完全に削除します。タグ付けされていたナレッジベースは削除されません。",
"operationId": "deleteKnowledgeTag",
"requestBody": {
"required": true,
@@ -4481,7 +4481,7 @@
"properties": {
"tag_id": {
"type": "string",
- "description": "削除するタグ ID です。"
+ "description": "削除するタグ ID。"
}
}
}
@@ -4490,7 +4490,7 @@
},
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -4498,10 +4498,10 @@
"/datasets/tags/binding": {
"post": {
"tags": [
- "タグ管理"
+ "Tags"
],
- "summary": "タグをデータセットにバインド",
- "description": "ナレッジベースに 1 つ以上のタグをバインドします。ナレッジベースには複数のタグを設定できます。",
+ "summary": "タグバインディングを作成",
+ "description": "1 つ以上のタグをナレッジベースにバインドします。ナレッジベースは複数のタグを持つことができます。",
"operationId": "bindTagsToDataset",
"requestBody": {
"required": true,
@@ -4520,11 +4520,11 @@
"type": "string"
},
"minItems": 1,
- "description": "バインドするタグ ID です。"
+ "description": "バインドするタグ ID。"
},
"target_id": {
"type": "string",
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
}
}
@@ -4533,7 +4533,7 @@
},
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -4541,9 +4541,9 @@
"/datasets/tags/unbinding": {
"post": {
"tags": [
- "タグ管理"
+ "Tags"
],
- "summary": "タグとデータセットのバインドを解除",
+ "summary": "タグバインディングを削除",
"description": "ナレッジベースからタグバインディングを削除します。",
"operationId": "unbindTagFromDataset",
"requestBody": {
@@ -4559,11 +4559,11 @@
"properties": {
"tag_id": {
"type": "string",
- "description": "バインド解除するタグ ID です。"
+ "description": "バインド解除するタグ ID。"
},
"target_id": {
"type": "string",
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
}
}
@@ -4572,7 +4572,7 @@
},
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -4580,10 +4580,10 @@
"/datasets/{dataset_id}/tags": {
"get": {
"tags": [
- "タグ管理"
+ "Tags"
],
- "summary": "ナレッジベースにバインドされたタグを取得",
- "description": "特定のナレッジベースにバインドされたタグのリストを返します。",
+ "summary": "ナレッジベースのタグを取得",
+ "description": "特定のナレッジベースにバインドされているタグの一覧を返します。",
"operationId": "queryDatasetTags",
"parameters": [
{
@@ -4594,12 +4594,12 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"responses": {
"200": {
- "description": "ナレッジベースにバインドされたタグです。",
+ "description": "ナレッジベースにバインドされているタグ。",
"content": {
"application/json": {
"schema": {
@@ -4607,24 +4607,24 @@
"properties": {
"data": {
"type": "array",
+ "description": "このナレッジベースにバインドされているタグのリスト。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "タグ識別子です。"
+ "description": "タグ識別子。"
},
"name": {
"type": "string",
- "description": "タグの表示名です。"
+ "description": "タグ表示名。"
}
}
- },
- "description": "このナレッジベースにバインドされたタグのリスト。"
+ }
},
"total": {
"type": "integer",
- "description": "このナレッジベースにバインドされたタグの合計数です。"
+ "description": "このナレッジベースにバインドされているタグの総数。"
}
}
},
@@ -4651,11 +4651,11 @@
"/datasets/{dataset_id}/metadata": {
"post": {
"tags": [
- "メタデータ"
+ "Metadata"
],
"summary": "メタデータフィールドを作成",
- "description": "ナレッジベースのカスタムメタデータフィールドを作成します。メタデータフィールドを使用して、構造化された情報でドキュメントにアノテーションを付けることができます。",
- "operationId": "createMetadataFieldJa",
+ "description": "ナレッジベース用のカスタムメタデータフィールドを作成します。メタデータフィールドは、ドキュメントに構造化された情報を注釈付けするために使用できます。",
+ "operationId": "createMetadataField",
"parameters": [
{
"name": "dataset_id",
@@ -4665,7 +4665,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"requestBody": {
@@ -4686,11 +4686,11 @@
"number",
"time"
],
- "description": "`string` はテキスト値、`number` は数値、`time` は日付/時刻値です。"
+ "description": "`string` はテキスト値、`number` は数値、`time` は日付/時刻値。"
},
"name": {
"type": "string",
- "description": "メタデータフィールド名です。"
+ "description": "メタデータフィールド名。"
}
}
}
@@ -4707,15 +4707,15 @@
"properties": {
"id": {
"type": "string",
- "description": "メタデータフィールドの識別子です。"
+ "description": "メタデータフィールド識別子。"
},
"name": {
"type": "string",
- "description": "メタデータフィールド名です。"
+ "description": "メタデータフィールド名。"
},
"type": {
"type": "string",
- "description": "メタデータフィールドの種類です。"
+ "description": "メタデータフィールドタイプ。"
}
}
},
@@ -4736,11 +4736,11 @@
},
"get": {
"tags": [
- "メタデータ"
+ "Metadata"
],
- "summary": "メタデータフィールドリストを取得",
- "description": "ナレッジベースのすべてのメタデータフィールド(カスタムおよび組み込みの両方)の一覧と、各フィールドを使用しているドキュメント数を返します。",
- "operationId": "listMetadataFieldsJa",
+ "summary": "メタデータフィールド一覧を取得",
+ "description": "ナレッジベースのすべてのメタデータフィールド(カスタムと組み込みの両方)の一覧と、各フィールドを使用しているドキュメントの数を返します。",
+ "operationId": "listMetadataFields",
"parameters": [
{
"name": "dataset_id",
@@ -4750,12 +4750,12 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"responses": {
"200": {
- "description": "ナレッジベースのメタデータフィールドです。",
+ "description": "ナレッジベースのメタデータフィールド。",
"content": {
"application/json": {
"schema": {
@@ -4763,32 +4763,32 @@
"properties": {
"doc_metadata": {
"type": "array",
+ "description": "メタデータフィールド定義のリスト。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "メタデータフィールドの識別子です。"
+ "description": "メタデータフィールド識別子。"
},
"name": {
"type": "string",
- "description": "メタデータフィールド名です。"
+ "description": "メタデータフィールド名。"
},
"type": {
"type": "string",
- "description": "メタデータフィールドの種類です。"
+ "description": "メタデータフィールドタイプ。"
},
"count": {
"type": "integer",
- "description": "このメタデータフィールドを使用しているドキュメント数です。"
+ "description": "このメタデータフィールドを使用しているドキュメントの数。"
}
}
- },
- "description": "メタデータフィールド定義のリスト。"
+ }
},
"built_in_field_enabled": {
"type": "boolean",
- "description": "このナレッジベースで組み込みメタデータフィールドが有効かどうかです。"
+ "description": "このナレッジベースで組み込みメタデータフィールドが有効かどうか。"
}
}
},
@@ -4817,11 +4817,11 @@
"/datasets/{dataset_id}/metadata/{metadata_id}": {
"patch": {
"tags": [
- "メタデータ"
+ "Metadata"
],
"summary": "メタデータフィールドを更新",
"description": "カスタムメタデータフィールドの名前を変更します。",
- "operationId": "updateMetadataFieldJa",
+ "operationId": "updateMetadataField",
"parameters": [
{
"name": "dataset_id",
@@ -4831,7 +4831,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "metadata_id",
@@ -4841,7 +4841,7 @@
"type": "string",
"format": "uuid"
},
- "description": "メタデータフィールド ID です。"
+ "description": "メタデータフィールド ID。"
}
],
"requestBody": {
@@ -4856,7 +4856,7 @@
"properties": {
"name": {
"type": "string",
- "description": "新しいメタデータフィールド名です。"
+ "description": "新しいメタデータフィールド名。"
}
}
}
@@ -4873,15 +4873,15 @@
"properties": {
"id": {
"type": "string",
- "description": "メタデータフィールドの識別子です。"
+ "description": "メタデータフィールド識別子。"
},
"name": {
"type": "string",
- "description": "メタデータフィールド名です。"
+ "description": "メタデータフィールド名。"
},
"type": {
"type": "string",
- "description": "メタデータフィールドの種類です。"
+ "description": "メタデータフィールドタイプ。"
}
}
},
@@ -4902,11 +4902,11 @@
},
"delete": {
"tags": [
- "メタデータ"
+ "Metadata"
],
"summary": "メタデータフィールドを削除",
- "description": "カスタムメタデータフィールドを完全に削除します。このフィールドを使用しているドキュメントは、該当するメタデータ値を失います。",
- "operationId": "deleteMetadataFieldJa",
+ "description": "カスタムメタデータフィールドを完全に削除します。このフィールドを使用しているドキュメントは、そのメタデータ値を失います。",
+ "operationId": "deleteMetadataField",
"parameters": [
{
"name": "dataset_id",
@@ -4916,7 +4916,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "metadata_id",
@@ -4926,12 +4926,12 @@
"type": "string",
"format": "uuid"
},
- "description": "メタデータフィールド ID です。"
+ "description": "メタデータフィールド ID。"
}
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -4939,11 +4939,11 @@
"/datasets/{dataset_id}/metadata/built-in": {
"get": {
"tags": [
- "メタデータ"
+ "Metadata"
],
"summary": "組み込みメタデータフィールドを取得",
- "description": "システムが提供する組み込みメタデータフィールドの一覧を返します(例:ドキュメントタイプ、ソース URL)。",
- "operationId": "getBuiltInMetadataFieldsJa",
+ "description": "システムが提供する組み込みメタデータフィールド(例:ドキュメントタイプ、ソース URL)の一覧を返します。",
+ "operationId": "getBuiltInMetadataFields",
"parameters": [
{
"name": "dataset_id",
@@ -4953,12 +4953,12 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"responses": {
"200": {
- "description": "組み込みメタデータフィールドです。",
+ "description": "組み込みメタデータフィールド。",
"content": {
"application/json": {
"schema": {
@@ -4966,17 +4966,17 @@
"properties": {
"fields": {
"type": "array",
- "description": "システム提供のメタデータフィールドのリストです。",
+ "description": "システム提供のメタデータフィールドのリスト。",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
- "description": "組み込みフィールド識別子です。`document_name` はドキュメントタイトル、`uploader` は作成者、`upload_date` は作成日時、`last_update_date` は最終更新日時、`source` はドキュメントの出典を示します。"
+ "description": "組み込みフィールド識別子。`document_name` はドキュメントタイトル、`uploader` は作成者、`upload_date` は作成日時、`last_update_date` は最終更新日時、`source` はドキュメントの出所。"
},
"type": {
"type": "string",
- "description": "フィールドのデータ型です。テキスト値の場合は `string`、日時値の場合は `time` です。"
+ "description": "フィールドのデータタイプ。`string` はテキスト値、`time` は日付/時刻値。"
}
}
}
@@ -5021,11 +5021,11 @@
"/datasets/{dataset_id}/metadata/built-in/{action}": {
"post": {
"tags": [
- "メタデータ"
+ "Metadata"
],
"summary": "組み込みメタデータフィールドを更新",
- "description": "ナレッジベースの組み込みメタデータフィールドを有効または無効にします。",
- "operationId": "toggleBuiltInMetadataFieldJa",
+ "description": "ナレッジベースの組み込みメタデータフィールドを有効化または無効化します。",
+ "operationId": "toggleBuiltInMetadataField",
"parameters": [
{
"name": "dataset_id",
@@ -5035,7 +5035,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "action",
@@ -5048,12 +5048,12 @@
"disable"
]
},
- "description": "`enable` で内蔵メタデータフィールドを有効化、`disable` で無効化します。"
+ "description": "`enable` は組み込みメタデータフィールドを有効化、`disable` は無効化。"
}
],
"responses": {
"200": {
- "description": "組み込みメタデータフィールドの切り替えに成功しました。",
+ "description": "組み込みメタデータフィールドが正常に切り替えられました。",
"content": {
"application/json": {
"schema": {
@@ -5061,7 +5061,7 @@
"properties": {
"result": {
"type": "string",
- "description": "操作結果です。"
+ "description": "操作結果。"
}
}
},
@@ -5082,11 +5082,11 @@
"/datasets/{dataset_id}/documents/metadata": {
"post": {
"tags": [
- "メタデータ"
+ "Metadata"
],
"summary": "ドキュメントメタデータを一括更新",
- "description": "複数のドキュメントのメタデータ値を一括更新します。リクエスト内の各ドキュメントに指定されたメタデータのキーと値のペアが適用されます。",
- "operationId": "batchUpdateDocumentMetadataJa",
+ "description": "複数のドキュメントのメタデータ値を一度に更新します。リクエスト内の各ドキュメントは、指定されたメタデータキーバリューペアを受け取ります。",
+ "operationId": "batchUpdateDocumentMetadata",
"parameters": [
{
"name": "dataset_id",
@@ -5096,7 +5096,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"requestBody": {
@@ -5120,7 +5120,7 @@
"properties": {
"document_id": {
"type": "string",
- "description": "メタデータを更新するドキュメントの ID です。"
+ "description": "メタデータを更新するドキュメントの ID。"
},
"metadata_list": {
"type": "array",
@@ -5133,11 +5133,11 @@
"properties": {
"id": {
"type": "string",
- "description": "メタデータフィールド ID です。"
+ "description": "メタデータフィールド ID。"
},
"name": {
"type": "string",
- "description": "メタデータフィールド名です。"
+ "description": "メタデータフィールド名。"
},
"value": {
"description": "メタデータ値。文字列、数値、または `null` を指定できます。"
@@ -5148,11 +5148,11 @@
"partial_update": {
"type": "boolean",
"default": false,
- "description": "メタデータを部分的に更新し、未指定フィールドの既存の値を保持するかどうかです。"
+ "description": "メタデータを部分的に更新し、指定されていないフィールドの既存の値を保持するかどうか。"
}
}
},
- "description": "ドキュメントメタデータの更新操作の配列です。各エントリはドキュメント ID をメタデータのキーと値のペアにマッピングします。"
+ "description": "ドキュメントメタデータ更新操作の配列。各エントリはドキュメント ID をそのメタデータキーバリューペアにマッピングします。"
}
}
}
@@ -5169,7 +5169,7 @@
"properties": {
"result": {
"type": "string",
- "description": "操作結果です。"
+ "description": "操作結果。"
}
}
},
@@ -5190,11 +5190,11 @@
"/workspaces/current/models/model-types/{model_type}": {
"get": {
"tags": [
- "モデル"
+ "Models"
],
"summary": "利用可能なモデルを取得",
- "description": "タイプ別に利用可能なモデルの一覧を取得します。主にナレッジベース設定用の `text-embedding` モデルと `rerank` モデルのクエリに使用します。",
- "operationId": "getAvailableModelsJa",
+ "description": "タイプ別に利用可能なモデルの一覧を取得します。主にナレッジベース設定のための `text-embedding` および `rerank` モデルのクエリに使用されます。",
+ "operationId": "getAvailableModels",
"parameters": [
{
"name": "model_type",
@@ -5211,12 +5211,12 @@
"moderation"
]
},
- "description": "取得するモデルのタイプです。ナレッジベースの設定には、埋め込みモデルの場合は `text-embedding`、リランキングモデルの場合は `rerank` を使用します。"
+ "description": "取得するモデルのタイプ。ナレッジベース設定の場合、埋め込みモデルには `text-embedding`、リランキングモデルには `rerank` を使用します。"
}
],
"responses": {
"200": {
- "description": "指定された種類で利用可能なモデルです。",
+ "description": "指定されたタイプの利用可能なモデル。",
"content": {
"application/json": {
"schema": {
@@ -5224,17 +5224,17 @@
"properties": {
"data": {
"type": "array",
- "description": "利用可能なモデルを持つモデルプロバイダーのリストです。",
+ "description": "利用可能なモデルを持つモデルプロバイダーのリスト。",
"items": {
"type": "object",
"properties": {
"provider": {
"type": "string",
- "description": "モデルプロバイダーの識別子です(例:`openai`、`cohere`)。"
+ "description": "モデルプロバイダー識別子。例:`openai`、`cohere`。"
},
"label": {
"type": "object",
- "description": "プロバイダーのローカライズ表示名です。",
+ "description": "プロバイダーのローカライズされた表示名。",
"properties": {
"en_US": {
"type": "string",
@@ -5248,41 +5248,41 @@
},
"icon_small": {
"type": "object",
- "description": "プロバイダーの小アイコンの URL です。",
+ "description": "プロバイダーの小さいアイコンの URL。",
"properties": {
"en_US": {
"type": "string",
- "description": "小アイコン URL。"
+ "description": "小さいアイコン URL。"
}
}
},
"icon_large": {
"type": "object",
- "description": "プロバイダーの大アイコンの URL です。",
+ "description": "プロバイダーの大きいアイコンの URL。",
"properties": {
"en_US": {
"type": "string",
- "description": "大アイコン URL。"
+ "description": "大きいアイコン URL。"
}
}
},
"status": {
"type": "string",
- "description": "プロバイダーのステータスです。認証情報が設定済みで有効な場合は `active` です。"
+ "description": "プロバイダーのステータス。認証情報が設定されており有効な場合は `active`。"
},
"models": {
"type": "array",
- "description": "このプロバイダーから利用可能なモデルのリストです。",
+ "description": "このプロバイダーから利用可能なモデルのリスト。",
"items": {
"type": "object",
"properties": {
"model": {
"type": "string",
- "description": "モデル識別子です。ナレッジベースの作成または更新時に `embedding_model` の値として使用します。"
+ "description": "モデル識別子。ナレッジベースを作成または更新する際の `embedding_model` 値として使用します。"
},
"label": {
"type": "object",
- "description": "モデルのローカライズ表示名です。",
+ "description": "モデルのローカライズされた表示名。",
"properties": {
"en_US": {
"type": "string",
@@ -5296,27 +5296,27 @@
},
"model_type": {
"type": "string",
- "description": "モデルのタイプです。`model_type` パスパラメータと一致します。"
+ "description": "モデルのタイプ。`model_type` パスパラメータと一致します。"
},
"features": {
"type": "array",
"nullable": true,
- "description": "モデルがサポートする機能です。なしの場合は `null` です。",
+ "description": "モデルのサポートされている機能。なしの場合は `null`。",
"items": {
"type": "string"
}
},
"fetch_from": {
"type": "string",
- "description": "モデル定義の取得元です。`predefined-model` は組み込みモデル、`customizable-model` はユーザー設定モデルを示します。"
+ "description": "モデル定義の取得元。`predefined-model` は組み込みモデル、`customizable-model` はユーザー設定モデル。"
},
"model_properties": {
"type": "object",
- "description": "`context_size` などのモデル固有のプロパティです。"
+ "description": "`context_size` などのモデル固有のプロパティ。"
},
"status": {
"type": "string",
- "description": "モデルの利用可能ステータスです。使用可能な場合は `active` です。"
+ "description": "モデルの利用可能性ステータス。使用準備完了時は `active`。"
}
}
}
@@ -5374,11 +5374,11 @@
"/datasets/pipeline/file-upload": {
"post": {
"tags": [
- "ナレッジパイプライン"
+ "Knowledge Pipeline"
],
"summary": "パイプラインファイルをアップロード",
- "description": "ナレッジパイプラインで使用するファイルをアップロードします。`multipart/form-data` で単一ファイルを受け付けます。",
- "operationId": "uploadPipelineFileJa",
+ "description": "ナレッジパイプラインで使用するファイルをアップロードします。`multipart/form-data` 経由で単一のファイルを受け付けます。",
+ "operationId": "uploadPipelineFile",
"requestBody": {
"required": true,
"content": {
@@ -5392,7 +5392,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "アップロードするファイルです。"
+ "description": "アップロードするファイル。"
}
}
}
@@ -5409,11 +5409,11 @@
"properties": {
"id": {
"type": "string",
- "description": "アップロードされたファイルの一意識別子です。"
+ "description": "アップロードされたファイルの一意識別子。"
},
"name": {
"type": "string",
- "description": "元のファイル名です。"
+ "description": "元のファイル名。"
},
"size": {
"type": "integer",
@@ -5433,7 +5433,7 @@
},
"created_at": {
"type": "string",
- "description": "アップロードタイムスタンプ(ISO 8601 形式)です。"
+ "description": "ISO 8601 形式のアップロードタイムスタンプ。"
}
}
},
@@ -5488,7 +5488,7 @@
}
},
"413": {
- "description": "`file_too_large` : ファイルサイズの上限を超えています。",
+ "description": "`file_too_large` : ファイルサイズが超過しました。",
"content": {
"application/json": {
"examples": {
@@ -5505,7 +5505,7 @@
}
},
"415": {
- "description": "`unsupported_file_type` : 許可されていないファイルタイプです。",
+ "description": "`unsupported_file_type` : ファイルタイプは許可されていません。",
"content": {
"application/json": {
"examples": {
@@ -5527,11 +5527,11 @@
"/datasets/{dataset_id}/pipeline/datasource-plugins": {
"get": {
"tags": [
- "ナレッジパイプライン"
+ "Knowledge Pipeline"
],
- "summary": "データソースプラグインリストを取得",
- "description": "ナレッジパイプラインで利用可能なすべてのデータソースプラグインを一覧表示します。`is_published` クエリパラメータに応じて公開済みまたはドラフトのプラグインを返します。",
- "operationId": "listDatasourcePluginsJa",
+ "summary": "データソースプラグイン一覧を取得",
+ "description": "ナレッジパイプラインで利用可能なすべてのデータソースプラグインを一覧表示します。`is_published` クエリパラメータに応じて、公開済みまたはドラフトのプラグインを返します。",
+ "operationId": "listDatasourcePlugins",
"parameters": [
{
"name": "dataset_id",
@@ -5541,7 +5541,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "is_published",
@@ -5550,12 +5550,12 @@
"type": "boolean",
"default": true
},
- "description": "公開済みまたはドラフトのデータソースプラグインのどちらを取得するかを指定します。`true` は公開済みプラグイン、`false` はドラフトプラグインを返します。"
+ "description": "公開済みまたはドラフトのデータソースプラグインを取得するかどうか。`true` は公開済みプラグイン、`false` はドラフトプラグインを返します。"
}
],
"responses": {
"200": {
- "description": "データソースプラグインのリストです。",
+ "description": "データソースプラグインの一覧。",
"content": {
"application/json": {
"schema": {
@@ -5565,15 +5565,15 @@
"properties": {
"id": {
"type": "string",
- "description": "データソースプラグインの一意の識別子です。"
+ "description": "データソースプラグインの一意識別子。"
},
"name": {
"type": "string",
- "description": "データソースプラグインの表示名です。"
+ "description": "データソースプラグインの表示名。"
},
"type": {
"type": "string",
- "description": "データソースプラグインの種類です。"
+ "description": "データソースプラグインのタイプ。"
}
}
}
@@ -5594,7 +5594,7 @@
}
},
"404": {
- "description": "`not_found` : ナレッジベースが見つかりません。",
+ "description": "`not_found` : データセットが見つかりません。",
"content": {
"application/json": {
"examples": {
@@ -5616,11 +5616,11 @@
"/datasets/{dataset_id}/pipeline/datasource/nodes/{node_id}/run": {
"post": {
"tags": [
- "ナレッジパイプライン"
+ "Knowledge Pipeline"
],
"summary": "データソースノードを実行",
- "description": "ナレッジパイプライン内の単一のデータソースノードを実行します。ノードの実行結果を含むストリーミングレスポンスを返します。",
- "operationId": "runDatasourceNodeJa",
+ "description": "ナレッジパイプライン内の単一のデータソースノードを実行します。ノード実行結果を含むストリーミングレスポンスを返します。",
+ "operationId": "runDatasourceNode",
"parameters": [
{
"name": "dataset_id",
@@ -5630,7 +5630,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
},
{
"name": "node_id",
@@ -5639,7 +5639,7 @@
"schema": {
"type": "string"
},
- "description": "実行するデータソースノードの ID です。"
+ "description": "実行するデータソースノードの ID。"
}
],
"requestBody": {
@@ -5657,7 +5657,7 @@
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "データソースノードの入力変数です。"
+ "description": "データソースノードの入力変数。"
},
"datasource_type": {
"type": "string",
@@ -5667,16 +5667,16 @@
"website_crawl",
"online_drive"
],
- "description": "データソースの種類です。"
+ "description": "データソースのタイプ。"
},
"credential_id": {
"type": "string",
"nullable": true,
- "description": "データソースとの認証に使用する認証情報の ID です。"
+ "description": "データソースとの認証に使用する認証情報の ID。"
},
"is_published": {
"type": "boolean",
- "description": "ノードの公開バージョンとドラフトバージョンのどちらを実行するかを指定します。`true` は公開バージョン、`false` はドラフトを実行します。"
+ "description": "公開済みまたはドラフトバージョンのノードを実行するかどうか。`true` は公開済みバージョン、`false` はドラフトを実行します。"
}
}
}
@@ -5685,18 +5685,18 @@
},
"responses": {
"200": {
- "description": "ノード実行イベントを含むストリーミングレスポンスです。",
+ "description": "ノード実行イベントを含むストリーミングレスポンス。",
"content": {
"text/event-stream": {
"schema": {
"type": "string",
- "description": "ノード実行の進捗と結果を含む Server-Sent Events ストリームです。"
+ "description": "ノード実行の進捗と結果を含む Server-Sent Events ストリーム。"
}
}
}
},
"404": {
- "description": "`not_found` : ナレッジベースが見つかりません。",
+ "description": "`not_found` : データセットが見つかりません。",
"content": {
"application/json": {
"examples": {
@@ -5718,11 +5718,11 @@
"/datasets/{dataset_id}/pipeline/run": {
"post": {
"tags": [
- "ナレッジパイプライン"
+ "Knowledge Pipeline"
],
"summary": "パイプラインを実行",
- "description": "ナレッジベースの完全なナレッジパイプラインを実行します。ストリーミングとブロッキングの両方のレスポンスモードをサポートしています。",
- "operationId": "runPipelineJa",
+ "description": "ナレッジベースのフルナレッジパイプラインを実行します。ストリーミングとブロッキングの両方のレスポンスモードをサポートしています。",
+ "operationId": "runPipeline",
"parameters": [
{
"name": "dataset_id",
@@ -5732,7 +5732,7 @@
"type": "string",
"format": "uuid"
},
- "description": "ナレッジベース ID です。"
+ "description": "ナレッジベース ID。"
}
],
"requestBody": {
@@ -5753,7 +5753,7 @@
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "パイプラインの入力変数です。"
+ "description": "パイプラインの入力変数。"
},
"datasource_type": {
"type": "string",
@@ -5763,7 +5763,7 @@
"website_crawl",
"online_drive"
],
- "description": "データソースの種類です。"
+ "description": "データソースのタイプ。"
},
"datasource_info_list": {
"type": "array",
@@ -5771,15 +5771,15 @@
"type": "object",
"additionalProperties": true
},
- "description": "パイプラインが処理するデータソース情報オブジェクトのリストです。"
+ "description": "パイプラインが処理するデータソース情報オブジェクトのリスト。"
},
"start_node_id": {
"type": "string",
- "description": "パイプライン実行を開始するノードの ID です。"
+ "description": "パイプライン実行を開始するノードの ID。"
},
"is_published": {
"type": "boolean",
- "description": "パイプラインの公開バージョンとドラフトバージョンのどちらを実行するかを指定します。`true` は公開バージョン、`false` はドラフトを実行します。"
+ "description": "公開済みまたはドラフトバージョンのパイプラインを実行するかどうか。`true` は公開済みバージョン、`false` はドラフトを実行します。"
},
"response_mode": {
"type": "string",
@@ -5787,7 +5787,7 @@
"streaming",
"blocking"
],
- "description": "パイプライン実行のレスポンスモードです。`streaming` はサーバー送信イベントストリームを返し、`blocking` は完了を待って完全な結果を返します。"
+ "description": "パイプライン実行のレスポンスモード。`streaming` は Server-Sent Events ストリームを返し、`blocking` は待機して完全な結果を返します。"
}
}
}
@@ -5796,23 +5796,23 @@
},
"responses": {
"200": {
- "description": "パイプライン実行結果。フォーマットは `response_mode` に依存します:ストリーミングは `text/event-stream` を返し、ブロッキングは完全な JSON 結果を返します。",
+ "description": "パイプライン実行結果。形式は `response_mode` によって異なります:streaming は `text/event-stream` を返し、blocking は JSON オブジェクトを返します。",
"content": {
"text/event-stream": {
"schema": {
"type": "string",
- "description": "パイプライン実行の進捗と結果を含むサーバー送信イベントストリームです。`response_mode` が `streaming` の場合に返されます。"
+ "description": "パイプライン実行の進捗と結果を含む Server-Sent Events ストリーム。`response_mode` が `streaming` の場合に返されます。"
}
},
"application/json": {
"schema": {
"type": "object",
- "description": "パイプライン実行の完全な結果です。`response_mode` が `blocking` の場合に返されます。",
+ "description": "完全なパイプライン実行結果。`response_mode` が `blocking` の場合に返されます。",
"additionalProperties": true
},
"examples": {
"success": {
- "summary": "Blocking Response Example",
+ "summary": "ブロッキングレスポンス例",
"value": {
"task_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"workflow_run_id": "f1e2d3c4-b5a6-7890-abcd-ef0987654321",
@@ -5830,7 +5830,7 @@
}
},
"403": {
- "description": "`forbidden` : アクセスが禁止されています。",
+ "description": "`forbidden` : アクセス禁止。",
"content": {
"application/json": {
"examples": {
@@ -5847,7 +5847,7 @@
}
},
"404": {
- "description": "`not_found` : ナレッジベースが見つかりません。",
+ "description": "`not_found` : データセットが見つかりません。",
"content": {
"application/json": {
"examples": {
@@ -5864,7 +5864,7 @@
}
},
"500": {
- "description": "`pipeline_run_error` : パイプライン実行に失敗しました。",
+ "description": "`pipeline_run_error` : パイプライン実行が失敗しました。",
"content": {
"application/json": {
"examples": {
@@ -5891,141 +5891,141 @@
"properties": {
"id": {
"type": "string",
- "description": "ナレッジベースの一意識別子です。"
+ "description": "ナレッジベースの一意識別子。"
},
"name": {
"type": "string",
- "description": "ナレッジベースの表示名です。ワークスペース内で一意です。"
+ "description": "ナレッジベースの表示名。ワークスペース内で一意です。"
},
"description": {
"type": "string",
- "description": "ナレッジベースの目的または内容を説明するオプションのテキストです。"
+ "description": "ナレッジベースの目的または内容を説明するオプションのテキスト。"
},
"provider": {
"type": "string",
- "description": "プロバイダータイプです。内部管理の場合は `vendor`、外部ナレッジベース接続の場合は `external` です。"
+ "description": "プロバイダータイプ。`vendor` は内部管理、`external` は外部ナレッジベース接続。"
},
"permission": {
"type": "string",
- "description": "このナレッジベースにアクセスできるユーザーを制御します。指定可能な値:`only_me`、`all_team_members`、`partial_members`。"
+ "description": "このナレッジベースにアクセスできる人を制御します。可能な値:`only_me`、`all_team_members`、`partial_members`。"
},
"data_source_type": {
"type": "string",
- "description": "ドキュメントのデータソースタイプです。まだ設定されていない場合は `null` です。"
+ "description": "ドキュメントのデータソースタイプ。まだ設定されていない場合は `null`。"
},
"indexing_technique": {
"type": "string",
- "description": "`high_quality` は埋め込みモデルを使用した精密検索、`economy` はキーワードベースのインデキシングです。"
+ "description": "`high_quality` は埋め込みモデルを使用して精密な検索を行います。`economy` はキーワードベースのインデックスを使用します。"
},
"app_count": {
"type": "integer",
- "description": "現在このナレッジベースを使用しているアプリケーションの数です。"
+ "description": "現在このナレッジベースを使用しているアプリケーションの数。"
},
"document_count": {
"type": "integer",
- "description": "ナレッジベース内のドキュメント総数です。"
+ "description": "ナレッジベース内のドキュメントの総数。"
},
"word_count": {
"type": "integer",
- "description": "全ドキュメントの合計単語数です。"
+ "description": "すべてのドキュメントの総単語数。"
},
"created_by": {
"type": "string",
- "description": "ナレッジベースを作成したユーザーの ID です。"
+ "description": "ナレッジベースを作成したユーザーの ID。"
},
"author_name": {
"type": "string",
- "description": "作成者の表示名です。"
+ "description": "作成者の表示名。"
},
"created_at": {
"type": "number",
- "description": "作成タイムスタンプ(Unix エポック、秒単位)です。"
+ "description": "作成タイムスタンプ(Unix エポック秒)。"
},
"updated_by": {
"type": "string",
- "description": "ナレッジベースを最後に更新したユーザーの ID です。"
+ "description": "ナレッジベースを最後に更新したユーザーの ID。"
},
"updated_at": {
"type": "number",
- "description": "最終更新タイムスタンプ(Unix エポック、秒単位)です。"
+ "description": "最終更新タイムスタンプ(Unix エポック秒)。"
},
"embedding_model": {
"type": "string",
- "description": "インデックス作成に使用される埋め込みモデルの名前です。"
+ "description": "インデックスに使用される埋め込みモデルの名前。"
},
"embedding_model_provider": {
"type": "string",
- "description": "埋め込みモデルプロバイダーです。[利用可能なモデルを取得](/api-reference/モデル/利用可能なモデルを取得) で `model_type=text-embedding` を指定した際の `provider` フィールドの値を使用します。"
+ "description": "埋め込みモデルプロバイダー。[利用可能なモデルを取得](/api-reference/models/get-available-models)の `model_type=text-embedding` で `provider` フィールドを使用してください。"
},
"embedding_available": {
"type": "boolean",
- "description": "設定された埋め込みモデルが現在利用可能かどうかです。"
+ "description": "設定された埋め込みモデルが現在利用可能かどうか。"
},
"retrieval_model_dict": {
"type": "object",
- "description": "ナレッジベースの検索設定です。",
+ "description": "ナレッジベースの検索設定。",
"properties": {
"search_method": {
"type": "string",
- "description": "検索に使用する検索方法です。`keyword_search` はキーワードマッチング、`semantic_search` は埋め込みベースの類似度検索、`full_text_search` は全文インデックス検索、`hybrid_search` はセマンティックとキーワードの組み合わせ検索を示します。"
+ "description": "検索に使用される検索方法。`keyword_search` はキーワードマッチング、`semantic_search` は埋め込みベースの類似性、`full_text_search` は全文インデックス、`hybrid_search` はセマンティックとキーワードアプローチの組み合わせ。"
},
"reranking_enable": {
"type": "boolean",
- "description": "リランキングが有効かどうかです。"
+ "description": "リランキングが有効かどうか。"
},
"reranking_mode": {
"type": "string",
"nullable": true,
- "description": "リランキングモードです。`reranking_model` はモデルベースのリランキング、`weighted_score` はスコアベースの重み付けを示します。リランキングが無効の場合は `null` です。"
+ "description": "リランキングモード。`reranking_model` はモデルベースのリランキング、`weighted_score` はスコアベースの重み付け。リランキングが無効な場合は `null`。"
},
"reranking_model": {
"type": "object",
- "description": "リランキングモデルの設定です。",
+ "description": "リランキングモデル設定。",
"properties": {
"reranking_provider_name": {
"type": "string",
- "description": "リランキングモデルのプロバイダー名です。"
+ "description": "リランキングモデルのプロバイダー名。"
},
"reranking_model_name": {
"type": "string",
- "description": "リランキングモデル名です。"
+ "description": "リランキングモデルの名前。"
}
}
},
"weights": {
"type": "object",
"nullable": true,
- "description": "ハイブリッド検索の重み設定です。",
+ "description": "ハイブリッド検索の重み設定。",
"properties": {
"weight_type": {
"type": "string",
- "description": "セマンティック検索とキーワード検索の重みを調整するための戦略です。"
+ "description": "セマンティック検索とキーワード検索の重みをバランスする戦略。"
},
"vector_setting": {
"type": "object",
- "description": "セマンティック検索の重み設定です。",
+ "description": "セマンティック検索の重み設定。",
"properties": {
"vector_weight": {
"type": "number",
- "description": "セマンティック(ベクトル)検索結果に割り当てられた重みです。"
+ "description": "セマンティック(ベクトル)検索結果に割り当てられる重み。"
},
"embedding_provider_name": {
"type": "string",
- "description": "ベクトル検索に使用される埋め込みモデルのプロバイダーです。"
+ "description": "ベクトル検索に使用される埋め込みモデルのプロバイダー。"
},
"embedding_model_name": {
"type": "string",
- "description": "ベクトル検索に使用される埋め込みモデルの名前です。"
+ "description": "ベクトル検索に使用される埋め込みモデルの名前。"
}
}
},
"keyword_setting": {
"type": "object",
- "description": "キーワード検索の重み設定です。",
+ "description": "キーワード検索の重み設定。",
"properties": {
"keyword_weight": {
"type": "number",
- "description": "キーワード検索結果に割り当てられた重みです。"
+ "description": "キーワード検索結果に割り当てられる重み。"
}
}
}
@@ -6033,190 +6033,190 @@
},
"top_k": {
"type": "integer",
- "description": "返す結果の最大数です。"
+ "description": "返す結果の最大数。"
},
"score_threshold_enabled": {
"type": "boolean",
- "description": "スコア閾値フィルタリングが有効かどうかです。"
+ "description": "スコアしきい値フィルタリングが有効かどうか。"
},
"score_threshold": {
"type": "number",
- "description": "結果の最小関連性スコアです。`score_threshold_enabled` が `true` の場合にのみ有効です。"
+ "description": "結果の最小関連性スコア。`score_threshold_enabled` が `true` の場合にのみ有効。"
}
}
},
"summary_index_setting": {
"type": "object",
"nullable": true,
- "description": "サマリーインデックスの設定です。",
+ "description": "要約インデックス設定。",
"properties": {
"enable": {
"type": "boolean",
- "description": "サマリーインデックスが有効かどうかです。"
+ "description": "要約インデックスが有効かどうか。"
},
"model_name": {
"type": "string",
- "description": "要約生成に使用されるモデルの名前です。"
+ "description": "要約生成に使用するモデルの名前。"
},
"model_provider_name": {
"type": "string",
- "description": "要約生成モデルのプロバイダーです。"
+ "description": "要約生成モデルのプロバイダー。"
},
"summary_prompt": {
"type": "string",
- "description": "要約生成に使用されるプロンプトテンプレートです。"
+ "description": "要約生成に使用するプロンプトテンプレート。"
}
}
},
"tags": {
"type": "array",
- "description": "このナレッジベースに関連付けられたタグです。",
+ "description": "このナレッジベースに関連付けられたタグ。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "タグ識別子です。"
+ "description": "タグ識別子。"
},
"name": {
"type": "string",
- "description": "Tag name."
+ "description": "タグ名。"
},
"type": {
"type": "string",
- "description": "タグタイプです。ナレッジベースタグの場合は常に `knowledge` です。"
+ "description": "タグタイプ。ナレッジベースタグの場合は常に `knowledge`。"
}
}
}
},
"doc_form": {
"type": "string",
- "description": "ドキュメントのチャンキングモードです。`text_model` は標準テキストチャンキング、`hierarchical_model` は親子構造、`qa_model` は QA ペア抽出を示します。"
+ "description": "ドキュメントのチャンキングモード。`text_model` は標準テキストチャンキング、`hierarchical_model` は親子構造、`qa_model` は QA ペア抽出。"
},
"external_knowledge_info": {
"type": "object",
"nullable": true,
- "description": "外部ナレッジベースの接続詳細です。`provider` が `external` の場合に存在します。",
+ "description": "外部ナレッジベースの接続詳細。`provider` が `external` の場合に存在します。",
"properties": {
"external_knowledge_id": {
"type": "string",
- "description": "外部ナレッジベースの ID です。"
+ "description": "外部ナレッジベースの ID。"
},
"external_knowledge_api_id": {
"type": "string",
- "description": "外部ナレッジ API 接続の ID です。"
+ "description": "外部ナレッジ API 接続の ID。"
},
"external_knowledge_api_name": {
"type": "string",
- "description": "外部ナレッジ API の表示名です。"
+ "description": "外部ナレッジ API の表示名。"
},
"external_knowledge_api_endpoint": {
"type": "string",
- "description": "外部ナレッジ API のエンドポイント URL です。"
+ "description": "外部ナレッジ API のエンドポイント URL。"
}
}
},
"external_retrieval_model": {
"type": "object",
"nullable": true,
- "description": "外部ナレッジベースの検索設定です。内部ナレッジベースの場合は `null` です。",
+ "description": "外部ナレッジベースの検索設定。内部ナレッジベースの場合は `null`。",
"properties": {
"top_k": {
"type": "integer",
- "description": "外部ナレッジベースから返す結果の最大数です。"
+ "description": "外部ナレッジベースから返す結果の最大数。"
},
"score_threshold": {
"type": "number",
- "description": "最小関連性スコアのしきい値です。"
+ "description": "最小関連性スコアしきい値。"
},
"score_threshold_enabled": {
"type": "boolean",
- "description": "スコア閾値フィルタリングが有効かどうかです。"
+ "description": "スコアしきい値フィルタリングが有効かどうか。"
}
}
},
"doc_metadata": {
"type": "array",
- "description": "ナレッジベースのメタデータフィールド定義です。",
+ "description": "ナレッジベースのメタデータフィールド定義。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "メタデータフィールドの識別子です。"
+ "description": "メタデータフィールド識別子。"
},
"name": {
"type": "string",
- "description": "メタデータフィールド名です。"
+ "description": "メタデータフィールド名。"
},
"type": {
"type": "string",
- "description": "メタデータフィールドの値の種類です。"
+ "description": "メタデータフィールドの値タイプ。"
}
}
}
},
"built_in_field_enabled": {
"type": "boolean",
- "description": "組み込みメタデータフィールド(例:`document_name`、`uploader`)が有効かどうかです。"
+ "description": "組み込みメタデータフィールド(例:`document_name`、`uploader`)が有効かどうか。"
},
"pipeline_id": {
"type": "string",
"nullable": true,
- "description": "カスタム処理パイプラインが設定されている場合のパイプライン ID です。"
+ "description": "カスタム処理パイプラインが設定されている場合のパイプライン ID。"
},
"runtime_mode": {
"type": "string",
"nullable": true,
- "description": "ランタイム処理モードです。"
+ "description": "ランタイム処理モード。"
},
"chunk_structure": {
"type": "string",
"nullable": true,
- "description": "チャンク構造の設定です。"
+ "description": "チャンク構造設定。"
},
"icon_info": {
"type": "object",
"nullable": true,
- "description": "ナレッジベースのアイコン表示設定です。",
+ "description": "ナレッジベースのアイコン表示設定。",
"properties": {
"icon_type": {
"type": "string",
- "description": "アイコンの種類です。"
+ "description": "アイコンのタイプ。"
},
"icon": {
"type": "string",
- "description": "アイコン識別子または絵文字です。"
+ "description": "アイコン識別子または絵文字。"
},
"icon_background": {
"type": "string",
- "description": "アイコンの背景色です。"
+ "description": "アイコンの背景色。"
},
"icon_url": {
"type": "string",
- "description": "カスタムアイコン画像の URL です。"
+ "description": "カスタムアイコン画像の URL。"
}
}
},
"is_published": {
"type": "boolean",
- "description": "ナレッジベースが公開済みかどうかです。"
+ "description": "ナレッジベースが公開されているかどうか。"
},
"total_documents": {
"type": "integer",
- "description": "ドキュメントの合計数です。"
+ "description": "ドキュメントの総数。"
},
"total_available_documents": {
"type": "integer",
- "description": "有効で利用可能なドキュメントの数です。"
+ "description": "有効で利用可能なドキュメントの数。"
},
"enable_api": {
"type": "boolean",
- "description": "このナレッジベースで API アクセスが有効かどうかです。"
+ "description": "このナレッジベースで API アクセスが有効かどうか。"
},
"is_multimodal": {
"type": "boolean",
- "description": "マルチモーダルコンテンツ処理が有効かどうかです。"
+ "description": "マルチモーダルコンテンツ処理が有効かどうか。"
}
}
},
@@ -6225,108 +6225,108 @@
"properties": {
"id": {
"type": "string",
- "description": "ドキュメントの一意識別子です。"
+ "description": "ドキュメントの一意識別子。"
},
"position": {
"type": "integer",
- "description": "リスト内のドキュメントの表示位置です。"
+ "description": "リスト内のドキュメントの表示位置。"
},
"data_source_type": {
"type": "string",
- "description": "ドキュメントの作成方法です。ファイルアップロードの場合は `upload_file`、Notion インポートの場合は `notion_import` です。"
+ "description": "ドキュメントの作成方法。`upload_file` はファイルアップロード、`notion_import` は Notion インポート。"
},
"data_source_info": {
"type": "object",
- "description": "生のデータソース情報です。`data_source_type` によって異なります。"
+ "description": "生のデータソース情報、`data_source_type` によって異なります。"
},
"data_source_detail_dict": {
"type": "object",
- "description": "ファイル詳細を含む詳細なデータソース情報です。"
+ "description": "ファイル詳細を含む詳細なデータソース情報。"
},
"dataset_process_rule_id": {
"type": "string",
- "description": "このドキュメントに適用された処理ルールの ID です。"
+ "description": "このドキュメントに適用された処理ルールの ID。"
},
"name": {
"type": "string",
- "description": "ドキュメント名です。"
+ "description": "ドキュメント名。"
},
"created_from": {
"type": "string",
- "description": "ドキュメントの作成元です。API で作成した場合は `api`、UI で作成した場合は `web` です。"
+ "description": "ドキュメントの作成元。`api` は API 作成、`web` は UI 作成。"
},
"created_by": {
"type": "string",
- "description": "ドキュメントを作成したユーザーの ID です。"
+ "description": "ドキュメントを作成したユーザーの ID。"
},
"created_at": {
"type": "number",
- "description": "作成タイムスタンプ(Unix エポック、秒単位)です。"
+ "description": "作成タイムスタンプ(Unix エポック秒)。"
},
"tokens": {
"type": "integer",
- "description": "ドキュメント内の合計トークン数です。"
+ "description": "ドキュメント内の総 token 数。"
},
"indexing_status": {
"type": "string",
- "description": "現在のインデックスステータスです。`waiting` はキュー待ち、`parsing` はコンテンツ抽出中、`cleaning` はノイズ除去中、`splitting` はチャンキング中、`indexing` はベクトル構築中、`completed` は準備完了、`error` は失敗、`paused` は手動一時停止を示します。"
+ "description": "現在のインデックスステータス。`waiting` はキュー待ち、`parsing` はコンテンツ抽出中、`cleaning` はノイズ除去中、`splitting` はチャンキング中、`indexing` はベクトル構築中、`completed` は準備完了、`error` は失敗、`paused` は手動で一時停止。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "インデックス作成が失敗した場合のエラーメッセージです。エラーなしの場合は `null` です。"
+ "description": "インデックスが失敗した場合のエラーメッセージ。エラーがない場合は `null`。"
},
"enabled": {
"type": "boolean",
- "description": "このドキュメントが検索に対して有効かどうかです。"
+ "description": "ドキュメントが検索で有効かどうか。"
},
"disabled_at": {
"type": "number",
"nullable": true,
- "description": "ドキュメントが無効化されたタイムスタンプです。有効な場合は `null` です。"
+ "description": "ドキュメントが無効化されたタイムスタンプ。有効な場合は `null`。"
},
"disabled_by": {
"type": "string",
"nullable": true,
- "description": "ドキュメントを無効化したユーザーの ID です。有効な場合は `null` です。"
+ "description": "ドキュメントを無効化したユーザーの ID。有効な場合は `null`。"
},
"archived": {
"type": "boolean",
- "description": "ドキュメントがアーカイブ済みかどうかです。"
+ "description": "ドキュメントがアーカイブされているかどうか。"
},
"display_status": {
"type": "string",
- "description": "`indexing_status` と `enabled` 状態から導出されたユーザー向け表示ステータスです。"
+ "description": "`indexing_status` と `enabled` 状態から導出されたユーザー向け表示ステータス。"
},
"word_count": {
"type": "integer",
- "description": "ドキュメントの合計単語数です。"
+ "description": "ドキュメントの総単語数。"
},
"hit_count": {
"type": "integer",
- "description": "ドキュメントが検索クエリでマッチした回数です。"
+ "description": "ドキュメントが検索クエリで一致した回数。"
},
"doc_form": {
"type": "string",
- "description": "ドキュメントのチャンキングモードです。`text_model` は標準テキストチャンキング、`hierarchical_model` は親子構造、`qa_model` は QA ペア抽出を示します。"
+ "description": "ドキュメントのチャンキングモード。`text_model` は標準テキストチャンキング、`hierarchical_model` は親子構造、`qa_model` は QA ペア抽出。"
},
"doc_metadata": {
"type": "array",
- "description": "このドキュメントに割り当てられたメタデータ値です。",
+ "description": "このドキュメントに割り当てられたメタデータ値。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "メタデータフィールドの識別子です。"
+ "description": "メタデータフィールド識別子。"
},
"name": {
"type": "string",
- "description": "メタデータフィールド名です。"
+ "description": "メタデータフィールド名。"
},
"type": {
"type": "string",
- "description": "メタデータフィールドの値の種類です。"
+ "description": "メタデータフィールドの値タイプ。"
},
"value": {
"type": "string",
@@ -6338,11 +6338,11 @@
"summary_index_status": {
"type": "string",
"nullable": true,
- "description": "このドキュメントの要約インデックスのステータスです。要約インデックスが設定されていない場合は `null` です。"
+ "description": "このドキュメントの要約インデックスのステータス。要約インデックスが設定されていない場合は `null`。"
},
"need_summary": {
"type": "boolean",
- "description": "このドキュメントに要約を生成する必要があるかどうかです。"
+ "description": "このドキュメントに要約を生成する必要があるかどうか。"
}
}
},
@@ -6351,7 +6351,7 @@
"properties": {
"id": {
"type": "string",
- "description": "チャンクの一意識別子です。"
+ "description": "チャンクの一意識別子。"
},
"position": {
"type": "integer",
@@ -6359,121 +6359,121 @@
},
"document_id": {
"type": "string",
- "description": "このチャンクが属するドキュメントの ID です。"
+ "description": "このチャンクが属するドキュメントの ID。"
},
"content": {
"type": "string",
- "description": "チャンクのテキスト内容です。"
+ "description": "チャンクのテキストコンテンツ。"
},
"sign_content": {
"type": "string",
- "description": "整合性検証用の署名付きコンテンツハッシュです。"
+ "description": "整合性検証用の署名付きコンテンツハッシュ。"
},
"answer": {
"type": "string",
- "description": "回答コンテンツです。Q&A モードのドキュメントで使用されます。"
+ "description": "Q&A モードドキュメントで使用される回答コンテンツ。"
},
"word_count": {
"type": "integer",
- "description": "チャンク内容の単語数です。"
+ "description": "チャンクコンテンツの単語数。"
},
"tokens": {
"type": "integer",
- "description": "チャンク内容のトークン数です。"
+ "description": "チャンクコンテンツの token 数。"
},
"keywords": {
"type": "array",
- "description": "キーワードベースの検索のためにこのチャンクに関連付けられたキーワードです。",
+ "description": "キーワードベースの検索に関連付けられたキーワード。",
"items": {
"type": "string"
}
},
"index_node_id": {
"type": "string",
- "description": "ベクトルストア内のインデックスノードの ID です。"
+ "description": "ベクトルストア内のインデックスノードの ID。"
},
"index_node_hash": {
"type": "string",
- "description": "インデックスされたコンテンツのハッシュです。変更の検出に使用されます。"
+ "description": "変更を検出するために使用されるインデックス済みコンテンツのハッシュ。"
},
"hit_count": {
"type": "integer",
- "description": "このチャンクが検索クエリでマッチした回数です。"
+ "description": "このチャンクが検索クエリで一致した回数。"
},
"enabled": {
"type": "boolean",
- "description": "このチャンクが検索に対して有効かどうかです。"
+ "description": "チャンクが検索で有効かどうか。"
},
"disabled_at": {
"type": "number",
"nullable": true,
- "description": "チャンクが無効化されたタイムスタンプです。有効な場合は `null` です。"
+ "description": "チャンクが無効化されたタイムスタンプ。有効な場合は `null`。"
},
"disabled_by": {
"type": "string",
"nullable": true,
- "description": "チャンクを無効化したユーザーの ID です。有効な場合は `null` です。"
+ "description": "チャンクを無効化したユーザーの ID。有効な場合は `null`。"
},
"status": {
"type": "string",
- "description": "チャンクの現在のインデックスステータスです(例:`completed`、`indexing`、`error`)。"
+ "description": "チャンクの現在のインデックスステータス。例:`completed`、`indexing`、`error`。"
},
"created_by": {
"type": "string",
- "description": "チャンクを作成したユーザーの ID です。"
+ "description": "チャンクを作成したユーザーの ID。"
},
"created_at": {
"type": "number",
- "description": "作成タイムスタンプ(Unix エポック、秒単位)です。"
+ "description": "作成タイムスタンプ(Unix エポック秒)。"
},
"updated_at": {
"type": "number",
- "description": "最終更新タイムスタンプ(Unix エポック、秒単位)です。"
+ "description": "最終更新タイムスタンプ(Unix エポック秒)。"
},
"updated_by": {
"type": "string",
- "description": "このチャンクを最後に更新したユーザーの ID です。"
+ "description": "チャンクを最後に更新したユーザーの ID。"
},
"indexing_at": {
"type": "number",
"nullable": true,
- "description": "インデックス作成が開始されたタイムスタンプです。まだ開始されていない場合は `null` です。"
+ "description": "インデックスが開始されたタイムスタンプ。まだ開始されていない場合は `null`。"
},
"completed_at": {
"type": "number",
"nullable": true,
- "description": "インデックス作成が完了したタイムスタンプです。まだ完了していない場合は `null` です。"
+ "description": "インデックスが完了したタイムスタンプ。まだ完了していない場合は `null`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "インデックス作成が失敗した場合のエラーメッセージです。エラーなしの場合は `null` です。"
+ "description": "インデックスが失敗した場合のエラーメッセージ。エラーがない場合は `null`。"
},
"stopped_at": {
"type": "number",
"nullable": true,
- "description": "インデックス作成が停止されたタイムスタンプです。停止されていない場合は `null` です。"
+ "description": "インデックスが停止されたタイムスタンプ。停止されていない場合は `null`。"
},
"child_chunks": {
"type": "array",
- "description": "このチャンクに属する子チャンクです。階層モードのドキュメントにのみ存在します。",
+ "description": "このチャンクに属する子チャンク。階層モードドキュメントでのみ存在します。",
"items": {
"$ref": "#/components/schemas/ChildChunk"
}
},
"attachments": {
"type": "array",
- "description": "このチャンクに添付されたファイルです。",
+ "description": "このチャンクに添付されたファイル。",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
- "description": "添付ファイルの識別子です。"
+ "description": "添付ファイル識別子。"
},
"name": {
"type": "string",
- "description": "元のファイル名です。"
+ "description": "元のファイル名。"
},
"size": {
"type": "integer",
@@ -6489,7 +6489,7 @@
},
"source_url": {
"type": "string",
- "description": "添付ファイルにアクセスする URL です。"
+ "description": "添付ファイルにアクセスするための URL。"
}
}
}
@@ -6497,7 +6497,7 @@
"summary": {
"type": "string",
"nullable": true,
- "description": "AI が生成したチャンクコンテンツの要約です。要約インデックスが有効でない場合は `null` です。"
+ "description": "チャンクコンテンツの AI 生成要約。要約インデックスが有効でない場合は `null`。"
}
}
},
@@ -6506,35 +6506,35 @@
"properties": {
"id": {
"type": "string",
- "description": "子チャンクの一意識別子です。"
+ "description": "子チャンクの一意識別子。"
},
"segment_id": {
"type": "string",
- "description": "この子チャンクが属する親チャンクの ID です。"
+ "description": "この子チャンクが属する親チャンクの ID。"
},
"content": {
"type": "string",
- "description": "子チャンクのテキスト内容です。"
+ "description": "子チャンクのテキストコンテンツ。"
},
"position": {
"type": "integer",
- "description": "親チャンク内の子チャンクの位置です。"
+ "description": "親チャンク内の子チャンクの位置。"
},
"word_count": {
"type": "integer",
- "description": "子チャンク内容の単語数です。"
+ "description": "子チャンクコンテンツの単語数。"
},
"type": {
"type": "string",
- "description": "子チャンクの作成方法です。システム生成の場合は `automatic`、手動作成の場合は `custom` です。"
+ "description": "子チャンクの作成方法。`automatic` はシステム生成、`custom` は手動作成。"
},
"created_at": {
"type": "number",
- "description": "作成タイムスタンプ(Unix エポック、秒単位)です。"
+ "description": "作成タイムスタンプ(Unix エポック秒)。"
},
"updated_at": {
"type": "number",
- "description": "最終更新タイムスタンプ(Unix エポック、秒単位)です。"
+ "description": "最終更新タイムスタンプ(Unix エポック秒)。"
}
}
},
@@ -6549,7 +6549,7 @@
"properties": {
"search_method": {
"type": "string",
- "description": "検索に使用される検索メソッドです。",
+ "description": "検索に使用される検索方法。",
"enum": [
"keyword_search",
"semantic_search",
@@ -6559,19 +6559,19 @@
},
"reranking_enable": {
"type": "boolean",
- "description": "リランキングが有効かどうかです。"
+ "description": "リランキングが有効かどうか。"
},
"reranking_model": {
"type": "object",
- "description": "リランキングモデルの設定です。",
+ "description": "リランキングモデル設定。",
"properties": {
"reranking_provider_name": {
"type": "string",
- "description": "リランキングモデルのプロバイダー名です。"
+ "description": "リランキングモデルのプロバイダー名。"
},
"reranking_model_name": {
"type": "string",
- "description": "リランキングモデル名です。"
+ "description": "リランキングモデルの名前。"
}
}
},
@@ -6582,29 +6582,29 @@
"weighted_score"
],
"nullable": true,
- "description": "リランキングモードです。`reranking_enable` が `true` の場合は必須です。"
+ "description": "リランキングモード。`reranking_enable` が `true` の場合に必要です。"
},
"top_k": {
"type": "integer",
- "description": "返す結果の最大数です。"
+ "description": "返す結果の最大数。"
},
"score_threshold_enabled": {
"type": "boolean",
- "description": "スコア閾値フィルタリングが有効かどうかです。"
+ "description": "スコアしきい値フィルタリングが有効かどうか。"
},
"score_threshold": {
"type": "number",
"nullable": true,
- "description": "結果の最小関連性スコアです。`score_threshold_enabled` が `true` の場合にのみ有効です。"
+ "description": "結果の最小関連性スコア。`score_threshold_enabled` が `true` の場合にのみ有効。"
},
"weights": {
"type": "object",
"nullable": true,
- "description": "ハイブリッド検索の重み設定です。",
+ "description": "ハイブリッド検索の重み設定。",
"properties": {
"weight_type": {
"type": "string",
- "description": "セマンティック検索とキーワード検索の重みを調整するための戦略です。",
+ "description": "セマンティック検索とキーワード検索の重みをバランスする戦略。",
"enum": [
"semantic_first",
"keyword_first",
@@ -6613,29 +6613,29 @@
},
"vector_setting": {
"type": "object",
- "description": "セマンティック検索の重み設定です。",
+ "description": "セマンティック検索の重み設定。",
"properties": {
"vector_weight": {
"type": "number",
- "description": "セマンティック(ベクトル)検索結果に割り当てられた重みです。"
+ "description": "セマンティック(ベクトル)検索結果に割り当てられる重み。"
},
"embedding_provider_name": {
"type": "string",
- "description": "ベクトル検索に使用される埋め込みモデルのプロバイダーです。"
+ "description": "ベクトル検索に使用される埋め込みモデルのプロバイダー。"
},
"embedding_model_name": {
"type": "string",
- "description": "ベクトル検索に使用される埋め込みモデルの名前です。"
+ "description": "ベクトル検索に使用される埋め込みモデルの名前。"
}
}
},
"keyword_setting": {
"type": "object",
- "description": "キーワード検索の重み設定です。",
+ "description": "キーワード検索の重み設定。",
"properties": {
"keyword_weight": {
"type": "number",
- "description": "キーワード検索結果に割り当てられた重みです。"
+ "description": "キーワード検索結果に割り当てられる重み。"
}
}
}
@@ -6649,8 +6649,8 @@
"type": "http",
"scheme": "bearer",
"bearerFormat": "API_KEY",
- "description": "API Key 認証です。すべての API リクエストにおいて、`Authorization` HTTP ヘッダーに `Bearer ` プレフィックスを付けた API Key を含めてください。例:`Authorization: Bearer {API_KEY}`。**API Key はサーバーサイドに保存し、クライアントサイドで共有・保存しないことを強く推奨します。API Key の漏洩は深刻な結果につながる可能性があります。**"
+ "description": "API キー認証。すべての API リクエストに対して、`Authorization` HTTP ヘッダーに `Bearer ` プレフィックス付きで API キーを含めてください。例:`Authorization: Bearer {API_KEY}`。**API キーはサーバー側に保存し、クライアント側で共有または保存しないことを強くお勧めします。API キーの漏洩は深刻な結果につながる可能性があります。**"
}
}
}
-}
+}
\ No newline at end of file
diff --git a/ja/use-dify/knowledge/connect-external-knowledge-base.mdx b/ja/use-dify/knowledge/connect-external-knowledge-base.mdx
index c671f1964..c02515b3e 100644
--- a/ja/use-dify/knowledge/connect-external-knowledge-base.mdx
+++ b/ja/use-dify/knowledge/connect-external-knowledge-base.mdx
@@ -1,134 +1,85 @@
---
title: 外部ナレッジベースと連携
+description: API接続を通じて外部ナレッジソースをDifyアプリケーションと統合し、カスタムRAGシステムやサードパーティナレッジサービスを活用します
sidebarTitle: 概要
---
- ⚠️ このドキュメントは AI によって自動翻訳されています。不正確な部分がある場合は、[英語版](/en/use-dify/knowledge/connect-external-knowledge-base)を参照してください。
+ ⚠️ このドキュメントはAIによって自動翻訳されています。不正確な部分がある場合は、[英語版](/en/use-dify/knowledge/connect-external-knowledge-base)を参照してください。
-> この文書では、Difyプラットフォームとは独立したナレッジベースを総称して **「外部ナレッジベース」** と呼びます。
+チームが独自のRAGシステムを維持している場合や、[AWS Bedrock](https://aws.amazon.com/bedrock/)などのサードパーティナレッジサービスにコンテンツをホスティングしている場合、Difyの組み込みナレッジベースにコンテンツを移行する代わりに、これらの外部ソースをDifyに接続できます。
-## 機能概要
+これにより、AIアプリケーションは既存のインフラストラクチャから直接情報を取得でき、検索ロジックとコンテンツ管理の完全な制御を維持できます。
-高度なコンテンツ検索の要件を持つ上級開発者にとって、Difyプラットフォームに組み込まれたナレッジベース機能とテキスト検索・取得メカニズムには**制約があり、検索結果を簡単に変更することができません。**
-
-テキスト検索と取得の精度に高い要求を持ち、内部資料の管理ニーズを満たすために、一部のチームは独自にRAGアルゴリズムを開発し、個人のテキスト取得システムを維持したり、コンテンツをクラウドプロバイダのナレッジベースサービス(例:[AWS Bedrock](https://aws.amazon.com/bedrock/))に統合したりしています。
-
-中立的なLLMアプリケーション開発プラットフォームであるDifyは、開発者にさまざまな選択肢を提供することを目指しています。
-
-**外部ナレッジベースに接続する**機能を使うことで、Difyプラットフォームと外部ナレッジベースを接続できます。APIサービスを通じて、AIアプリケーションはより多くの情報源からデータを取得できるようになります。具体的には:
-
-- Difyプラットフォームは、クラウドサービスプロバイダのナレッジベースにホスティングされているテキストコンテンツを直接取得でき、開発者はDify内のナレッジベースに再度コンテンツを転送する必要がありません。
-- Difyプラットフォームは、独自に構築したナレッジベース内のアルゴリズムで処理されたテキストコンテンツを直接取得でき、開発者は独自のナレッジベースの情報検索メカニズムに焦点を当て、情報取得の精度を継続的に最適化できます。
-
-
-
+
+ 
-以下は外部ナレッジベースに接続するための詳細な手順です:
-
-
-
- Difyとの接続を成功させるためには、外部ナレッジベースがDifyが作成した[外部ナレッジベースAPI仕様](/ja/use-dify/knowledge/external-knowledge-api)を慎重に読み、APIサービスを構築する必要があります。
-
-
- > 現在、Difyは外部ナレッジベースに対する最適化や変更をサポートしておらず、検索権限のみを有しています。開発者は外部ナレッジベースを自己管理する必要があります。
-
- **"ナレッジベース"** ページに移動し、右上の **"外部ナレッジベースAPI"** をクリックし、 **"外部ナレッジベースAPIを追加"** を選択します。
-
- ページの指示に従い、以下の内容を順番に入力してください:
-
- * ナレッジベースの名前:カスタム名を設定でき、接続された異なる外部ナレッジAPIを区別するために使用します。
- * APIインターフェースアドレス:外部ナレッジベースの接続アドレス(例:`api-endpoint/retrieval`);詳細な説明は[外部ナレッジベースAPI](/ja/use-dify/knowledge/external-knowledge-api)を参照してください。
- * APIキー:外部ナレッジベース接続のためのキー;詳細な説明は[外部ナレッジベースAPI](/ja/use-dify/knowledge/external-knowledge-api)を参照してください。
-
-
-
-
-
-
- **"ナレッジベース"** ページに移動し、追加したナレッジベースカードの下にある **"外部ナレッジベースに接続"** をクリックして、パラメーター設定ページに移動します。
+**外部ナレッジベースへの接続は3つのステップで行います**:
-
-
-
+1. [DifyがクエリできるAPIサービスを構築する](#step-1-build-the-retrieval-api)。
+2. [DifyにAPIエンドポイントを登録する](#step-2-register-an-external-knowledge-api)。
+3. [登録されたAPIを通じて特定のナレッジソースを接続する](#step-3-create-an-external-knowledge-base)。
- 以下のパラメータを入力してください:
+アプリケーションが実行されると、Difyはエンドポイントに検索リクエストを送信し、返されたチャンクをLLMレスポンスのコンテキストとして使用します。
- - **ナレッジベースの名称と説明**
- - **外部ナレッジベースAPI**: 第二ステップで関連付けられた外部ナレッジベースAPIを選択します。DifyはAPI接続を通じて、外部ナレッジベースに保存されているテキスト内容を呼び出します。
- - **外部ナレッジベースID**: 関連付ける特定の外部ナレッジベースIDを指定します。詳細については[外部ナレッジベースAPI](/ja/use-dify/knowledge/external-knowledge-api)を参照してください。
- - **召回設定の調整**
+
+Difyは外部ナレッジベースへの検索アクセスのみを持ち、外部コンテンツの変更や管理はできません。ナレッジベースとその検索ロジックは独立して維持してください。
+
- **Top K:** ユーザーが質問を発起した際に、外部知識APIに関連性の高いコンテンツ片を要求します。このパラメータは、ユーザーの質問との類似度が高いテキスト片をフィルタリングするために使用されます。デフォルト値は3で、数値が大きいほど関連性のあるテキスト片が多く召回されます。
+## Step 1: 検索APIの構築
- **スコア閾値:** テキスト片フィルタリングの類似度閾値で、設定されたスコアを超えるテキスト片のみが召回されます。デフォルト値は0.5です。数値が高いほど、テキストと質問要求の類似度が高く、召回されるテキストの数が少なくなり、結果的により精度が高まります。
+[外部ナレッジベースAPI仕様](/ja/use-dify/knowledge/external-knowledge-api)を実装するAPIサービスを構築します。サービスには、検索クエリを受け取り、類似度スコア付きのマッチするテキストチャンクを返す単一の`POST`エンドポイントが必要です。
-
-
-
+## Step 2: 外部ナレッジベースAPIを登録する
-
-
- 接続が確立された後、開発者は **「召回テスト」** で可能な質問キーワードをシミュレーションし、外部ナレッジベースから召回されたテキスト片をプレビューできます。召回結果に満足できない場合は、召回パラメータの変更や外部ナレッジベースの検索設定の調整を試みてください。
+外部ナレッジベースAPIは、エンドポイントURLと認証資格情報を保存します。複数のナレッジベースで1つのAPI接続を共有できます。
-
-
-
-
-
- - **Chatbot / エージェント型アプリ**
+1. **ナレッジ**に移動し、右上の**外部ナレッジベースAPI**をクリックし、**外部ナレッジベースAPIを追加**をクリックします。
- Chatbot / エージェント型アプリの編成ページにある **「コンテキスト」** で、`EXTERNAL`ラベルの付いた外部ナレッジベースを選択します。
+2. 以下のフィールドを入力します:
-
-
-
+ - **名前**:このAPI接続を他と区別するためのラベル。
+ - **APIエンドポイント**:外部ナレッジサービスのベースURL。Difyはリクエスト送信時に自動的に`/retrieval`を追加します。詳細については、[外部ナレッジベースAPI仕様](/ja/use-dify/knowledge/external-knowledge-api)を参照してください。
+ - **APIキー**:サービスの認証資格情報。Difyはこれを`Authorization`ヘッダーにBearerトークンとして送信します。
- - **チャットフロー / ワークフロー型アプリ**
+保存時にDifyはエンドポイントにテストリクエストを送信して接続を検証します。
- チャットフロー / ワークフロー型アプリに **「知識検索」** ノードを追加し、`EXTERNAL`ラベルの付いた外部ナレッジベースを選択します。
+## Step 3: 外部ナレッジベースを作成する
-
-
-
+APIを登録したら、外部ナレッジソースをDifyに接続します。これにより、外部システムにリンクされたナレッジベースがDifyに作成されます。
-
-
- **「ナレッジベース」**ページでは、外部ナレッジベースのカードの右上に**EXTERNAL**ラベルが表示されます。変更が必要なナレッジベースに入って、**「設定」**をクリックして以下の内容を変更します:
+1. **ナレッジ**に移動し、**外部ナレッジベースに接続**をクリックします。
- * **ナレッジベースの名称と説明**
- * **可視範囲**: 「自分だけ」、「全チームメンバー」、「一部のチームメンバー」の3つの権限範囲を提供します。権限のない人はそのナレッジベースにアクセスできません。ナレッジベースを他のメンバーに公開することを選択した場合、他のメンバーもそのナレッジベースの閲覧、編集、および削除権限を持つことになります。
- * **召回設定**
+
+ 
+
- **Top K:** ユーザーが質問をした際に、外部知識APIに関連性の高いコンテンツ片を要求します。このパラメータは、ユーザーの質問との類似度が高いテキスト片をフィルタリングするために使用されます。デフォルト値は3で、数値が大きいほど関連性のあるテキスト片が多く召回されます。
+2. 以下のフィールドを入力します:
+ - **外部ナレッジベース名**と**ナレッジベースの説明**(オプション)。
+ - **外部ナレッジベースAPI**:登録したAPI接続を選択します。DifyはこのAPIを通じてすべての検索リクエストをルーティングします。
+ - **外部ナレッジベースID**:外部システム内の特定のナレッジソースの識別子で、APIに`knowledge_id`フィールドとして渡されます。
- **スコア閾値:** テキスト片フィルタリングの類似度閾値で、設定されたスコアを超えるテキスト片のみが召回されます。デフォルト値は0.5です。数値が高いほど、テキストと質問要求の類似度が高く、召回されるテキストの数が少なくなり、結果的により精度が高まります。
+ これは外部サービスが異なるナレッジベースを区別するために使用するIDです。例えば、BedrockナレッジベースのARNや、独自のシステムで定義したIDなどです。
- 外部ナレッジベースに関連付けられた **「外部ナレッジベースAPI」** と **「外部知識ID」** は変更できません。変更が必要な場合は、新しい「外部ナレッジベースAPI」を関連付けて再接続してください。
+
+ **外部ナレッジベースAPI**と**外部ナレッジベースID**は作成後に変更できません。別のAPIやナレッジソースを使用するには、新しい外部ナレッジベースを作成してください。
+
-
-
+ - **検索設定**:
+ - **Top K**:クエリごとに取得するチャンクの最大数。値が大きいほど多くの結果が返されますが、関連性の低いコンテンツが含まれる可能性があります。
+ - **スコアしきい値**:返されるチャンクの最小類似度スコア。これを有効にすると、関連性の低い結果をフィルタリングできます。厳密な関連性にはより高い値を、より広いマッチを含めるにはより低い値を使用します。
-### 接続例
-#### LlamaCloud
+ 無効にすると、スコアに関係なくTop K制限までのすべての結果が返されます。
-DifyはLlamaCloudプラグインを公式に提供しており、LlamaCloudナレッジベースに簡単に接続することができます。
+作成後、外部ナレッジベースは組み込みナレッジベースと同様にアプリケーションで使用できます。詳細については、[アプリケーション内でナレッジを統合する](/ja/use-dify/knowledge/integrate-knowledge-within-application)を参照してください。
-**プラグインのインストール**
+## 接続例
-1. Difyの[マーケットプレイス](https://marketplace.dify.ai/)にアクセスし、`LlamaCloud`を検索します
-2. 指示に従ってLlamaCloudプラグインをインストールおよび設定します
-3. Difyプラットフォームでプラグインを有効にします
-4. プラグイン設定ウィザードに従って、LlamaCloudのAPIキーやその他の必要な情報を入力します
-5. 設定が完了すると、ナレッジベースリストに接続された外部ナレッジベースが表示されます
+### LlamaCloud
-LlamaCloudプラグインを使用すると、カスタムAPIを作成することなく、DifyプラットフォームでLlamaCloudの強力な検索機能を直接利用できます。
+Difyマーケットプレイスの[LlamaCloudプラグイン](https://marketplace.dify.ai/plugin/langgenius/llamacloud)は、カスタムAPIを構築することなくLlamaCloudナレッジベースに接続できます。プラグインをインストールし、設定ウィザードに従ってLlamaCloud APIキーを入力してください。
-詳細については、プラグインの[GitHubリポジトリ](https://github.com/langgenius/dify-official-plugins/tree/main/extensions/llamacloud)を参照してください。
-
-**ビデオチュートリアル**
-
-以下の動画では、LlamaCloudプラグインを使用して外部ナレッジベースに接続する方法を詳しく説明しています:
+以下の動画では、LlamaCloudプラグインのセットアップについて説明しています:
-## よくある質問
+
+LlamaCloudプラグインが外部ナレッジベース接続をどのように実装しているかを理解するには、[GitHubのソースコード](https://github.com/langgenius/dify-official-plugins/tree/main/extensions/llamacloud)を参照してください。
+
+
+## トラブルシューティング
+
+### 接続拒否またはタイムアウト(セルフホスト)
+
+Difyは、SquidベースのSSRFプロキシを通じてアウトバウンドHTTPリクエストをルーティングします。外部ナレッジサービスがDifyと同じホストで実行されている場合や、そのドメインが許可リストに登録されていない場合、プロキシがリクエストをブロックします。
+
+接続を許可するには、`docker/ssrf_proxy/squid.conf.template`の`allowed_domains` ACLにサービスのドメインを追加します:
+
+```text
+acl allowed_domains dstdomain .marketplace.dify.ai .your-kb-service.com
+```
+
+編集後にSSRFプロキシコンテナを再起動してください。
+
+### APIレスポンス形式の問題
-**外部ナレッジベースAPI接続時に異常が発生し、エラーが表示された場合の対処法は?**
+検索が失敗したり、予期しない結果が返される場合は、[外部ナレッジベースAPI仕様](/ja/use-dify/knowledge/external-knowledge-api#response)に対してAPIレスポンスを検証してください。
-以下は、返された各エラーコードに対するエラーメッセージと解決策です:
+一般的な問題:
-| エラーコード | エラーメッセージ | 解決策 |
-| ---- | --------------------------- | ------------------------------ |
-| 1001 | 無効なAuthorization header形式 | リクエストのAuthorization header形式を確認してください |
-| 1002 | 認証異常 | 入力したAPIキーが正しいか確認してください |
-| 2001 | ナレッジベースが存在しない | 外部ナレッジベースを確認してください |
+- 各レコードの`metadata`フィールドは、`null`ではなくオブジェクト(`{}`)である必要があります。`null`値は検索パイプラインでエラーを引き起こします。
+- `content`と`score`フィールドはすべてのレコードに存在する必要があります。
\ No newline at end of file
diff --git a/ja/use-dify/knowledge/external-knowledge-api.mdx b/ja/use-dify/knowledge/external-knowledge-api.mdx
index b6f9d68d6..1f6da3784 100644
--- a/ja/use-dify/knowledge/external-knowledge-api.mdx
+++ b/ja/use-dify/knowledge/external-knowledge-api.mdx
@@ -1,177 +1,172 @@
---
-title: 外部知識API
+title: 外部ナレッジAPI
+description: Difyと統合するために外部ナレッジサービスが実装する必要があるAPI仕様
---
⚠️ このドキュメントはAIによって自動翻訳されています。不正確な部分がある場合は、[英語版](/en/use-dify/knowledge/external-knowledge-api)を参照してください。
-## エンドポイント
+このページでは、Difyが外部ナレッジサービスからコンテンツを取得するために実装する必要があるAPIコントラクトを定義します。APIの準備ができたら、[外部ナレッジベースへの接続](/ja/use-dify/knowledge/connect-external-knowledge-base)を参照してDifyに登録してください。
-```
-POST /retrieval
-```
+## 認証
-## ヘッダー
+Difyは、設定したAPIキーをBearerトークンとしてすべてのリクエストで送信します:
-このAPIは、Difyとは独立して開発者が維持管理するナレッジベースに接続するために使用されます。詳細については、[外部ナレッジベースへの接続](/ja/use-dify/knowledge/connect-external-knowledge-base)を参照してください。`Authorization` HTTPヘッダーで `API-Key` を使用して権限を検証できます。認証ロジックは、以下のように検索APIで定義します:
-
-```
+```text
Authorization: Bearer {API_KEY}
```
-## リクエストボディ要素
-
-リクエストは以下のJSON形式のデータを受け入れます。
-
-| プロパティ | 必須 | 型 | 説明 | 例値 |
-|------------|------|-----|------|------|
-| knowledge_id | TRUE | string | ナレッジベースの一意ID | AAA-BBB-CCC |
-| query | TRUE | string | ユーザーのクエリ | Difyとは何ですか? |
-| retrieval_setting | TRUE | object | 知識の検索パラメータ | 以下参照 |
-| metadata_condition | TRUE | object | 元の配列のフィルタリング | 以下参照 |
-
-`retrieval_setting` プロパティは以下のキーを含むオブジェクトです:
+認証ロジックは開発者側で定義します。Difyはキーを渡すだけで、検証は行いません。
-| プロパティ | 必須 | 型 | 説明 | 例値 |
-|------------|------|-----|------|------|
-| top_k | TRUE | int | 検索結果の最大数 | 5 |
-| score_threshold | TRUE | float | クエリに対する結果の関連性スコアの閾値、範囲:0〜1 | 0.5 |
+## リクエスト
-`metadata_condition` プロパティは以下のキーを含むオブジェクトです:
-
-| 属性 | 必須かどうか | 型 | 説明 | 例 |
-|------|----------|------|------|--------|
-| logical_operator | いいえ | 文字列 | 論理演算子、値は `and` または `or`、デフォルトは `and` | and |
-| conditions | はい | 配列(オブジェクト) | 条件リスト | 以下参照 |
-
-`conditions` 配列の各オブジェクトには以下のキーが含まれます:
-
-| 属性 | 必須かどうか | 型 | 説明 | 例 |
-|------|----------|------|------|--------|
-| name | はい | 配列(文字列) | フィルタリングするmetadataの名前 | `["category", "tag"]` |
-| comparison_operator | はい | 文字列 | 比較演算子 | `contains` |
-| value | いいえ | 文字列 | 比較値、演算子が `empty`、`not empty`、`null`、`not null` の場合は省略可能 | `"AI"` |
-
-サポートされている `comparison_operator` 演算子:
-
-- `contains`:特定の値を含む
-- `not contains`:特定の値を含まない
-- `start with`:特定の値で始まる
-- `end with`:特定の値で終わる
-- `is`:特定の値と等しい
-- `is not`:特定の値と等しくない
-- `empty`:空である
-- `not empty`:空ではない
-- `=`:等しい
-- `≠`:等しくない
-- `>`:より大きい
-- `<`:より小さい
-- `≥`:以上
-- `≤`:以下
-- `before`:特定の日付より前
-- `after`:特定の日付より後
+```text
+POST {your-endpoint}/retrieval
+Content-Type: application/json
+Authorization: Bearer {API_KEY}
+```
-## リクエスト構文
+Difyは設定したエンドポイントURLに`/retrieval`を追加します。`https://your-service.com`を登録した場合、Difyは`https://your-service.com/retrieval`にリクエストを送信します。
+
+### ボディ
+
+| プロパティ | 必須 | 型 | 説明 |
+|:---------|:---------|:-----|:------------|
+| `knowledge_id` | はい | string | 外部システムにおけるナレッジソースの識別子。これは接続時に**外部ナレッジID**フィールドに入力した値です。クエリを正しいナレッジソースにルーティングするために使用します。 |
+| `query` | はい | string | ユーザーの検索クエリ。 |
+| `retrieval_setting` | はい | object | 検索パラメータ。[下記](#retrieval_setting)を参照。 |
+| `metadata_condition` | いいえ | object | メタデータフィルタリング条件。[下記](#metadata_condition)を参照。 |
+
+#### `retrieval_setting`
+
+| プロパティ | 必須 | 型 | 説明 |
+|:---------|:---------|:-----|:------------|
+| `top_k` | はい | int | 返す結果の最大数。 |
+| `score_threshold` | はい | float | 最小類似度スコア(0-1)。Difyでスコアしきい値が無効になっている場合、この値は`0.0`になります。 |
+
+#### `metadata_condition`
+
+
+Difyはメタデータ条件をAPIに渡しますが、現在ユーザーが設定するためのUIは提供していません。このパラメータはプログラムによる使用のみ可能です。
+
+
+| プロパティ | 必須 | 型 | 説明 |
+|:---------|:---------|:-----|:------------|
+| `logical_operator` | いいえ | string | `and`または`or`。デフォルト:`and`。 |
+| `conditions` | はい | array[object] | フィルタ条件のリスト。 |
+
+`conditions`内の各オブジェクト:
+
+| プロパティ | 必須 | 型 | 説明 |
+|:---------|:---------|:-----|:------------|
+| `name` | はい | string | フィルタリングするメタデータフィールド名。 |
+| `comparison_operator` | はい | string | 比較演算子。下記のサポートされている値を参照。 |
+| `value` | いいえ | string, number, または array[string] | 比較値。`empty`、`not empty`、`null`、または`not null`を使用する場合は省略。 |
+
+
+
+| 演算子 | 説明 |
+|:---------|:------------|
+| `contains` | 値を含む |
+| `not contains` | 値を含まない |
+| `start with` | 値で始まる |
+| `end with` | 値で終わる |
+| `is` | 値と等しい |
+| `is not` | 値と等しくない |
+| `in` | リスト内のいずれかの値に一致 |
+| `not in` | リスト内のいずれの値にも一致しない |
+| `empty` | 空である |
+| `not empty` | 空ではない |
+| `=` | 等しい(数値) |
+| `≠` | 等しくない(数値) |
+| `>` | より大きい |
+| `<` | より小さい |
+| `≥` | 以上 |
+| `≤` | 以下 |
+| `before` | 日付より前 |
+| `after` | 日付より後 |
+
+
+
+### リクエスト例
```json
-POST /retrieval HTTP/1.1
--- ヘッダー
-Content-Type: application/json
-Authorization: Bearer your-api-key
--- データ
{
"knowledge_id": "your-knowledge-id",
- "query": "your question",
- "retrieval_setting":{
- "top_k": 2,
+ "query": "What is Dify?",
+ "retrieval_setting": {
+ "top_k": 3,
"score_threshold": 0.5
}
}
```
-## レスポンス要素
+## レスポンス
-アクションが成功した場合、サービスはHTTP 200レスポンスを返します。
+`records`配列を含むJSONボディとともにHTTP 200を返します。クエリに一致する結果がない場合は、空の配列を返します:`{"records": []}`。
-サービスは以下のデータをJSON形式で返します。
+### `records`
-| プロパティ | 必須 | 型 | 説明 | 例値 |
-|------------|------|-----|------|------|
-| records | TRUE | List[Object] | ナレッジベースのクエリ結果のレコードリスト | 以下参照 |
+| プロパティ | 型 | 説明 |
+|:---------|:-----|:------------|
+| `content` | string | 取得したテキストチャンク。DifyはこれをLLMに渡すコンテキストとして使用します。 |
+| `score` | float | 類似度スコア(0–1)。スコアしきい値フィルタリングと結果のランキングに使用されます。 |
+| `title` | string | ソースドキュメントのタイトル。 |
+| `metadata` | object | Difyによって保持される任意のキーと値のペア。 |
-`records` プロパティは以下のキーを含むリストオブジェクトです:
+Difyはフィールドが欠落しているレコードを拒否しませんが、`content`または`score`を省略すると、不完全またはランク付けされていない結果が生成されます。
-| プロパティ | 必須 | 型 | 説明 | 例値 |
-|------------|------|-----|------|------|
-| content | TRUE | string | ナレッジベースのデータソースからのテキストチャンクを含む | Dify:GenAIアプリケーションのイノベーションエンジン |
-| score | TRUE | float | クエリに対する結果の関連性スコア、範囲:0〜1 | 0.5 |
-| title | TRUE | string | ドキュメントタイトル | Dify紹介 |
-| metadata | FALSE | json | データソース内のドキュメントのメタデータ属性とその値を含む | 例参照 |
+
+レコードに`metadata`を含める場合、それは`null`ではなくオブジェクト(`{}`)である必要があります。`null`のメタデータ値はDifyの検索パイプラインでエラーを引き起こします。
+
-## レスポンス構文
+### レスポンス例
```json
-HTTP/1.1 200
-Content-type: application/json
{
- "records": [{
- "metadata": {
- "path": "s3://dify/knowledge.txt",
- "description": "dify知識ドキュメント"
- },
- "score": 0.98,
- "title": "knowledge.txt",
- "content": "これは外部知識のドキュメントです。"
- },
- {
- "metadata": {
- "path": "s3://dify/introduce.txt",
- "description": "dify紹介"
- },
- "score": 0.66,
- "title": "introduce.txt",
- "content": "GenAIアプリケーションのイノベーションエンジン"
+ "records": [
+ {
+ "content": "This is the document for external knowledge.",
+ "score": 0.98,
+ "title": "knowledge.txt",
+ "metadata": {
+ "path": "s3://dify/knowledge.txt",
+ "description": "dify knowledge document"
}
+ },
+ {
+ "content": "The Innovation Engine for GenAI Applications",
+ "score": 0.66,
+ "title": "introduce.txt",
+ "metadata": {}
+ }
]
}
```
-## エラー
+## エラーハンドリング
-アクションが失敗した場合、サービスは以下のエラー情報をJSON形式で返します:
+Difyはレスポンスの HTTP ステータスコードをチェックします。200以外のステータスはユーザーに表示されるエラーを発生させます。
-| プロパティ | 必須 | 型 | 説明 | 例値 |
-|------------|------|-----|------|------|
-| error_code | TRUE | int | エラーコード | 1001 |
-| error_msg | TRUE | string | API例外の説明 | 無効な認証ヘッダー形式です。`Bearer ` 形式が期待されます。 |
+オプションでJSON形式の構造化エラー情報を返すことができます:
-`error_code` プロパティには以下の種類があります:
+| プロパティ | 型 | 説明 |
+|:---------|:-----|:------------|
+| `error_code` | int | 開発者が定義するアプリケーションレベルのエラーコード。 |
+| `error_msg` | string | 人間が読めるエラーの説明。 |
-| コード | 説明 |
-|--------|------|
+以下は推奨されるエラーコードです。これらは慣例であり、Difyによって強制されるものではありません:
+
+| コード | 推奨される使用方法 |
+|:-----|:----------------|
| 1001 | 無効な認証ヘッダー形式 |
| 1002 | 認証失敗 |
-| 2001 | 知識が存在しません |
-
-## 開発例
-
-以下の動画では、LlamaCloudを例として外部ナレッジベースプラグインの開発方法を学ぶことができます:
+| 2001 | ナレッジベースが見つからない |
-
+### エラーレスポンス例
-詳細については、プラグインの[GitHubリポジトリ](https://github.com/langgenius/dify-official-plugins/tree/main/extensions/llamacloud)を参照してください。
-
-### HTTPステータスコード
-
-**AccessDeniedException**
-アクセス権限がないため、リクエストが拒否されました。権限を確認して再試行してください。
-HTTPステータスコード:403
-
-**InternalServerException**
-内部サーバーエラーが発生しました。リクエストを再試行してください。
-HTTPステータスコード:500
+```json
+{
+ "error_code": 1002,
+ "error_msg": "Authorization failed. Please check your API key."
+}
+```
\ No newline at end of file
diff --git a/ja/use-dify/knowledge/integrate-knowledge-within-application.mdx b/ja/use-dify/knowledge/integrate-knowledge-within-application.mdx
index 419e1eb56..bae57faff 100644
--- a/ja/use-dify/knowledge/integrate-knowledge-within-application.mdx
+++ b/ja/use-dify/knowledge/integrate-knowledge-within-application.mdx
@@ -3,205 +3,199 @@ title: アプリ内でのナレッジベース統合
sidebarTitle: アプリ内で統合
---
- ⚠️ このドキュメントは AI によって自動翻訳されています。不正確な部分がある場合は、[英語版](/en/use-dify/knowledge/integrate-knowledge-within-application)を参照してください。
+ ⚠️ このドキュメントはAIによって自動翻訳されています。不正確な部分がある場合は、[英語版](/en/use-dify/knowledge/integrate-knowledge-within-application)を参照してください。
-### 1 ナレッジベースの引用プロセス
+### ナレッジベースを統合したアプリケーションの作成
-ナレッジベースは、大言語モデルに対して外部知識を提供し、ユーザーの質問に正確に回答するために使用されます。Difyの[すべてのアプリタイプ](/ja/use-dify/getting-started/key-concepts#difyアプリ)内で作成されたナレッジベースを関連付けることができます。
+**「ナレッジベース」** は、LLMを通じてユーザーの質問に正確な回答を提供するための外部情報源として使用できます。Difyの[すべてのアプリタイプ](/ja/use-dify/getting-started/key-concepts#dify-app)内で既存のナレッジベースを関連付けることができます。
-チャットボットを例にすると、以下の手順で進めます:
+チャットアシスタントを例にすると、以下の手順で進めます:
-1. **スタジオ -- アプリを作成 -- チャットボットを作成**に進む
-2. **コンテキスト設定**に進み、**追加**をクリックし、作成済みのナレッジベースを選択
-3. **コンテキスト設定 -- パラメータ設定**内で**リコール策略**を設定
-4. ナレッジベース内のドキュメント検索を最適化するには、**メタデータフィルタリング**を活用します。
-5. **コンテキスト設定 - 検索設定**で**検索パラメータ**を構成します。
+1. **ナレッジ -- ナレッジを作成 -- ファイルをアップロード**に進む
+2. **スタジオ -- アプリを作成 -- チャットボットを選択**に進む
+3. **コンテキスト**に進み、**追加**をクリックし、作成済みのナレッジベースを選択
+4. ナレッジベース内のドキュメント検索を最適化するには、**メタデータフィルタリング**を活用します
+5. **コンテキスト設定 -- 検索設定**で**検索設定**を構成します
6. **機能追加**内で**引用と帰属**をオンにする
7. **デバッグとプレビュー**内でナレッジベース関連のユーザー質問を入力してデバッグ
-8. デバッグが完了したら、**保存して公開**し、AIナレッジベースQ\&Aアプリケーションとして公開
+8. デバッグが完了したら、**公開**ボタンをクリックし、独自のナレッジに基づいたAIアプリケーションを作成!
***
-### ナレッジベースの関連付けとリコールモードの設定
+### ナレッジベースの関連付けと検索モードの設定
-現在のアプリケーションのコンテキストが複数のナレッジベースに関連している場合、検索結果をより正確にするためにリコールモードを設定する必要があります。**コンテキスト→パラメータ設定→リコール設定** に進み、ナレッジベースのリコールモードを選択します。
+複数のナレッジベースを利用するアプリケーションでは、検索されるコンテンツの精度を向上させるために検索モードを設定することが重要です。ナレッジベースの検索モードを設定するには、**コンテキスト -- 検索設定 -- Rerank設定**に進みます。
#### 検索設定
-複数リコールモードでは、検索器はアプリに関連付けられたすべてのナレッジベースから、ユーザーの問題に関連するテキスト内容を検索します。そして、複数リコールの関連文書結果を統合します。以下は複数リコールモードの技術フローチャートです:
+検索器はアプリに関連付けられたすべてのナレッジベースから、ユーザーの質問に関連するテキスト内容を検索します。その後、結果が統合されます。以下はマルチパス検索モードの技術フローチャートです:
-
+
-ユーザーの意図に基づいて、すべての **「コンテキスト」** に追加されたナレッジベースを同時に検索し、関連するテキスト断片を複数のナレッジベースからクエリし、ユーザーの問題に最も一致する内容を選択します。最適なコンテンツをRerank戦略で見つけてユーザーに回答します。この方法はより科学的な検索原理です。
+この方法は、**「コンテキスト」** に追加されたすべてのナレッジベースを同時にクエリし、複数のナレッジベースから関連するテキストチャンクを検索し、ユーザーの質問に一致するすべてのコンテンツを収集し、最終的にRerank戦略を適用してユーザーに回答するための最も適切なコンテンツを特定します。この検索アプローチは、複数のナレッジベースを同時に活用することで、より包括的で正確な結果を提供します。
-
+
-例:アプリAのコンテキストには、K1、K2、K3 の3つのナレッジベースが関連付けられています。ユーザーが問い合わせを入力すると、3つのナレッジベースで検索を行い、複数の内容をまとめます。最適な内容を見つけるためには、Rerank戦略を使用してユーザーの問題に最も関連する内容を特定し、結果をより正確で信頼性の高いものにします。
+例えば、アプリAにはK1、K2、K3の3つのナレッジベースがあります。ユーザーが質問を送信すると、これらのナレッジベースから複数の関連するコンテンツが検索されて結合されます。最も関連性の高いコンテンツを特定するために、Rerank戦略を使用してユーザーのクエリに最も関連するコンテンツを見つけ、結果の精度と信頼性を向上させます。
-実際の質疑応答シーンでは、各ナレッジベースのコンテンツの出典や検索方法が異なる場合があります。複数の混合コンテンツが返される検索に対して、Rerank戦略はより科学的なコンテンツの並べ替えメカニズムです。これにより、候補コンテンツリストをユーザーの問題に一致させ、複数の知識間の結果の順序を改善し、最も一致するコンテンツを見つけて回答の質とユーザーエクスペリエンスを向上させることができます。
+実際のQ&Aシナリオでは、各ナレッジベースのコンテンツの出典や検索方法が異なる場合があります。検索から返される混合コンテンツを管理するために、Rerank戦略は精緻なソートメカニズムとして機能します。これにより、候補コンテンツがユーザーの質問と適切に一致し、複数のナレッジベース間の結果のランキングを最適化して最も適切なコンテンツを特定し、回答の品質と全体的なユーザーエクスペリエンスを向上させます。
-Rerankの使用コストとビジネス要件を考慮すると、複数リコールモードは次の2つのRerank設定を提供します:
+Rerankの使用コストとビジネス要件を考慮して、マルチパス検索モードは2つのRerank設定を提供します:
-#### 重み設定
+**ウェイト設定**
-この設定には外部のRerankモデルの構成は不要で、コンテンツの再並べ替えに**追加コストは発生しません**。セマンティクスまたはキーワードの重み比率を設定します。
+この設定は内部のスコアリングメカニズムを使用し、外部のリランクモデルを必要としないため、**追加の処理コストは発生しません**。セマンティクスまたはキーワードの重み比率スライダーを調整することで、最も適切なコンテンツマッチング戦略を選択できます。
* **セマンティック値が1の場合**
- セマンティック検索モードが有効になります。このモードでは、埋め込みモデルを利用して、クエリに正確な単語がナレッジベースに存在しない場合でも、ベクトル距離を計算することで検索の精度を向上させ、適切なコンテンツを返すことができます。また、複数言語のコンテンツを扱う場合には、セマンティック検索が異なる言語間の意味を把握し、より正確なクロス言語検索結果を提供します。
+ このモードはセマンティック検索のみを有効にします。埋め込みモデルを利用することで、クエリの正確な単語がナレッジベースに存在しなくても、ベクトル距離を計算して関連コンテンツを返すことで検索の深度を向上させることができます。さらに、多言語コンテンツを扱う場合、セマンティック検索は異なる言語間の意味を把握し、より正確なクロス言語検索結果を提供します。
* **キーワード値が1の場合**
- この場合、キーワード検索モードが有効になります。ユーザーが入力した情報テキストがナレッジベース全体と一致し、ユーザーが正確な情報や用語を把握している場合に適しています。この方法は計算リソースを少なく消費し、大量の文書を迅速に検索するのに適しています。
+ このモードはキーワード検索のみを有効にします。ユーザーの入力テキストをナレッジベースの全文と照合し、ユーザーが正確な情報や用語を把握している場合に最適です。この方法はリソース効率が良く、大量のドキュメントリポジトリから情報を迅速に検索するのに適しています。
* **カスタムキーワードとセマンティックの重み**
- セマンティック検索またはキーワード検索モードのいずれかを選択する代わりに、柔軟なカスタム重み設定も利用可能です。両者の重みを調整し続けることで、ビジネスシナリオに最も適した重み比率を見つけることができます。
+ セマンティックまたはキーワード検索モードのみを有効にする以外に、柔軟なカスタムウェイト設定も提供しています。両方の重みを継続的に調整することで、ビジネスシナリオに最適な重み比率を決定できます。
-**Rerankモデル**
+**リランクモデル**
-Rerankモデルは外部のスコアリングシステムで、ユーザーの質問と各候補文書の関連性スコアを計算します。これにより、セマンティックソートの結果が改善され、関連性に基づいて高い順に並べ替えられた文書リストが返されます。
+リランクモデルは外部のスコアリングシステムで、ユーザーの質問と提供された各候補ドキュメント間の類似性スコアを計算し、セマンティックランキングの結果を改善して、類似性スコアの高い順から低い順にソートされたドキュメントリストを返します。
-この方法には追加のコストが発生しますが、ナレッジベースのコンテンツが複雑な場合に特に適しています。セマンティッククエリとキーワードマッチングのコンテンツが混在している場合や、複数言語のコンテンツが含まれる場合に優れた結果を提供します。
+この方法は追加のコストが発生しますが、セマンティッククエリとキーワードマッチングを組み合わせたコンテンツや、多言語の返却コンテンツを含むケースなど、複雑なナレッジベースコンテンツの処理により優れています。
-Difyは現在、複数のRerankモデルをサポートしており、"モデルサプライヤー"ページでRerankモデル(例:Cohere、Jina AIなど)のAPIキーを入力することができます。
+Difyは現在、複数のリランクモデルをサポートしています。外部のリランクモデルを使用するには、APIキーを提供する必要があります。「モデルプロバイダー」ページでリランクモデル(Cohere、Jina AIなど)のAPIキーを入力してください。
-
+
**調整可能なパラメータ**
-* **TopK**
+* **TopK**: ユーザーのクエリに最も類似したテキストチャンクをいくつ検索するかを決定します。また、選択したモデルのコンテキストウィンドウに基づいてチャンク数を自動的に調整します。デフォルト値は**3**で、数値が高いほどより多くのテキストチャンクがリコールされます。
+* **スコアしきい値**: チャンクが検索されるために必要な最小類似性スコアを設定します。このスコアを超えるチャンクのみが検索されます。デフォルト値は**0.5**です。しきい値が高いほど、より高い類似性が求められ、検索されるチャンク数は少なくなります。
- ユーザーの質問に最も類似したテキストセグメントを選択するために使用されます。システムはモデルの選択に基づいてコンテキストウィンドウサイズを動的に調整し、セグメントの数を増やします。数値が高いほど、リコールされるテキストセグメントの数が増加します。
-* **スコアの閾値**
-
- テキストセグメントの選択に使用される類似性の閾値を設定します。ベクトル検索の類似性スコアは、設定したスコアを超える必要があり、数値が高いほどリコールされるテキストの数が減少します。
-
-複数のリコールモードを利用することで、高品質なリコール効果を得ることができるため、リコールモードを複数のリコールモードに設定することを強くお勧めします。
-
-### メタデータを使用して知識をフィルタリングする
+### メタデータフィルタリング
#### チャットフロー/ワークフロー
-**チャットフロー/ワークフロー**の**知識検索**ノードでは、**メタデータフィルタリング**機能を使用して文書を正確に検索できます。この機能は、文書のメタデータフィールド(タグ、カテゴリ、アクセス権限など)に基づいて検索結果を最適化するのに役立ちます。
-
-**設定手順**
-
-1. フィルタリングモードを選択する
-
- * **無効モード**(デフォルト):**メタデータフィルタリング**機能を無効にし、フィルタリング条件を設定しません。
- * **自動モード**:システムは**知識検索**ノードに渡される**クエリ変数**に基づいてフィルタリング条件を自動的に設定します。簡単なフィルタリング要件に適しています。
-
- > 自動モードを有効にした後も、**モデル**欄で文書検索タスクを実行するための適切な大規模モデルを選択する必要があります。
+**ナレッジ検索**ノードでは、メタデータフィールドを使用してドキュメントをフィルタリングできます。
- 
+#### 手順
- * **手動モード**:ユーザーが手動でフィルタリング条件を設定し、フィルタリングルールを自由に設定できます。複雑なフィルタリング要件に適しています。
+1. フィルタリングモードを選択する:
+ - **無効(デフォルト):** メタデータフィルタリングなし。
-
+ - **自動:** **ナレッジ検索**ノードのクエリ変数からフィルタが自動設定されます。
-2. **手動モード**を選択した場合は、以下の手順でフィルタリング条件を設定してください:
+ > 注意:自動モードではドキュメント検索にモデル選択が必要です。
- 1. **条件**ボタンをクリックすると、設定ボックスが表示されます。
+ 
- 
+ - **手動:** フィルタを手動で設定します。
- 2. 設定ボックスの**+条件を追加**ボタンをクリックします:
+
- * ドロップダウンリストから選択したナレッジベース内の既存のメタデータフィールドを選択し、フィルタリング条件リストに追加できます。
+2. 手動モードの場合、以下の手順に従ってください:
- > 複数のナレッジベースを同時に選択した場合、ドロップダウンリストにはこれらのナレッジベースに共通するメタデータフィールドのみが表示されます。
+ 1. **条件**をクリックして設定パネルを開きます。
- * **メタデータを検索**検索ボックスで必要なフィールドを検索し、フィルタリング条件リストに追加することもできます。
+ 
- 
+ 2. **+条件を追加**をクリック:
+ - ドロップダウンリストから選択したナレッジベース内のメタデータフィールドを選択します。
+ > 注意:複数のナレッジベースを選択した場合、共通のメタデータフィールドのみがリストに表示されます。
+ - 検索ボックスを使用して特定のフィールドを検索できます。
- 3. 複数のフィールドを追加する必要がある場合は、**+条件を追加**ボタンを繰り返しクリックします。
+ 
- 
+ 3. **+条件を追加**をクリックしてさらにフィールドを追加します。
- 4. フィールドタイプごとのフィルタリング条件を設定します:
+ 
- | フィールドタイプ | フィルタリング条件 | フィルタリング条件の説明と例 |
- | ------------ | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
- | 文字列 | is | フィールドの値は入力した値と完全に一致する必要があります。例えば、フィルタリング条件を is `"公開済み"` に設定した場合、「公開済み」とマークされた文書のみが返されます。 |
- | is not | フィールドの値は入力した値と一致してはいけません。例えば、フィルタリング条件を `is not "下書き"` に設定した場合、「下書き」とマークされていないすべての文書が返されます。 | |
- | is empty | フィールドの値が空です。この条件を設定すると、その文字列がマークされていない文書を検索できます。 | |
- | is not empty | フィールドの値が空ではありません。この条件を設定すると、その文字列がマークされている文書を検索できます。 | |
- | contains | フィールドの値に入力したテキストが含まれています。例えば、フィルタリング条件を `contains "レポート"` に設定した場合、「月次レポート」や「年次レポート」など、「レポート」を含むすべての文書が返されます。 | |
- | not contains | フィールドの値に入力したテキストが含まれていません。例えば、フィルタリング条件を `not contains "下書き"` に設定した場合、「下書き」を含まないすべての文書が返されます。 | |
- | starts with | フィールドの値が入力したテキストで始まります。例えば、フィルタリング条件を `starts with "Doc"` に設定した場合、「Doc1」や「Document」など、「Doc」で始まるすべての文書が返されます。 | |
- | ends with | フィールドの値が入力したテキストで終わります。例えば、フィルタリング条件を `ends with "2024"` に設定した場合、「レポート 2024」や「概要 2024」など、「2024」で終わるすべての文書が返されます。 | |
- | 数値 | = | フィールドの値は入力した数値と等しい必要があります。例えば、`= 10` は数値が10とマークされているすべての文書に一致します。 |
- | ≠ | フィールドの値は入力した数値と等しくてはいけません。例えば、`≠ 5` は数値が5とマークされていないすべての文書を返します。 | |
- | > | フィールドの値は入力した数値より大きい必要があります。例えば、`> 100` は数値が100より大きいとマークされているすべての文書を返します。 | |
- | < | フィールドの値は入力した数値より小さい必要があります。例えば、`< 50` は数値が50より小さいとマークされているすべての文書を返します。 | |
- | ≥ | フィールドの値は入力した数値以上である必要があります。例えば、`≥ 20` は数値が20以上とマークされているすべての文書を返します。 | |
- | ≤ | フィールドの値は入力した数値以下である必要があります。例えば、`≤ 200` は数値が200以下とマークされているすべての文書を返します。 | |
- | is empty | フィールドに値が設定されていません。例えば、`is empty` はそのフィールドに数値がマークされていないすべての文書を返します。 | |
- | is not empty | フィールドに値が設定されています。例えば、`is not empty` はそのフィールドに数値がマークされているすべての文書を返します。 | |
- | 時間 | is | フィールドの時間値は選択した時間と完全に一致する必要があります。例えば、`is "2024-01-01"` は2024年1月1日とマークされている文書のみを返します。 |
- | before | フィールドの時間値は選択した時間より前でなければなりません。例えば、`before "2024-01-01"` は2024年1月1日より前とマークされているすべての文書を返します。 | |
- | after | フィールドの時間値は選択した時間より後でなければなりません。例えば、`after "2024-01-01"` は2024年1月1日より後とマークされているすべての文書を返します。 | |
- | is empty | フィールドの時間値が空です。この条件を設定すると、その時間情報がマークされていない文书を検索できます。 | |
- | is not empty | フィールドの時間値が空ではありません。この条件を設定すると、その时间信息がマークされている文书を検索できます。 | |
+ 4. フィルタ条件を設定:
- 5. メタデータフィルタリング値を選択して追加します:
+ | フィールドタイプ | 演算子 | 説明と例 |
+ | --- | --- | --- |
+ | 文字列 | is | 完全一致が必要。例:`is "公開済み"` は「公開済み」とマークされたドキュメントのみを返します。 |
+ | | is not | 完全一致を除外。例:`is not "下書き"` は「下書き」とマークされたものを除くすべてのドキュメントを返します。 |
+ | | is empty | フィールドに値がないドキュメントを返します。 |
+ | | is not empty | フィールドに何らかの値があるドキュメントを返します。 |
+ | | contains | 部分テキストに一致。例:`contains "レポート"` は「月次レポート」、「年次レポート」などを返します。 |
+ | | not contains | 指定テキストを含むドキュメントを除外。例:`not contains "下書き"` はフィールドに「下書き」を含まないドキュメントを返します。 |
+ | | starts with | 先頭のテキストに一致。例:`starts with "Doc"` は「Doc1」、「Document」などを返します。 |
+ | | ends with | 末尾のテキストに一致。例:`ends with "2024"` は「レポート 2024」、「概要 2024」などを返します。 |
+ | 数値 | = | 正確な数値一致。例:`= 10` は正確に10とマークされたドキュメントを返します。 |
+ | | ≠ | 特定の数値を除外。例:`≠ 5` は5とマークされたものを除くすべてのドキュメントを返します。 |
+ | | > | より大きい。例:`> 100` は100より大きい値のドキュメントを返します。 |
+ | | < | より小さい。例:`< 50` は50より小さい値のドキュメントを返します。 |
+ | | ≥ | 以上。例:`≥ 20` は20以上の値のドキュメントを返します。 |
+ | | ≤ | 以下。例:`≤ 200` は200以下の値のドキュメントを返します。 |
+ | | is empty | フィールドに値が割り当てられていない。例:`is empty` はこのフィールドに数値が割り当てられていないすべてのドキュメントを返します。 |
+ | | is not empty | フィールドに値が割り当てられている。例:`is not empty` はこのフィールドに数値が割り当てられているすべてのドキュメントを返します。 |
+ | 日付 | is | 正確な日付一致。例:`is "2024-01-01"` は2024年1月1日の日付のドキュメントを返します。 |
+ | | before | 日付より前。例:`before "2024-01-01"` は2024年1月1日より前の日付のドキュメントを返します。 |
+ | | after | 日付より後。例:`after "2024-01-01"` は2024年1月1日より後の日付のドキュメントを返します。 |
+ | | is empty | 日付値がないドキュメントを返します。 |
+ | | is not empty | 何らかの日付値があるドキュメントを返します。 |
+
+ 5. フィルタ値を追加:
- * **変数**:**変数(Variable)を選択し、そのチャットフロー/ワークフロー**内で文書のフィルタリングに使用する変数を選択します。
+ - **変数:** 既存の**チャットフロー/ワークフロー**変数から選択します。
- 
+ 
- * **定数**:**定数(Constant)**を選択し、必要な定数値を手動で入力します。
+ - **定数:** 特定の値を入力します。
- > **时间**フィールドタイプは定数のみを使用した文書フィルタリングをサポートしています。时间フィールドを使用して文书をフィルタリングする場合、システムは时间选択ツールを表示し、特定の时点を选択できるようにします。
+ > 時間型フィールドは定数でのみフィルタリングできます。日付ピッカーは時間型フィールド用です。
- 
+ 
-
- 定数フィルタリング值を入力する場合、そのフィルタリング值はそのメタデータフィールド值のテキストと完全に一致する必要があり、システムはその文書を返します。例えば、フィルタリング条件を `starts with "アプリ"` または `contains "アプリ"` に設定した場合、システムは「Apple」とマークされた文書を返しますが、「apple」や「APPLE」とマークされた文书は返しません。
-
+
+フィルタ値は大文字と小文字を区別し、完全一致が必要です。例:`starts with "App"` または `contains "App"` のフィルタは「Apple」に一致しますが、「apple」や「APPLE」には一致しません。
+
- 6. フィルタリング条件间の论理関系 `AND` または `OR` を设置します。
- * `AND`:文书がすべてのフィルタリング条件を满足する場合にのみ、その文书を検索できます。
- * `OR`:文书がいずれかのフィルタリング条件を满足する場合、その文书を検索できます。
+6. 論理演算子を設定:
+ - `AND`:すべての条件に一致
+ - `OR`:いずれかの条件に一致
- 
+
- 7. ポップアップを闭じると、システムは自动的に选択内容を保存します。
+7. パネルの外側をクリックして設定を保存します。
- **チャットボット**
+#### チャットボット
- **チャットボット**では、**メタデータフィルタリング**构能はインターフェースの左下にある**コンテキスト**セクションの下に位置し、设置方法は**チャットフロー/ワークフロー**での操做と同じです。同じ手顺でメタデータフィルタリング条件を设置できます。
+**ナレッジ**の下(左下)で**メタデータフィルタリング**にアクセスします。設定手順は**チャットフロー/ワークフロー**と同じです。
- 
+
- #### ナレッジベースでリンクされたアプリを表示する
+### ナレッジベースでリンクされたアプリを表示する
- ナレッジベースの左侧に関連するアプリを表示し、アプリケーションページでの变更をサポートします。
+ナレッジベースの左側に、リンクされたすべてのアプリが表示されます。円形のアイコンにカーソルを合わせると、リンクされたすべてのアプリのリストが表示されます。右側のジャンプボタンをクリックすると、すぐに閲覧できます。
- 
+
- #### よくある質問
+### よくある質問
- 1. **複数のリコールモードでのRerank設定の選択方法は?**
+11. **マルチリコールモードでのRerank設定の選択方法は?**
- ユーザーが正确な信息や用语を知っている場合は、キーワード検索を使用して一致する结果を正确に取得できるため、「重み设置」の**キーワード优先モード**をおすすめします。
+ユーザーが正確な情報や用語を知っている場合は、キーワード検索を使用して正確なマッチングを行うことができます。その場合、ウェイト設定で**「キーワード」を1**に設定します。
- ナレッジベースに正确な単语が表示されていない场合や、クロス语言クエリがある场合は、「重み设置」の**セマンティック优先モード**を选択することをおすすめします。
+ナレッジベースに正確な用語が含まれていない場合や、クロス言語クエリが関係する場合は、ウェイト設定で**「セマンティック」を1**に設定することをお勧めします。
- ビジネスユーザーが实际の质问シナリオに详しく、セマンティックまたはキーワードの比率を积极的に调整したい场合は、「重み设置」の**カスタムモード**を选択することをお勧めします。
+実際のユーザークエリに精通しており、セマンティクスとキーワードの比率を調整したい場合は、**ウェイト設定**で手動で比率を調整できます。
- ナレッジベースのコンテンツが复杂であり、セマンティックまたはキーワードのシンプルな条件で一致させることができない场合、伤っ正确な返信が必要で追加料金を支払うことを望む场合は、コンテンツ检索に**Rerankモデル**を使用することをおすすめします。
+ナレッジベースのコンテンツが複雑で、単純なセマンティックまたはキーワードマッチングでは不十分な場合、かつ高精度な回答が必要で追加コストを支払う意思がある場合は、コンテンツ検索に**リランクモデル**の使用を検討してください。
- 2. **「重み设置」が见つからない、またはRerankモデルの设定が必要な场合、どのように対処すれば良いですか?**
+2. **「ウェイト設定」が見つからない、またはリランクモデルの設定が必要な場合、どのように対処すれば良いですか?**
- 以下は、複数のリコール方法がナレッジベース検索に与える影响を示します:
+以下は、ナレッジベース検索方法がマルチパス検索に与える影響を示しています:
- 
+
- 3. **複数のナレッジベースを引用する际、「重み设置」を调整できず、エラーが表示される场合はどう対処すれば良いですか?**
+3. **複数のナレッジベースを参照する際、「ウェイト設定」を調整できず、エラーメッセージが表示される場合はどう対処すれば良いですか?**
- この问题が发生すると、引用される複数のナレッジベースで使用される埋め込みモデルが一致しないためです。检索コンテンツの竞争を避けるためには、以下の推荐解决策を试みてください。「モデルプロバイダー」で设置を行い、Rerankモデルを有効にするか、ナレッジベースの検索设置を统一してください。
+この問題は、参照されている複数のナレッジベースで使用されている埋め込みモデルが一致していないために発生し、検索コンテンツの競合を避けるためにこの通知が表示されます。「モデルプロバイダー」でリランクモデルを設定して有効にするか、ナレッジベースの検索設定を統一することをお勧めします。
- 4. **複数のリコール方法が使用されている场合、「重み设置」オプションが见つからず、Rerankモデルしか表示されない理由は何ですか?**
+4. **マルチリコールモードで「ウェイト設定」オプションが見つからず、リランクモデルしか表示されない理由は何ですか?**
- ナレッジベースが「エコノミー」モードのインデックスモードを使用しているかどうかを确认してください。その场合は、「ハイクオリティ」モードのインデックスモードに切り替えてください。
+ナレッジベースが「経済的」インデックスモードを使用しているかどうかを確認してください。その場合は、「高品質」インデックスモードに切り替えてください。
\ No newline at end of file
diff --git a/zh/api-reference/openapi_chat.json b/zh/api-reference/openapi_chat.json
index ac6d02e8e..9e6bf3410 100644
--- a/zh/api-reference/openapi_chat.json
+++ b/zh/api-reference/openapi_chat.json
@@ -2,13 +2,13 @@
"openapi": "3.0.1",
"info": {
"title": "对话型应用 API",
- "description": "对话型应用支持会话持久化,允许将之前的聊天记录作为上下文进行回复。适用于聊天机器人、客服 AI 等场景。",
+ "description": "对话型应用支持会话持久化,允许将之前的聊天记录作为响应的上下文。适用于聊天机器人、客服 AI 等场景。",
"version": "1.0.0"
},
"servers": [
{
"url": "{api_base_url}",
- "description": "对话型应用 API 的基础 URL。请将 {api_base_url} 替换为你的应用实际提供的 API 基础 URL。",
+ "description": "对话型应用 API 的基础 URL。请将 {api_base_url} 替换为您应用程序提供的实际 API 基础 URL。",
"variables": {
"api_base_url": {
"default": "https://api.dify.ai/v1",
@@ -26,10 +26,10 @@
"/chat-messages": {
"post": {
"summary": "发送对话消息",
- "description": "向应用发送请求。",
- "operationId": "sendBasicChatMessageCn",
+ "description": "向对话型应用发送请求。",
+ "operationId": "sendChatMessage",
"tags": [
- "对话消息"
+ "Chats"
],
"requestBody": {
"description": "发送对话消息的请求体。",
@@ -75,7 +75,7 @@
},
"responses": {
"200": {
- "description": "请求成功。内容类型和结构取决于请求中的 `response_mode` 参数。\n\n- 如果 `response_mode` 为 `blocking`,返回 `application/json` 和 `ChatCompletionResponse` 对象。\n- 如果 `response_mode` 为 `streaming`,返回 `text/event-stream` 和 `ChunkChatEvent` 对象流。",
+ "description": "成功响应。内容类型和结构取决于请求中的 `response_mode` 参数。\n- 如果 `response_mode` 为 `blocking`,返回 `application/json` 格式的 `ChatCompletionResponse` 对象。\n- 如果 `response_mode` 为 `streaming`,返回 `text/event-stream` 格式的 `ChunkChatEvent` 对象流。",
"content": {
"application/json": {
"schema": {
@@ -128,15 +128,15 @@
"text/event-stream": {
"schema": {
"type": "string",
- "description": "服务器发送事件 (SSE) 流。每个事件是一个以 `data: ` 为前缀的 JSON 对象,以两个换行符终止。\n\n**SSE 解析指南:**每个事件是一行以 `data: ` 为前缀的 JSON 对象,以 `\\n\\n` 终止。解析 JSON 前先去除 `data: ` 前缀。JSON 内的 `event` 字段决定事件类型。当收到终止事件(如 `message_end`、`workflow_finished` 或 `error`)时流结束。忽略 `ping` 事件(每 10 秒发送一次以保持连接活跃)。注意即使流中出现错误事件,HTTP 状态码仍为 `200`。"
+ "description": "服务器发送事件(SSE)流。每个事件是一个以 `data: ` 为前缀并以两个换行符结尾的 JSON 对象。请参阅 `ChunkChatEvent` 了解可能的事件结构。\n**SSE 解析指南:** 每个事件是一行以 `data: ` 为前缀的 JSON 对象,以 `\\n\\n` 结尾。解析 JSON 前请去除 `data: ` 前缀。JSON 内的 `event` 字段决定事件类型。当收到 `message_end` 事件时,流结束。忽略 `ping` 事件(每 10 秒发送一次以保持连接活跃)。如果在流中收到 `error` 事件,流将终止——解析错误对象以获取详细信息。请注意,即使在流中发生错误事件,HTTP 状态码始终为 `200`。"
},
"examples": {
"streamingResponseBasic": {
- "summary": "Response Example - Streaming (Basic)",
+ "summary": "响应示例 - 流式(基础)",
"value": "data: {\"event\": \"message\", \"task_id\":\"mock_task_id\", \"message_id\": \"5ad4cb98-f0c7-4085-b384-88c403be6290\", \"conversation_id\": \"45701982-8118-4bc5-8e9b-64562b4555f2\", \"answer\": \" I\", \"created_at\": 1679586595} data: {\"event\": \"message_end\", \"task_id\":\"mock_task_id\", \"message_id\": \"5ad4cb98-f0c7-4085-b384-88c403be6290\", \"conversation_id\": \"45701982-8118-4bc5-8e9b-64562b4555f2\", \"metadata\": {\"usage\": {\"total_tokens\": 10, \"latency\": 1.0}}}"
},
"streamingResponseAgent": {
- "summary": "Response Example - Streaming (Agent)",
+ "summary": "响应示例 - 流式(Agent)",
"value": "data: {\"event\": \"agent_thought\", \"id\": \"agent_thought_id_1\", \"task_id\": \"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"position\": 1, \"thought\": \"Thinking about calling a tool...\", \"tool\": \"dalle3\", \"tool_input\": \"{\\\"dalle3\\\": {\\\"prompt\\\": \\\"a cute cat\\\"}}\", \"created_at\": 1705395332} data: {\"event\": \"message_file\", \"id\": \"file_id_1\", \"type\": \"image\", \"belongs_to\": \"assistant\", \"url\": \"https://example.com/cat.png\", \"conversation_id\": \"conv123\"} data: {\"event\": \"agent_message\", \"task_id\": \"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"answer\": \"Here is the image: \", \"created_at\": 1705395333} data: {\"event\": \"message_end\", \"task_id\":\"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"metadata\": {\"usage\": {\"total_tokens\": 50, \"latency\": 2.5}}}"
}
}
@@ -144,7 +144,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `not_chat_app` : App mode does not match the API route.\n- `conversation_completed` : The conversation has ended.\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不可用。\n- `completion_request_error` : 文本生成失败。",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `not_chat_app`:应用模式与 API 路由不匹配。\n- `conversation_completed`:对话已结束。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已用完。\n- `model_currently_not_support`:当前模型不可用。\n- `completion_request_error`:文本生成失败。",
"content": {
"application/json": {
"examples": {
@@ -209,7 +209,7 @@
}
},
"404": {
- "description": "`not_found` : 会话不存在。",
+ "description": "`not_found`:对话不存在。",
"content": {
"application/json": {
"examples": {
@@ -226,7 +226,7 @@
}
},
"429": {
- "description": "- `too_many_requests` : 该应用的并发请求过多。\n- `rate_limit_error` : 上游模型提供商的速率限制已超出。",
+ "description": "- `too_many_requests`:此应用的并发请求过多。\n- `rate_limit_error`:上游模型供应商速率限制已超出。",
"content": {
"application/json": {
"examples": {
@@ -251,7 +251,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:服务器内部错误。",
"content": {
"application/json": {
"examples": {
@@ -272,18 +272,18 @@
},
"/chat-messages/{task_id}/stop": {
"post": {
- "summary": "停止响应",
- "description": "停止聊天消息生成任务。仅在 `streaming` 模式下支持。",
- "operationId": "stopBasicChatMessageGenerationCn",
+ "summary": "停止对话消息生成",
+ "description": "停止对话消息生成任务。仅在 `streaming` 模式下支持。",
+ "operationId": "stopChatMessageGeneration",
"tags": [
- "对话消息"
+ "Chats"
],
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
- "description": "任务 ID,可以从 [发送对话消息](/api-reference/对话消息/发送对话消息) API 的流式分块返回中获取。",
+ "description": "任务 ID,可从[发送对话消息](/api-reference/chats/send-chat-message) API 的流式返回中获取。",
"schema": {
"type": "string"
}
@@ -301,7 +301,7 @@
"properties": {
"user": {
"type": "string",
- "description": "用户标识符,必须和发送消息接口传入的 user 保持一致。"
+ "description": "用户标识符,必须与发送消息接口中传入的用户保持一致。"
}
}
},
@@ -321,7 +321,7 @@
"$ref": "#/components/responses/SuccessResult"
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -342,11 +342,11 @@
},
"/messages/{message_id}/suggested": {
"get": {
- "summary": "获取下一轮建议问题列表",
- "description": "获取当前消息的下一步建议问题。",
- "operationId": "getBasicChatSuggestedQuestionsCn",
+ "summary": "获取下一轮建议问题",
+ "description": "获取当前消息的下一轮建议问题。",
+ "operationId": "getSuggestedQuestions",
"tags": [
- "对话消息"
+ "Chats"
],
"parameters": [
{
@@ -393,7 +393,7 @@
}
},
"400": {
- "description": "- `not_chat_app` : 应用模式与 API 路由不匹配。\n- `bad_request` : 建议问题功能已禁用。",
+ "description": "- `not_chat_app`:应用模式与 API 路由不匹配。\n- `bad_request`:建议问题功能已禁用。",
"content": {
"application/json": {
"examples": {
@@ -418,7 +418,7 @@
}
},
"404": {
- "description": "`not_found` : 消息不存在。",
+ "description": "`not_found`:消息不存在。",
"content": {
"application/json": {
"examples": {
@@ -435,7 +435,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:服务器内部错误。",
"content": {
"application/json": {
"examples": {
@@ -457,10 +457,10 @@
"/files/upload": {
"post": {
"summary": "上传文件",
- "description": "上传文件用于发送消息时使用,支持图片、文档、音频和视频的多模态理解。上传的文件仅供当前终端用户使用。",
- "operationId": "uploadBasicChatFileCn",
+ "description": "上传文件以在发送消息时使用,支持图片、文档、音频和视频的多模态理解。上传的文件仅供当前终端用户使用。",
+ "operationId": "uploadChatFile",
"tags": [
- "文件操作"
+ "Files"
],
"requestBody": {
"description": "文件上传请求。需要 multipart/form-data 格式。",
@@ -480,7 +480,7 @@
},
"user": {
"type": "string",
- "description": "用户标识符,由开发者定义的规则生成,必须在应用内唯一。"
+ "description": "用户标识符,由开发者规则定义,在应用内必须唯一。"
}
}
}
@@ -520,7 +520,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : 请求中未提供文件。\n- `too_many_files` : 每次请求仅允许上传一个文件。\n- `filename_not_exists_error` : 上传的文件没有文件名。",
+ "description": "- `no_file_uploaded`:请求中未提供文件。\n- `too_many_files`:每个请求只允许上传一个文件。\n- `filename_not_exists_error`:上传的文件没有文件名。",
"content": {
"application/json": {
"examples": {
@@ -553,7 +553,7 @@
}
},
"413": {
- "description": "`file_too_large` : 文件大小超出限制。",
+ "description": "`file_too_large`:文件大小超出限制。",
"content": {
"application/json": {
"examples": {
@@ -570,7 +570,7 @@
}
},
"415": {
- "description": "`unsupported_file_type` : 不允许的文件类型。",
+ "description": "`unsupported_file_type`:不允许的文件类型。",
"content": {
"application/json": {
"examples": {
@@ -592,17 +592,17 @@
"/files/{file_id}/preview": {
"get": {
"summary": "下载文件",
- "description": "预览或下载之前通过[上传文件](/api-reference/文件操作/上传文件) API 上传的文件。仅可访问属于请求应用内消息的文件。",
- "operationId": "previewBasicChatFileCn",
+ "description": "预览或下载之前通过[上传文件](/api-reference/files/upload-file) API 上传的文件。只有属于请求应用内消息的文件才能被访问。",
+ "operationId": "previewChatFile",
"tags": [
- "文件操作"
+ "Files"
],
"parameters": [
{
"name": "file_id",
"in": "path",
"required": true,
- "description": "要预览的文件唯一标识符,从 [上传文件](/api-reference/文件操作/上传文件) API 响应中获取。",
+ "description": "要预览的文件的唯一标识符,从[上传文件](/api-reference/files/upload-file) API 响应中获取。",
"schema": {
"type": "string",
"format": "uuid"
@@ -612,7 +612,7 @@
"name": "as_attachment",
"in": "query",
"required": false,
- "description": "如果为 `true`,则强制文件以附件形式下载,而不是在浏览器中预览。",
+ "description": "如果为 `true`,强制将文件作为附件下载,而不是在浏览器中预览。",
"schema": {
"type": "boolean",
"default": false
@@ -630,7 +630,7 @@
],
"responses": {
"200": {
- "description": "返回原始文件内容。`Content-Type` 头设置为文件的 MIME 类型。如果 `as_attachment` 为 `true`,文件将以 `Content-Disposition: attachment` 方式作为下载返回。",
+ "description": "返回原始文件内容。`Content-Type` 头设置为文件的 MIME 类型。如果 `as_attachment` 为 `true`,文件将作为下载返回,带有 `Content-Disposition: attachment`。",
"content": {
"application/octet-stream": {
"schema": {
@@ -641,7 +641,7 @@
}
},
"403": {
- "description": "`file_access_denied` : 拒绝访问请求的文件。",
+ "description": "`file_access_denied`:拒绝访问请求的文件。",
"content": {
"application/json": {
"examples": {
@@ -658,7 +658,7 @@
}
},
"404": {
- "description": "`file_not_found` : 未找到请求的文件。",
+ "description": "`file_not_found`:未找到请求的文件。",
"content": {
"application/json": {
"examples": {
@@ -680,10 +680,10 @@
"/end-users/{end_user_id}": {
"get": {
"summary": "获取终端用户信息",
- "description": "根据 ID 获取终端用户信息。当其他 API 返回终端用户 ID(例如[上传文件](/api-reference/文件操作/上传文件)返回的 `created_by`)时很有用。",
- "operationId": "getEndUserChatCn",
+ "description": "通过 ID 获取终端用户。当其他 API 返回终端用户 ID 时(例如[上传文件](/api-reference/files/upload-file)中的 `created_by`)很有用。",
+ "operationId": "getEndUserChat",
"tags": [
- "终端用户"
+ "End Users"
],
"parameters": [
{
@@ -726,7 +726,7 @@
}
},
"404": {
- "description": "`end_user_not_found` : 未找到终端用户。",
+ "description": "`end_user_not_found`:未找到终端用户。",
"content": {
"application/json": {
"examples": {
@@ -748,10 +748,10 @@
"/messages/{message_id}/feedbacks": {
"post": {
"summary": "提交消息反馈",
- "description": "提交消息反馈。终端用户可以对消息评价 `like` 或 `dislike`,并可选择提供文字反馈。将 `rating` 设为 `null` 可撤销之前提交的反馈。",
- "operationId": "postBasicChatMessageFeedbackCn",
+ "description": "提交消息反馈。终端用户可以将消息评为 `like` 或 `dislike`,并可选择提供文本反馈。将 `rating` 设为 `null` 可撤销之前提交的反馈。",
+ "operationId": "postChatMessageFeedback",
"tags": [
- "消息反馈"
+ "Feedback"
],
"parameters": [
{
@@ -789,7 +789,7 @@
"$ref": "#/components/responses/SuccessResult"
},
"404": {
- "description": "`not_found` : 消息不存在。",
+ "description": "`not_found`:消息不存在。",
"content": {
"application/json": {
"examples": {
@@ -810,11 +810,11 @@
},
"/app/feedbacks": {
"get": {
- "summary": "获取应用的消息反馈",
+ "summary": "获取应用反馈列表",
"description": "获取此应用中所有消息反馈的分页列表,包括终端用户和管理员反馈。",
- "operationId": "getBasicChatAppFeedbacksCn",
+ "operationId": "getChatAppFeedbacks",
"tags": [
- "消息反馈"
+ "Feedback"
],
"parameters": [
{
@@ -894,9 +894,9 @@
"get": {
"summary": "获取会话列表",
"description": "获取当前用户的会话列表,按最近活跃时间排序。",
- "operationId": "getBasicChatConversationsListCn",
+ "operationId": "getConversationsList",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
@@ -980,7 +980,7 @@
}
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -997,7 +997,7 @@
}
},
"404": {
- "description": "`not_found` : 上一个会话不存在(无效的 `last_id`)。",
+ "description": "`not_found`:最后一个会话不存在(无效的 `last_id`)。",
"content": {
"application/json": {
"examples": {
@@ -1018,11 +1018,11 @@
},
"/messages": {
"get": {
- "summary": "获取会话历史消息",
- "description": "以滚动加载的格式返回历史聊天记录,首页返回最新的 `limit` 条消息,即按时间倒序排列。",
- "operationId": "getBasicChatConversationHistoryCn",
+ "summary": "获取会话消息列表",
+ "description": "以滚动加载格式返回历史聊天记录,首页返回最新的 `limit` 条消息,即倒序排列。",
+ "operationId": "getConversationHistory",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
@@ -1047,7 +1047,7 @@
"name": "first_id",
"in": "query",
"required": false,
- "description": "当前页第一条聊天记录的 ID。默认为 `null`(获取最新消息)。获取后续页面时,使用当前列表中第一条消息的 ID 来获取更早的消息。",
+ "description": "当前页第一条聊天记录的 ID。默认为 `null`(获取最新消息)。要获取后续页面,使用当前列表中第一条消息的 ID 来获取更早的消息。",
"schema": {
"type": "string"
}
@@ -1056,7 +1056,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "每次请求返回的聊天历史消息数量。",
+ "description": "每次请求返回的聊天记录消息数。",
"schema": {
"type": "integer",
"default": 20,
@@ -1067,7 +1067,7 @@
],
"responses": {
"200": {
- "description": "成功获取会话历史。",
+ "description": "成功获取会话历史记录。",
"content": {
"application/json": {
"schema": {
@@ -1108,7 +1108,7 @@
}
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1125,7 +1125,7 @@
}
},
"404": {
- "description": "- `not_found` : 会话不存在。\n- `not_found` : 第一条消息不存在。",
+ "description": "- `not_found`:会话不存在。\n- `not_found`:第一条消息不存在。",
"content": {
"application/json": {
"examples": {
@@ -1154,11 +1154,11 @@
},
"/conversations/{conversation_id}/variables": {
"get": {
- "summary": "获取对话变量",
- "description": "从特定会话中获取变量。",
- "operationId": "getBasicChatConversationVariablesCn",
+ "summary": "获取会话变量列表",
+ "description": "从指定会话中获取变量。",
+ "operationId": "getConversationVariables",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
@@ -1204,7 +1204,7 @@
"name": "variable_name",
"in": "query",
"required": false,
- "description": "按指定名称筛选变量。",
+ "description": "按特定名称筛选变量。",
"schema": {
"type": "string",
"minLength": 1,
@@ -1244,7 +1244,7 @@
}
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1261,7 +1261,7 @@
}
},
"404": {
- "description": "`not_found` : 会话不存在。",
+ "description": "`not_found`:会话不存在。",
"content": {
"application/json": {
"examples": {
@@ -1284,9 +1284,9 @@
"post": {
"summary": "重命名会话",
"description": "重命名会话或自动生成名称。会话名称用于在支持多会话的客户端上显示。",
- "operationId": "renameBasicChatConversationCn",
+ "operationId": "renameConversation",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
@@ -1346,7 +1346,7 @@
}
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1363,7 +1363,7 @@
}
},
"404": {
- "description": "`not_found` : 会话不存在。",
+ "description": "`not_found`:会话不存在。",
"content": {
"application/json": {
"examples": {
@@ -1384,11 +1384,11 @@
},
"/conversations/{conversation_id}/variables/{variable_id}": {
"put": {
- "summary": "更新对话变量",
+ "summary": "更新会话变量",
"description": "更新特定会话变量的值。值必须与预期类型匹配。",
- "operationId": "updateChatConversationVariableZh",
+ "operationId": "updateChatConversationVariable",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
@@ -1405,7 +1405,7 @@
"name": "variable_id",
"in": "path",
"required": true,
- "description": "Variable ID.",
+ "description": "变量 ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -1457,7 +1457,7 @@
}
},
"400": {
- "description": "- `not_chat_app` : 应用模式与 API 路由不匹配。\n- `bad_request` : 变量值类型不匹配。",
+ "description": "- `not_chat_app`:应用模式与 API 路由不匹配。\n- `bad_request`:变量值类型不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1482,7 +1482,7 @@
}
},
"404": {
- "description": "- `not_found` : 会话不存在。\n- `not_found` : 会话变量不存在。",
+ "description": "- `not_found`:会话不存在。\n- `not_found`:会话变量不存在。",
"content": {
"application/json": {
"examples": {
@@ -1513,9 +1513,9 @@
"delete": {
"summary": "删除会话",
"description": "删除会话。",
- "operationId": "deleteBasicChatConversationCn",
+ "operationId": "deleteConversation",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
@@ -1557,7 +1557,7 @@
"description": "会话删除成功。"
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1574,7 +1574,7 @@
}
},
"404": {
- "description": "`not_found` : 会话不存在。",
+ "description": "`not_found`:会话不存在。",
"content": {
"application/json": {
"examples": {
@@ -1595,11 +1595,11 @@
},
"/audio-to-text": {
"post": {
- "summary": "语音转文字",
+ "summary": "音频转文字",
"description": "将音频文件转换为文字。支持的格式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。文件大小限制为 `30 MB`。",
- "operationId": "basicChatAudioToTextCn",
+ "operationId": "audioToText",
"tags": [
- "语音与文字转换"
+ "TTS"
],
"requestBody": {
"required": true,
@@ -1613,7 +1613,7 @@
},
"responses": {
"200": {
- "description": "语音转文字成功。",
+ "description": "音频转文字成功。",
"content": {
"application/json": {
"schema": {
@@ -1631,7 +1631,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `no_audio_uploaded` : 未上传音频文件。\n- `provider_not_support_speech_to_text` : 模型提供商不支持语音转文字。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不支持此操作。\n- `completion_request_error` : 语音识别请求失败。",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `no_audio_uploaded`:未上传音频文件。\n- `provider_not_support_speech_to_text`:模型供应商不支持语音转文字。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已用完。\n- `model_currently_not_support`:当前模型不支持此操作。\n- `completion_request_error`:语音识别请求失败。",
"content": {
"application/json": {
"examples": {
@@ -1696,7 +1696,7 @@
}
},
"413": {
- "description": "`audio_too_large` : 音频文件大小超出限制。",
+ "description": "`audio_too_large`:音频文件大小超出限制。",
"content": {
"application/json": {
"examples": {
@@ -1713,7 +1713,7 @@
}
},
"415": {
- "description": "`unsupported_audio_type` : 不允许的音频类型。",
+ "description": "`unsupported_audio_type`:不允许的音频类型。",
"content": {
"application/json": {
"examples": {
@@ -1730,7 +1730,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:服务器内部错误。",
"content": {
"application/json": {
"examples": {
@@ -1751,11 +1751,11 @@
},
"/text-to-audio": {
"post": {
- "summary": "文字转语音",
+ "summary": "文字转音频",
"description": "将文字转换为语音。",
- "operationId": "basicChatTextToAudioCn",
+ "operationId": "textToAudioChat",
"tags": [
- "语音与文字转换"
+ "TTS"
],
"requestBody": {
"required": true,
@@ -1780,7 +1780,7 @@
},
"responses": {
"200": {
- "description": "返回生成的音频文件。`Content-Type` 头设置为音频 MIME 类型(例如 `audio/wav`、`audio/mp3`)。如果 `streaming` 为 `true`,音频将以分块传输编码方式流式返回。",
+ "description": "返回生成的音频文件。`Content-Type` 头设置为音频 MIME 类型(例如 `audio/wav`、`audio/mp3`)。如果 `streaming` 为 `true`,音频将以分块传输编码的方式流式传输。",
"content": {
"audio/mpeg": {
"schema": {
@@ -1791,7 +1791,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不支持此操作。\n- `completion_request_error` : 文字转语音请求失败。",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已用完。\n- `model_currently_not_support`:当前模型不支持此操作。\n- `completion_request_error`:文字转语音请求失败。",
"content": {
"application/json": {
"examples": {
@@ -1840,7 +1840,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:服务器内部错误。",
"content": {
"application/json": {
"examples": {
@@ -1861,11 +1861,11 @@
},
"/info": {
"get": {
- "summary": "获取应用基本信息",
- "description": "获取应用的基本信息,包括名称、描述、标签和模式。",
- "operationId": "getBasicChatAppInfoCn",
+ "summary": "获取应用信息",
+ "description": "获取此应用的基本信息,包括名称、描述、标签和模式。",
+ "operationId": "getChatAppInfo",
"tags": [
- "应用配置"
+ "Applications"
],
"responses": {
"200": {
@@ -1900,9 +1900,9 @@
"get": {
"summary": "获取应用参数",
"description": "获取应用的输入表单配置,包括功能开关、输入参数名称、类型和默认值。",
- "operationId": "getBasicChatAppParametersCn",
+ "operationId": "getChatAppParameters",
"tags": [
- "应用配置"
+ "Applications"
],
"responses": {
"200": {
@@ -1980,7 +1980,7 @@
}
},
"400": {
- "description": "`app_unavailable` : 应用不可用或配置错误。",
+ "description": "`app_unavailable`:应用不可用或配置错误。",
"content": {
"application/json": {
"examples": {
@@ -2001,15 +2001,15 @@
},
"/meta": {
"get": {
- "summary": "获取应用元数据",
- "description": "获取应用的元数据,包括工具图标和其他配置详情。",
- "operationId": "getBasicChatAppMetaCn",
+ "summary": "获取应用元信息",
+ "description": "获取此应用的元数据,包括工具图标和其他配置详情。",
+ "operationId": "getChatAppMeta",
"tags": [
- "应用配置"
+ "Applications"
],
"responses": {
"200": {
- "description": "成功获取应用元数据。",
+ "description": "成功获取应用元信息。",
"content": {
"application/json": {
"schema": {
@@ -2038,10 +2038,10 @@
"/site": {
"get": {
"summary": "获取应用 WebApp 设置",
- "description": "获取应用的 WebApp 设置,包括站点配置、主题和自定义选项。",
- "operationId": "getBasicChatWebAppSettingsCn",
+ "description": "获取此应用的 WebApp 设置,包括站点配置、主题和自定义选项。",
+ "operationId": "getChatWebAppSettings",
"tags": [
- "应用配置"
+ "Applications"
],
"responses": {
"200": {
@@ -2055,7 +2055,7 @@
"webAppSettings": {
"summary": "响应示例",
"value": {
- "title": "My Chat App",
+ "title": "我的聊天应用",
"chat_color_theme": "#4A90D9",
"chat_color_theme_inverted": false,
"icon_type": "emoji",
@@ -2076,7 +2076,7 @@
}
},
"403": {
- "description": "`forbidden` : 未找到此应用的站点或工作空间已归档。",
+ "description": "`forbidden`:未找到此应用的站点或工作区已归档。",
"content": {
"application/json": {
"examples": {
@@ -2098,10 +2098,10 @@
"/apps/annotations": {
"post": {
"summary": "创建标注",
- "description": "创建新的标注。标注提供预定义的问答对,应用可以直接匹配并返回,而无需生成回复。",
- "operationId": "createChatAnnotationZh",
+ "description": "创建新的标注。标注提供预定义的问答对,应用可以直接匹配并返回,而不是生成响应。",
+ "operationId": "createAnnotation",
"tags": [
- "标注管理"
+ "Annotations"
],
"requestBody": {
"required": true,
@@ -2149,10 +2149,10 @@
},
"get": {
"summary": "获取标注列表",
- "description": "获取应用的标注分页列表。支持关键词搜索筛选。",
- "operationId": "listChatAnnotationsZh",
+ "description": "获取应用的标注分页列表。支持关键词搜索过滤。",
+ "operationId": "getAnnotationList",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
@@ -2178,7 +2178,7 @@
{
"name": "keyword",
"in": "query",
- "description": "按问题或回答内容筛选标注的关键词。",
+ "description": "按问题或答案内容过滤标注的关键词。",
"required": false,
"schema": {
"type": "string"
@@ -2222,10 +2222,10 @@
"/apps/annotations/{annotation_id}": {
"put": {
"summary": "更新标注",
- "description": "更新现有标注的问题和回答。",
- "operationId": "updateChatAnnotationZh",
+ "description": "更新现有标注的问题和答案。",
+ "operationId": "updateAnnotation",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
@@ -2282,7 +2282,7 @@
}
},
"403": {
- "description": "`forbidden` : 编辑标注的权限不足。",
+ "description": "`forbidden`:没有足够的权限编辑标注。",
"content": {
"application/json": {
"examples": {
@@ -2299,7 +2299,7 @@
}
},
"404": {
- "description": "`not_found` : 标注不存在。",
+ "description": "`not_found`:标注不存在。",
"content": {
"application/json": {
"examples": {
@@ -2320,9 +2320,9 @@
"delete": {
"summary": "删除标注",
"description": "删除标注及其关联的命中历史。",
- "operationId": "deleteChatAnnotationZh",
+ "operationId": "deleteAnnotation",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
@@ -2341,7 +2341,7 @@
"description": "标注删除成功。"
},
"403": {
- "description": "`forbidden` : 编辑标注的权限不足。",
+ "description": "`forbidden`:没有足够的权限编辑标注。",
"content": {
"application/json": {
"examples": {
@@ -2358,7 +2358,7 @@
}
},
"404": {
- "description": "`not_found` : 标注不存在。",
+ "description": "`not_found`:标注不存在。",
"content": {
"application/json": {
"examples": {
@@ -2380,10 +2380,10 @@
"/apps/annotation-reply/{action}": {
"post": {
"summary": "配置标注回复",
- "description": "启用或禁用标注回复功能。启用时需要配置嵌入模型。异步执行——使用 [查询标注回复配置任务状态](/api-reference/标注管理/查询标注回复配置任务状态) 跟踪进度。",
- "operationId": "setChatAnnotationReplyZh",
+ "description": "启用或禁用标注回复功能。启用时需要配置嵌入模型。此操作异步执行——使用[获取标注回复任务状态](/api-reference/annotations/get-annotation-reply-job-status)来跟踪进度。",
+ "operationId": "initialAnnotationReplySettings",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
@@ -2445,18 +2445,18 @@
},
"/apps/annotation-reply/{action}/status/{job_id}": {
"get": {
- "summary": "查询标注回复配置任务状态",
- "description": "获取由 [配置标注回复](/api-reference/标注管理/配置标注回复) 发起的异步标注回复配置任务的状态。",
- "operationId": "getChatAnnotationReplyStatusZh",
+ "summary": "获取标注回复任务状态",
+ "description": "获取由[配置标注回复](/api-reference/annotations/configure-annotation-reply)启动的异步标注回复配置任务的状态。",
+ "operationId": "getInitialAnnotationReplySettingsStatus",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
"name": "action",
"in": "path",
"required": true,
- "description": "操作类型,必须与 [配置标注回复](/api-reference/标注管理/配置标注回复) 调用中的一致。",
+ "description": "操作类型,必须与[配置标注回复](/api-reference/annotations/configure-annotation-reply)调用匹配。",
"schema": {
"type": "string",
"enum": [
@@ -2469,7 +2469,7 @@
"name": "job_id",
"in": "path",
"required": true,
- "description": "由 [配置标注回复](/api-reference/标注管理/配置标注回复) 接口返回的任务 ID。",
+ "description": "由[配置标注回复](/api-reference/annotations/configure-annotation-reply)返回的任务 ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -2498,7 +2498,7 @@
}
},
"400": {
- "description": "`invalid_param` : 指定的任务不存在。",
+ "description": "`invalid_param`:指定的任务不存在。",
"content": {
"application/json": {
"examples": {
@@ -2524,7 +2524,7 @@
"type": "http",
"scheme": "bearer",
"bearerFormat": "API_KEY",
- "description": "API Key 认证。对于所有 API 请求,请在 `Authorization` HTTP 头中包含您的 API Key,并加上 `Bearer ` 前缀。示例:`Authorization: Bearer {API_KEY}`。**强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。**"
+ "description": "API 密钥认证。对于所有 API 请求,请在 `Authorization` HTTP 头中包含您的 API 密钥,前缀为 `Bearer `。示例:`Authorization: Bearer {API_KEY}`。**强烈建议将您的 API 密钥存储在服务器端,不要在客户端共享或存储,以避免可能导致严重后果的 API 密钥泄露。**"
}
},
"responses": {
@@ -2568,7 +2568,7 @@
},
"inputs": {
"type": "object",
- "description": "允许输入应用定义的各种变量值。包含键值对。请参阅 [获取应用参数](/api-reference/应用配置/获取应用参数) 响应中的 `user_input_form` 字段,以了解应用所需的变量名称和类型。",
+ "description": "允许输入应用定义的各种变量值。包含键/值对。请参阅[获取应用参数](/api-reference/applications/get-app-parameters)响应中的 `user_input_form` 字段,以了解您的应用期望的变量名称和类型。",
"additionalProperties": true
},
"response_mode": {
@@ -2577,19 +2577,19 @@
"streaming",
"blocking"
],
- "description": "响应返回模式。`streaming`(推荐)使用 SSE。`blocking` 在完成后返回(长时间处理可能中断;Agent 助手模式不支持此选项)。Cloudflare 超时时间为 `100 s`。未指定时默认为阻塞模式。"
+ "description": "响应返回模式。`streaming`(推荐)使用 SSE。`blocking` 在完成后返回(对于长时间处理可能会中断;在 Agent 应用模式下不支持)。Cloudflare 超时为 `100 秒`。省略时,默认为阻塞行为。"
},
"user": {
"type": "string",
- "description": "用户标识符,在应用内唯一。此标识符用于限定数据访问范围——会话、消息和文件仅在使用相同的 `user` 值查询时可见。"
+ "description": "用户标识符,在应用内唯一。此标识符限定数据访问范围——只有使用相同 `user` 值查询时,会话、消息和文件才可见。"
},
"conversation_id": {
"type": "string",
- "description": "用于继续会话的会话 ID。传入上一条消息的 `conversation_id`。要开始新会话,请省略此字段或传入空字符串。响应会返回一个 `conversation_id`——在后续消息中传入该值即可继续该会话。"
+ "description": "用于继续会话的会话 ID。传入上一条消息的 `conversation_id`。要开始新会话,请省略此字段或传入空字符串。响应将返回 `conversation_id`——在后续消息中传入它以继续该会话。"
},
"files": {
"type": "array",
- "description": "用于多模态理解的文件列表,包括图片、文档、音频和视频。要附加本地文件,请先通过 [上传文件](/api-reference/文件操作/上传文件) 上传,然后将返回的 `id` 作为 `upload_file_id`,并设置 `transfer_method: local_file`。",
+ "description": "用于多模态理解的文件列表,包括图片、文档、音频和视频。要附加本地文件,请先通过[上传文件](/api-reference/files/upload-file)上传,并使用返回的 `id` 作为 `upload_file_id`,`transfer_method` 设为 `local_file`。",
"items": {
"type": "object",
"required": [
@@ -2614,23 +2614,23 @@
"remote_url",
"local_file"
],
- "description": "传输方式:文件 URL 使用 `remote_url`,上传文件使用 `local_file`。"
+ "description": "传输方式:`remote_url` 表示文件 URL,`local_file` 表示上传的文件。"
},
"url": {
"type": "string",
"format": "url",
- "description": "文件 URL(当 `transfer_method` 为 `remote_url` 时必填)。"
+ "description": "文件 URL(当 `transfer_method` 为 `remote_url` 时必需)。"
},
"upload_file_id": {
"type": "string",
- "description": "通过 [上传文件](/api-reference/文件操作/上传文件) API 获取的已上传文件 ID(当 `transfer_method` 为 `local_file` 时必填)。"
+ "description": "从[上传文件](/api-reference/files/upload-file) API 获取的已上传文件 ID(当 `transfer_method` 为 `local_file` 时必需)。"
}
}
}
},
"auto_generate_name": {
"type": "boolean",
- "description": "自动生成会话标题。如果为 `false`,请使用 [重命名会话](/api-reference/会话管理/重命名会话) API 并设置 `auto_generate: true` 来异步生成标题。",
+ "description": "自动生成会话标题。如果为 `false`,使用[重命名会话](/api-reference/conversations/rename-conversation) API 并设置 `auto_generate: true` 来异步生成标题。",
"default": true
}
}
@@ -2645,17 +2645,17 @@
"task_id": {
"type": "string",
"format": "uuid",
- "description": "用于请求追踪和停止响应 API 的任务 ID。"
+ "description": "任务 ID,用于请求跟踪和停止响应 API。"
},
"id": {
"type": "string",
"format": "uuid",
- "description": "该响应事件的唯一 ID。"
+ "description": "此响应事件的唯一 ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "唯一的消息 ID。调用反馈或推荐问题接口时,将此值作为 `message_id` 参数使用。"
+ "description": "唯一消息 ID。在调用反馈或建议问题端点时使用此值作为 `message_id` 参数。"
},
"conversation_id": {
"type": "string",
@@ -2668,11 +2668,11 @@
},
"answer": {
"type": "string",
- "description": "完整的响应内容。"
+ "description": "完整响应内容。"
},
"metadata": {
"type": "object",
- "description": "包含用量和检索资源的元数据。",
+ "description": "元数据,包括使用量和检索资源。",
"properties": {
"usage": {
"$ref": "#/components/schemas/Usage"
@@ -2695,7 +2695,7 @@
},
"ChunkChatEvent": {
"type": "object",
- "description": "流式模式下 Server-Sent Event 块的基础 schema。",
+ "description": "流式模式下服务器发送事件块的基础架构。",
"properties": {
"event": {
"type": "string",
@@ -2732,7 +2732,7 @@
},
"StreamEventBase": {
"type": "object",
- "description": "流式事件的基础属性。",
+ "description": "流事件的基础属性。",
"properties": {
"task_id": {
"type": "string",
@@ -2804,12 +2804,12 @@
},
{
"type": "object",
- "description": "TTS 音频流事件(base64 编码的 Mp3)。自动播放启用时可用。",
+ "description": "TTS 音频流事件(base64 编码的 Mp3)。如果启用了自动播放则可用。",
"properties": {
"audio": {
"type": "string",
"format": "byte",
- "description": "Base64 编码的 MP3 音频块。按顺序解码并拼接所有块即可生成完整的音频文件。"
+ "description": "Base64 编码的 MP3 音频块。按顺序解码并连接所有块以生成完整的音频文件。"
}
}
}
@@ -2829,7 +2829,7 @@
"properties": {
"audio": {
"type": "string",
- "description": "空字符串。标识音频流结束。"
+ "description": "空字符串。表示音频流结束。"
}
}
}
@@ -2845,7 +2845,7 @@
},
{
"type": "object",
- "description": "Agent 思考、LLM 推理、工具调用详情(Agent 模式)。",
+ "description": "Agent 思考,LLM 推理,工具调用详情(Agent 模式)。",
"properties": {
"id": {
"type": "string",
@@ -2854,7 +2854,7 @@
},
"position": {
"type": "integer",
- "description": "该思考在消息序列中的位置。"
+ "description": "此思考在消息序列中的位置。"
},
"thought": {
"type": "string",
@@ -2870,7 +2870,7 @@
},
"tool_input": {
"type": "string",
- "description": "工具输入(JSON 格式)。"
+ "description": "JSON 格式的工具输入。"
},
"message_files": {
"type": "array",
@@ -2878,7 +2878,7 @@
"type": "string",
"format": "uuid"
},
- "description": "与该思考相关的文件 ID 列表。"
+ "description": "与此思考相关的文件 ID。"
}
}
}
@@ -2904,7 +2904,7 @@
},
"belongs_to": {
"type": "string",
- "description": "该文件的所属者。工具生成的文件始终为 `assistant`。"
+ "description": "此文件属于谁。对于工具生成的文件始终为 `assistant`。"
},
"url": {
"type": "string",
@@ -2935,11 +2935,11 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "消息的唯一 ID。"
+ "description": "唯一消息 ID。"
},
"metadata": {
"type": "object",
- "description": "包含用量和检索资源的元数据。",
+ "description": "元数据,包括使用量和检索资源。",
"properties": {
"usage": {
"$ref": "#/components/schemas/Usage"
@@ -2991,7 +2991,7 @@
},
{
"type": "object",
- "description": "流式输出过程中的错误事件。",
+ "description": "流式传输过程中的错误事件。",
"properties": {
"status": {
"type": "integer",
@@ -2999,11 +2999,11 @@
},
"code": {
"type": "string",
- "description": "错误码。"
+ "description": "错误代码。"
},
"message": {
"type": "string",
- "description": "错误信息。"
+ "description": "错误消息。"
}
}
}
@@ -3016,7 +3016,7 @@
},
{
"type": "object",
- "description": "Ping 事件,用于保持连接活跃。"
+ "description": "用于保持连接活跃的 Ping 事件。"
}
]
},
@@ -3026,59 +3026,59 @@
"properties": {
"prompt_tokens": {
"type": "integer",
- "description": "提示词中的令牌数。"
+ "description": "提示词中的 token 数量。"
},
"prompt_unit_price": {
"type": "string",
"format": "decimal",
- "description": "每个提示词令牌的单价。"
+ "description": "每个提示词 token 的单价。"
},
"prompt_price_unit": {
"type": "string",
"format": "decimal",
- "description": "提示词令牌的价格单位。"
+ "description": "提示词 token 的价格单位。"
},
"prompt_price": {
"type": "string",
"format": "decimal",
- "description": "提示词令牌的总价。"
+ "description": "提示词 token 的总价。"
},
"completion_tokens": {
"type": "integer",
- "description": "补全内容中的令牌数。"
+ "description": "补全内容中的 token 数量。"
},
"completion_unit_price": {
"type": "string",
"format": "decimal",
- "description": "每个补全令牌的单价。"
+ "description": "每个补全 token 的单价。"
},
"completion_price_unit": {
"type": "string",
"format": "decimal",
- "description": "补全令牌的价格单位。"
+ "description": "补全 token 的价格单位。"
},
"completion_price": {
"type": "string",
"format": "decimal",
- "description": "补全令牌的总价。"
+ "description": "补全 token 的总价。"
},
"total_tokens": {
"type": "integer",
- "description": "使用的令牌总数。"
+ "description": "使用的 token 总数。"
},
"total_price": {
"type": "string",
"format": "decimal",
- "description": "所有令牌的总价。"
+ "description": "所有 token 的总价。"
},
"currency": {
"type": "string",
- "description": "计价货币。"
+ "description": "定价货币。"
},
"latency": {
"type": "number",
"format": "double",
- "description": "延迟时间(秒)。"
+ "description": "延迟(秒)。"
}
}
},
@@ -3094,7 +3094,7 @@
"message_id": {
"type": "string",
"format": "uuid",
- "description": "该资源所属消息的 ID。"
+ "description": "此资源所属的消息 ID。"
},
"position": {
"type": "integer",
@@ -3125,24 +3125,24 @@
"segment_id": {
"type": "string",
"format": "uuid",
- "description": "文档中特定块的 ID。"
+ "description": "文档内特定分段的 ID。"
},
"score": {
"type": "number",
"format": "float",
- "description": "资源的相关性评分。"
+ "description": "资源的相关性分数。"
},
"hit_count": {
"type": "integer",
- "description": "该块被命中的次数。"
+ "description": "此分段被命中的次数。"
},
"word_count": {
"type": "integer",
- "description": "块的字数。"
+ "description": "分段的字数。"
},
"segment_position": {
"type": "integer",
- "description": "块在文档中的位置。"
+ "description": "分段在文档中的位置。"
},
"index_node_hash": {
"type": "string",
@@ -3155,7 +3155,7 @@
"summary": {
"type": "string",
"nullable": true,
- "description": "块内容的摘要。"
+ "description": "分段内容的摘要。"
},
"created_at": {
"type": "integer",
@@ -3220,24 +3220,24 @@
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的用户 ID。"
+ "description": "关联用户的 ID。"
},
"tenant_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的租户 ID。"
+ "description": "关联租户的 ID。"
},
"conversation_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的会话 ID。"
+ "description": "关联会话的 ID。"
},
"file_key": {
"type": "string",
"nullable": true,
- "description": "文件的存储键。"
+ "description": "文件的存储密钥。"
}
}
},
@@ -3262,12 +3262,12 @@
},
"type": {
"type": "string",
- "description": "终端用户类型。Service API 用户固定为 `service_api`。"
+ "description": "终端用户类型。对于服务 API 用户始终为 `service_api`。"
},
"external_user_id": {
"type": "string",
"nullable": true,
- "description": "API 请求中提供的 `user` 标识符(例如 [发送对话消息](/api-reference/对话消息/发送对话消息) 中的 `user` 字段)。"
+ "description": "API 请求中提供的 `user` 标识符(例如[发送对话消息](/api-reference/chats/send-chat-message)中的 `user` 字段)。"
},
"name": {
"type": "string",
@@ -3276,11 +3276,11 @@
},
"is_anonymous": {
"type": "boolean",
- "description": "用户是否为匿名用户。当原始 API 请求中未提供 `user` 标识符时,值为 `true`。"
+ "description": "用户是否为匿名。当原始 API 请求中未提供 `user` 标识符时为 `true`。"
},
"session_id": {
"type": "string",
- "description": "会话标识符。默认为 `external_user_id` 的值。"
+ "description": "会话标识符。默认为 `external_user_id` 值。"
},
"created_at": {
"type": "string",
@@ -3309,7 +3309,7 @@
null
],
"nullable": true,
- "description": "反馈评分。设为 `null` 可撤销之前提交的反馈。"
+ "description": "反馈评级。设为 `null` 可撤销之前提交的反馈。"
},
"user": {
"type": "string",
@@ -3317,7 +3317,7 @@
},
"content": {
"type": "string",
- "description": "提供额外详情的可选文字反馈。"
+ "description": "可选的文本反馈,提供额外详情。"
}
}
},
@@ -3335,7 +3335,7 @@
},
"FeedbackItem": {
"type": "object",
- "description": "单条反馈项。",
+ "description": "单个反馈项。",
"properties": {
"id": {
"type": "string",
@@ -3359,16 +3359,16 @@
},
"rating": {
"type": "string",
- "description": "反馈评分。`like` 为正面,`dislike` 为负面。"
+ "description": "反馈评级。`like` 表示正面,`dislike` 表示负面。"
},
"content": {
"type": "string",
"nullable": true,
- "description": "可选的文字反馈。"
+ "description": "可选的文本反馈。"
},
"from_source": {
"type": "string",
- "description": "反馈来源。`user` 为终端用户通过 API 提交的反馈,`admin` 为从控制台提交的反馈。"
+ "description": "反馈来源。`user` 表示通过 API 提交的终端用户反馈,`admin` 表示从控制台提交的反馈。"
},
"from_end_user_id": {
"type": "string",
@@ -3448,12 +3448,12 @@
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "线程会话的父消息 ID。"
+ "description": "线程会话中的父消息 ID。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "该消息的输入变量。"
+ "description": "此消息的输入变量。"
},
"query": {
"type": "string",
@@ -3465,7 +3465,7 @@
},
"status": {
"type": "string",
- "description": "消息状态。成功消息为 `normal`,生成失败时为 `error`。"
+ "description": "消息状态。`normal` 表示成功消息,`error` 表示生成失败。"
},
"error": {
"type": "string",
@@ -3474,7 +3474,7 @@
},
"message_files": {
"type": "array",
- "description": "附加到该消息的文件。",
+ "description": "附加到此消息的文件。",
"items": {
"$ref": "#/components/schemas/MessageFileItem"
}
@@ -3482,24 +3482,24 @@
"feedback": {
"type": "object",
"nullable": true,
- "description": "该消息的用户反馈。",
+ "description": "用户对此消息的反馈。",
"properties": {
"rating": {
"type": "string",
- "description": "反馈评分。`like` 为正面,`dislike` 为负面。"
+ "description": "反馈评级。`like` 表示正面,`dislike` 表示负面。"
}
}
},
"retriever_resources": {
"type": "array",
- "description": "该消息使用的检索资源。",
+ "description": "用于此消息的检索资源。",
"items": {
"$ref": "#/components/schemas/RetrieverResource"
}
},
"agent_thoughts": {
"type": "array",
- "description": "该消息的 Agent 思考。",
+ "description": "此消息的 Agent 思考。",
"items": {
"$ref": "#/components/schemas/AgentThoughtItem"
}
@@ -3511,7 +3511,7 @@
},
"extra_contents": {
"type": "array",
- "description": "与该消息关联的附加执行内容,例如人工介入表单数据。",
+ "description": "与此消息关联的额外执行内容,例如人工输入表单数据。",
"items": {
"type": "object",
"additionalProperties": true
@@ -3526,7 +3526,7 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "File ID."
+ "description": "文件 ID。"
},
"filename": {
"type": "string",
@@ -3554,18 +3554,18 @@
},
"transfer_method": {
"type": "string",
- "description": "使用的传输方式。`remote_url` 表示基于 URL 的文件,`local_file` 表示已上传的文件,`tool_file` 表示工具生成的文件。"
+ "description": "使用的传输方式。`remote_url` 表示基于 URL 的文件,`local_file` 表示上传的文件,`tool_file` 表示工具生成的文件。"
},
"belongs_to": {
"type": "string",
"nullable": true,
- "description": "该文件的所属者。用户上传的文件为 `user`,助手生成的文件为 `assistant`。"
+ "description": "此文件属于谁。`user` 表示用户上传的文件,`assistant` 表示助手生成的文件。"
},
"upload_file_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "通过 `local_file` 传输时的上传文件 ID。"
+ "description": "如果通过 `local_file` 传输则为上传文件 ID。"
}
}
},
@@ -3581,16 +3581,16 @@
"chain_id": {
"type": "string",
"nullable": true,
- "description": "该思考的链 ID。"
+ "description": "此思考的链 ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "该思考所属的唯一消息 ID。"
+ "description": "此思考所属的唯一消息 ID。"
},
"position": {
"type": "integer",
- "description": "该思考的位置。"
+ "description": "此思考的位置。"
},
"thought": {
"type": "string",
@@ -3604,11 +3604,11 @@
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "已使用工具的标签。"
+ "description": "使用的工具标签。"
},
"tool_input": {
"type": "string",
- "description": "工具输入(JSON 格式)。"
+ "description": "JSON 格式的工具输入。"
},
"observation": {
"type": "string",
@@ -3619,7 +3619,7 @@
"items": {
"type": "string"
},
- "description": "与该思考相关的文件 ID。"
+ "description": "与此思考相关的文件 ID。"
},
"created_at": {
"type": "integer",
@@ -3667,7 +3667,7 @@
},
"status": {
"type": "string",
- "description": "会话状态。活跃会话为 `normal`。"
+ "description": "会话状态。`normal` 表示活跃会话。"
},
"introduction": {
"type": "string",
@@ -3691,7 +3691,7 @@
"properties": {
"name": {
"type": "string",
- "description": "会话名称。当 `auto_generate` 为 `false` 时必填。"
+ "description": "会话名称。当 `auto_generate` 为 `false` 时必需。"
},
"auto_generate": {
"type": "boolean",
@@ -3730,7 +3730,7 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "Variable ID."
+ "description": "变量 ID。"
},
"name": {
"type": "string",
@@ -3738,11 +3738,11 @@
},
"value_type": {
"type": "string",
- "description": "变量值类型。可选值:`string`、`number`、`object`、`secret`、`file`、`boolean`、`array[any]`、`array[string]`、`array[number]`、`array[object]`、`array[file]`、`array[boolean]`。"
+ "description": "变量值类型。可能的值:`string`、`number`、`object`、`secret`、`file`、`boolean`、`array[any]`、`array[string]`、`array[number]`、`array[object]`、`array[file]`、`array[boolean]`。"
},
"value": {
"type": "string",
- "description": "变量值(复杂类型可以是 JSON 字符串)。"
+ "description": "变量值(对于复杂类型可以是 JSON 字符串)。"
},
"description": {
"type": "string",
@@ -3778,7 +3778,7 @@
},
"AudioToTextRequest": {
"type": "object",
- "description": "语音转文字的请求体。",
+ "description": "音频转文字的请求体。",
"required": [
"file"
],
@@ -3786,7 +3786,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "音频文件。支持格式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。大小限制:`30 MB`。"
+ "description": "音频文件。支持:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。限制:`30 MB`。"
},
"user": {
"type": "string",
@@ -3799,18 +3799,18 @@
"properties": {
"text": {
"type": "string",
- "description": "语音识别输出的文字。"
+ "description": "语音识别输出的文本。"
}
}
},
"TextToAudioRequest": {
"type": "object",
- "description": "文字转语音的请求体。提供 `message_id` 或 `text` 其中之一。",
+ "description": "文字转音频的请求体。提供 `message_id` 或 `text` 其中之一。",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
- "description": "消息 ID。当同时提供 `text` 时,优先使用消息 ID。"
+ "description": "消息 ID。当同时提供时优先于 `text`。"
},
"text": {
"type": "string",
@@ -3822,7 +3822,7 @@
},
"voice": {
"type": "string",
- "description": "文字转语音使用的声音。可用声音取决于为此应用配置的 TTS 提供商。使用[获取应用参数](/api-reference/应用配置/获取应用参数) → `text_to_speech.voice` 中的 `voice` 值作为默认值。"
+ "description": "用于文字转语音的声音。可用的声音取决于为此应用配置的 TTS 提供商。使用[获取应用参数](/api-reference/applications/get-app-parameters) → `text_to_speech.voice` 中的 `voice` 值作为默认值。"
},
"streaming": {
"type": "boolean",
@@ -3850,7 +3850,7 @@
},
"mode": {
"type": "string",
- "description": "应用模式。`chat` 表示基础聊天应用,`agent-chat` 表示 Agent 应用,`advanced-chat` 表示对话流应用。"
+ "description": "应用模式。`chat` 表示基础对话应用,`agent-chat` 表示 Agent 应用,`advanced-chat` 表示 Chatflow 应用。"
},
"author_name": {
"type": "string",
@@ -3870,7 +3870,7 @@
"items": {
"type": "string"
},
- "description": "建议的初始问题列表。"
+ "description": "建议的开场问题列表。"
},
"suggested_questions_after_answer": {
"type": "object",
@@ -3878,7 +3878,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -3888,7 +3888,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -3898,7 +3898,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
},
"voice": {
"type": "string",
@@ -3910,7 +3910,7 @@
},
"autoPlay": {
"type": "string",
- "description": "自动播放设置。`enabled` 为自动播放音频,`disabled` 为需要手动播放。"
+ "description": "自动播放设置。`enabled` 表示自动播放音频,`disabled` 表示需要手动播放。"
}
}
},
@@ -3920,7 +3920,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -3930,17 +3930,17 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
"more_like_this": {
"type": "object",
- "description": "更多类似内容配置。",
+ "description": "类似内容配置。",
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -3950,7 +3950,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -3979,7 +3979,7 @@
},
"detail": {
"type": "string",
- "description": "图片精细程度。"
+ "description": "图片详细程度。"
},
"transfer_methods": {
"type": "array",
@@ -4014,7 +4014,7 @@
},
"workflow_file_upload_limit": {
"type": "integer",
- "description": "工作流文件上传的最大文件数。"
+ "description": "工作流文件上传的最大文件数量。"
}
}
}
@@ -4035,7 +4035,7 @@
]
},
"TextInputControlWrapper": {
- "title": "Text Input",
+ "title": "文本输入",
"type": "object",
"properties": {
"text-input": {
@@ -4044,7 +4044,7 @@
}
},
"ParagraphControlWrapper": {
- "title": "Paragraph",
+ "title": "段落",
"type": "object",
"properties": {
"paragraph": {
@@ -4053,7 +4053,7 @@
}
},
"SelectControlWrapper": {
- "title": "Select",
+ "title": "选择",
"type": "object",
"properties": {
"select": {
@@ -4107,7 +4107,7 @@
},
"SelectControl": {
"type": "object",
- "description": "下拉选择表单控件。",
+ "description": "选择(下拉)表单控件。",
"properties": {
"label": {
"type": "string",
@@ -4119,11 +4119,11 @@
},
"required": {
"type": "boolean",
- "description": "是否必须选择。"
+ "description": "选择是否必填。"
},
"default": {
"type": "string",
- "description": "默认选中的值。"
+ "description": "默认选中值。"
},
"options": {
"type": "array",
@@ -4142,7 +4142,7 @@
"additionalProperties": {
"oneOf": [
{
- "title": "Icon URL",
+ "title": "图标 URL",
"type": "string",
"format": "url",
"description": "图标的 URL。"
@@ -4157,9 +4157,9 @@
}
},
"ToolIconDetail": {
- "title": "Emoji Icon",
+ "title": "表情图标",
"type": "object",
- "description": "使用 emoji 的工具图标详情。",
+ "description": "使用表情符号的工具图标详情。",
"properties": {
"background": {
"type": "string",
@@ -4167,7 +4167,7 @@
},
"content": {
"type": "string",
- "description": "Emoji 内容。"
+ "description": "表情符号内容。"
}
}
},
@@ -4180,19 +4180,19 @@
},
"chat_color_theme": {
"type": "string",
- "description": "聊天主题颜色。"
+ "description": "聊天颜色主题。"
},
"chat_color_theme_inverted": {
"type": "boolean",
- "description": "聊天主题颜色是否反转。"
+ "description": "聊天颜色主题是否反转。"
},
"icon_type": {
"type": "string",
- "description": "使用的图标类型。`emoji` 为表情图标,`image` 为上传的图片图标。"
+ "description": "使用的图标类型。`emoji` 表示表情图标,`image` 表示上传的图片图标。"
},
"icon": {
"type": "string",
- "description": "图标内容(表情或图片 ID)。"
+ "description": "图标内容(表情符号或图片 ID)。"
},
"icon_background": {
"type": "string",
@@ -4242,11 +4242,11 @@
"items": {
"$ref": "#/components/schemas/AnnotationItem"
},
- "description": "当前页面的标注项列表。"
+ "description": "当前页的标注项列表。"
},
"has_more": {
"type": "boolean",
- "description": "如果当前结果集之后还有更多页面,则为 `true`。"
+ "description": "当前结果集之外是否有更多页面可用时为 `true`。"
},
"limit": {
"type": "integer",
@@ -4254,7 +4254,7 @@
},
"total": {
"type": "integer",
- "description": "匹配查询条件的标注总数。"
+ "description": "匹配查询的标注总数。"
},
"page": {
"type": "integer",
@@ -4268,22 +4268,22 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "标注唯一标识符。"
+ "description": "唯一标注标识符。"
},
"question": {
"type": "string",
"nullable": true,
- "description": "触发该标注的问题文本。"
+ "description": "触发此标注的问题文本。"
},
"answer": {
"type": "string",
"nullable": true,
- "description": "标注被匹配时返回的预定义回答。"
+ "description": "标注匹配时返回的预定义答案。"
},
"hit_count": {
"type": "integer",
"nullable": true,
- "description": "该标注被匹配并作为回复返回的次数。"
+ "description": "此标注被匹配并作为回复返回的次数。"
},
"created_at": {
"type": "integer",
@@ -4340,7 +4340,7 @@
"properties": {
"embedding_provider_name": {
"type": "string",
- "description": "嵌入模型提供商名称(例如 `openai`、`cohere`)。"
+ "description": "嵌入模型供应商的名称(例如 `openai`、`cohere`)。"
},
"embedding_model_name": {
"type": "string",
@@ -4349,7 +4349,7 @@
"score_threshold": {
"type": "number",
"format": "float",
- "description": "标注被视为匹配的最低相似度分数。值越高,要求匹配越精确。",
+ "description": "标注被视为匹配的最小相似度分数。较高的值要求更接近的匹配。",
"minimum": 0,
"maximum": 1
}
@@ -4361,11 +4361,11 @@
"job_id": {
"type": "string",
"format": "uuid",
- "description": "异步任务 ID。配合 [查询标注回复配置任务状态](/api-reference/标注管理/查询标注回复配置任务状态) 使用以跟踪进度。"
+ "description": "异步任务 ID。与[获取标注回复任务状态](/api-reference/annotations/get-annotation-reply-job-status)一起使用以跟踪进度。"
},
"job_status": {
"type": "string",
- "description": "当前任务状态。`waiting` 表示排队中,`processing` 表示处理中,`completed` 表示已完成,`error` 表示失败。"
+ "description": "当前任务状态。`waiting` 表示排队中,`processing` 表示进行中,`completed` 表示已完成,`error` 表示失败。"
}
}
},
@@ -4375,11 +4375,11 @@
"job_id": {
"type": "string",
"format": "uuid",
- "description": "来自 [配置标注回复](/api-reference/标注管理/配置标注回复) 调用的任务 ID。"
+ "description": "来自[配置标注回复](/api-reference/annotations/configure-annotation-reply)调用的任务 ID。"
},
"job_status": {
"type": "string",
- "description": "当前任务状态。`waiting` 表示排队中,`processing` 表示处理中,`completed` 表示已完成,`error` 表示失败。"
+ "description": "当前任务状态。`waiting` 表示排队中,`processing` 表示进行中,`completed` 表示已完成,`error` 表示失败。"
},
"error_msg": {
"type": "string",
@@ -4391,36 +4391,36 @@
},
"tags": [
{
- "name": "对话消息",
- "description": "与聊天消息和交互相关的操作。"
+ "name": "Chats",
+ "description": "与对话消息和交互相关的操作。"
},
{
- "name": "文件操作",
+ "name": "Files",
"description": "文件上传和预览操作。"
},
{
- "name": "终端用户",
- "description": "终端用户信息相关操作。"
+ "name": "End Users",
+ "description": "与终端用户信息相关的操作。"
},
{
- "name": "消息反馈",
+ "name": "Feedback",
"description": "用户反馈操作。"
},
{
- "name": "会话管理",
- "description": "与管理会话相关的操作。"
+ "name": "Conversations",
+ "description": "与会话管理相关的操作。"
},
{
- "name": "语音与文字转换",
+ "name": "TTS",
"description": "文字转语音和语音转文字操作。"
},
{
- "name": "应用配置",
+ "name": "Applications",
"description": "获取应用设置和信息的操作。"
},
{
- "name": "标注管理",
- "description": "与管理标注直接回复相关的操作。"
+ "name": "Annotations",
+ "description": "与直接回复标注管理相关的操作。"
}
]
-}
+}
\ No newline at end of file
diff --git a/zh/api-reference/openapi_chatflow.json b/zh/api-reference/openapi_chatflow.json
index 35bd21558..6dc74a67c 100644
--- a/zh/api-reference/openapi_chatflow.json
+++ b/zh/api-reference/openapi_chatflow.json
@@ -1,14 +1,14 @@
{
"openapi": "3.0.1",
"info": {
- "title": "工作流编排对话型应用 API (对话流 API)",
- "description": "对话流应用支持会话持久化,允许将之前的聊天记录作为响应的上下文。对话流应用使用 `advanced-chat` 模式,提供工作流级别的流式事件,用于详细的执行追踪,包括节点开始、完成、迭代和工作流生命周期。",
+ "title": "Chatflow 应用 API",
+ "description": "Chatflow 应用支持会话持久化,允许将之前的聊天记录用作响应的上下文。Chatflow 应用使用 `advanced-chat` 模式,提供工作流级别的流式事件,用于详细的执行跟踪,包括节点开始、结束、迭代和工作流生命周期。",
"version": "1.0.0"
},
"servers": [
{
"url": "{api_base_url}",
- "description": "工作流编排对话型应用 API 的基础 URL。请将 {api_base_url} 替换为你的应用实际提供的 API 基础 URL。",
+ "description": "Chatflow 应用 API 的基础 URL。将 {api_base_url} 替换为为您的应用程序提供的实际 API 基础 URL。",
"variables": {
"api_base_url": {
"default": "https://api.dify.ai/v1",
@@ -26,10 +26,10 @@
"/chat-messages": {
"post": {
"summary": "发送对话消息",
- "description": "向对话型应用发送请求。",
- "operationId": "sendChatMessageCn",
+ "description": "向对话应用发送请求。",
+ "operationId": "sendAdvancedChatMessage",
"tags": [
- "对话消息"
+ "Chats"
],
"requestBody": {
"description": "发送对话消息的请求体。",
@@ -75,7 +75,7 @@
},
"responses": {
"200": {
- "description": "请求成功。内容类型和结构取决于请求中的 `response_mode` 参数。\n\n- 如果 `response_mode` 为 `blocking`,返回 `application/json` 和 `ChatCompletionResponse` 对象。\n- 如果 `response_mode` 为 `streaming`,返回 `text/event-stream` 和 `ChunkChatEvent` 对象流。",
+ "description": "成功响应。内容类型和结构取决于请求中的 `response_mode` 参数。\n- 如果 `response_mode` 为 `blocking`,返回 `application/json` 格式的 `ChatCompletionResponse` 对象。\n- 如果 `response_mode` 为 `streaming`,返回 `text/event-stream` 格式的 `ChunkChatEvent` 对象流。",
"content": {
"application/json": {
"schema": {
@@ -128,15 +128,15 @@
"text/event-stream": {
"schema": {
"type": "string",
- "description": "服务器发送事件 (SSE) 流。每个事件是一个以 `data: ` 为前缀的 JSON 对象,以两个换行符终止。\n\n**SSE 解析指南:**每个事件是一行以 `data: ` 为前缀的 JSON 对象,以 `\\n\\n` 终止。解析 JSON 前先去除 `data: ` 前缀。JSON 内的 `event` 字段决定事件类型。当收到终止事件(如 `message_end`、`workflow_finished` 或 `error`)时流结束。忽略 `ping` 事件(每 10 秒发送一次以保持连接活跃)。注意即使流中出现错误事件,HTTP 状态码仍为 `200`。"
+ "description": "服务器发送事件(SSE)流。每个事件是一个以 `data: ` 为前缀并以两个换行符结尾的 JSON 对象。有关可能的事件结构,请参阅 `ChunkChatEvent`。\n**SSE 解析指南:**每个事件是一行以 `data: ` 开头后跟 JSON 对象的内容,以 `\\n\\n` 结尾。在解析 JSON 之前去掉 `data: ` 前缀。JSON 内的 `event` 字段决定事件类型。`message_end` 标记对话消息的结束,但流可能会继续工作流生命周期事件,如 `workflow_finished` 或 `workflow_paused`。当收到终端工作流事件或 `error` 事件终止流时,流结束。忽略 `ping` 事件(每 10 秒发送一次以保持连接活跃)。请注意,即使流中发生错误事件,HTTP 状态码始终为 `200`。"
},
"examples": {
"streamingResponseBasic": {
- "summary": "Response Example - Streaming (Basic)",
+ "summary": "响应示例 - 流式(基础)",
"value": "data: {\"event\": \"message\", \"task_id\":\"mock_task_id\", \"message_id\": \"5ad4cb98-f0c7-4085-b384-88c403be6290\", \"conversation_id\": \"45701982-8118-4bc5-8e9b-64562b4555f2\", \"answer\": \" I\", \"created_at\": 1679586595} data: {\"event\": \"message_end\", \"task_id\":\"mock_task_id\", \"message_id\": \"5ad4cb98-f0c7-4085-b384-88c403be6290\", \"conversation_id\": \"45701982-8118-4bc5-8e9b-64562b4555f2\", \"metadata\": {\"usage\": {\"total_tokens\": 10, \"latency\": 1.0}}}"
},
"streamingResponseWorkflow": {
- "summary": "Response Example - Streaming (工作流)",
+ "summary": "响应示例 - 流式(工作流)",
"value": "data: {\"event\": \"workflow_started\", \"task_id\": \"task123\", \"workflow_run_id\": \"wfr_abc123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"data\": {\"id\": \"wfr_abc123\", \"workflow_id\": \"wf_def456\", \"inputs\": {\"city\": \"San Francisco\"}, \"created_at\": 1705395332}} data: {\"event\": \"node_started\", \"task_id\": \"task123\", \"workflow_run_id\": \"wfr_abc123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"data\": {\"id\": \"ne_001\", \"node_id\": \"node_llm_1\", \"node_type\": \"llm\", \"title\": \"LLM\", \"index\": 1, \"created_at\": 1705395332}} data: {\"event\": \"message\", \"task_id\": \"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"answer\": \" I\", \"created_at\": 1705395333} data: {\"event\": \"node_finished\", \"task_id\": \"task123\", \"workflow_run_id\": \"wfr_abc123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"data\": {\"id\": \"ne_001\", \"node_id\": \"node_llm_1\", \"node_type\": \"llm\", \"title\": \"LLM\", \"index\": 1, \"status\": \"succeeded\", \"elapsed_time\": 1.5, \"created_at\": 1705395332, \"finished_at\": 1705395334}} data: {\"event\": \"message_end\", \"task_id\": \"task123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"metadata\": {\"usage\": {\"total_tokens\": 50, \"latency\": 2.5}}} data: {\"event\": \"workflow_finished\", \"task_id\": \"task123\", \"workflow_run_id\": \"wfr_abc123\", \"message_id\": \"msg123\", \"conversation_id\": \"conv123\", \"data\": {\"id\": \"wfr_abc123\", \"workflow_id\": \"wf_def456\", \"status\": \"succeeded\", \"elapsed_time\": 2.5, \"total_tokens\": 50, \"total_steps\": 2, \"created_at\": 1705395332, \"finished_at\": 1705395335}}"
}
}
@@ -144,7 +144,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `not_chat_app` : App mode does not match the API route.\n- `conversation_completed` : The conversation has ended.\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不可用。\n- `completion_request_error` : 文本生成失败。\n- `bad_request` : Cannot use draft 工作流 version.\n- `bad_request` : Invalid `workflow_id` format.",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `not_chat_app`:应用模式与 API 路由不匹配。\n- `conversation_completed`:对话已结束。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已耗尽。\n- `model_currently_not_support`:当前模型不可用。\n- `completion_request_error`:文本生成失败。\n- `bad_request`:无法使用草稿工作流版本。\n- `bad_request`:`workflow_id` 格式无效。",
"content": {
"application/json": {
"examples": {
@@ -225,7 +225,7 @@
}
},
"404": {
- "description": "- `not_found` : Conversation does not exist.\n- `not_found` : 工作流 not found with the specified `workflow_id`.",
+ "description": "- `not_found`:对话不存在。\n- `not_found`:找不到指定 `workflow_id` 的工作流。",
"content": {
"application/json": {
"examples": {
@@ -250,7 +250,7 @@
}
},
"429": {
- "description": "- `too_many_requests` : 该应用的并发请求过多。\n- `rate_limit_error` : 上游模型提供商的速率限制已超出。",
+ "description": "- `too_many_requests`:此应用的并发请求过多。\n- `rate_limit_error`:上游模型供应商速率限制已超出。",
"content": {
"application/json": {
"examples": {
@@ -275,7 +275,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:内部服务器错误。",
"content": {
"application/json": {
"examples": {
@@ -296,18 +296,18 @@
},
"/chat-messages/{task_id}/stop": {
"post": {
- "summary": "停止响应",
- "description": "停止聊天消息生成任务。仅在 `streaming` 模式下支持。",
- "operationId": "stopChatMessageGenerationCn",
+ "summary": "停止对话消息生成",
+ "description": "停止对话消息生成任务。仅在 `streaming` 模式下支持。",
+ "operationId": "stopAdvancedChatMessageGeneration",
"tags": [
- "对话消息"
+ "Chats"
],
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
- "description": "任务 ID,可以从 [发送对话消息](/api-reference/对话消息/发送对话消息) API 的流式分块返回中获取。",
+ "description": "任务 ID,可从[发送对话消息](/zh/api-reference/chats/send-chat-message) API 的流式块返回中获取。",
"schema": {
"type": "string"
}
@@ -325,7 +325,7 @@
"properties": {
"user": {
"type": "string",
- "description": "用户标识符,必须和发送消息接口传入的 user 保持一致。"
+ "description": "用户标识符,必须与发送消息接口中传递的用户一致。"
}
}
},
@@ -345,7 +345,7 @@
"$ref": "#/components/responses/SuccessResult"
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -366,11 +366,11 @@
},
"/messages/{message_id}/suggested": {
"get": {
- "summary": "获取下一轮建议问题列表",
- "description": "获取当前消息的下一步建议问题。",
- "operationId": "getSuggestedQuestionsCn",
+ "summary": "获取下一步问题建议",
+ "description": "获取当前消息的下一步问题建议。",
+ "operationId": "getAdvancedSuggestedQuestions",
"tags": [
- "对话消息"
+ "Chats"
],
"parameters": [
{
@@ -417,7 +417,7 @@
}
},
"400": {
- "description": "- `not_chat_app` : 应用模式与 API 路由不匹配。\n- `bad_request` : 建议问题功能已禁用。",
+ "description": "- `not_chat_app`:应用模式与 API 路由不匹配。\n- `bad_request`:建议问题功能已禁用。",
"content": {
"application/json": {
"examples": {
@@ -442,7 +442,7 @@
}
},
"404": {
- "description": "`not_found` : 消息不存在。",
+ "description": "`not_found`:消息不存在。",
"content": {
"application/json": {
"examples": {
@@ -459,7 +459,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:内部服务器错误。",
"content": {
"application/json": {
"examples": {
@@ -480,14 +480,14 @@
},
"/files/upload": {
"post": {
- "operationId": "uploadFileCn",
+ "operationId": "uploadAdvancedChatFile",
"tags": [
- "文件操作"
+ "Files"
],
"summary": "上传文件",
- "description": "上传文件用于发送消息时使用,支持图片、文档、音频和视频的多模态理解。上传的文件仅供当前终端用户使用。",
+ "description": "上传文件以便在发送消息时使用,支持对图像、文档、音频和视频的多模态理解。上传的文件仅供当前终端用户使用。",
"requestBody": {
- "description": "文件上传请求。需要 multipart/form-data 格式。",
+ "description": "文件上传请求。需要 multipart/form-data。",
"required": true,
"content": {
"multipart/form-data": {
@@ -500,11 +500,11 @@
"file": {
"type": "string",
"format": "binary",
- "description": "要上传的文件。支持的类型包括图片、文档、音频和视频。"
+ "description": "要上传的文件。支持的类型包括图像、文档、音频和视频。"
},
"user": {
"type": "string",
- "description": "用户标识符,由开发者定义的规则生成,必须在应用内唯一。"
+ "description": "用户标识符,由开发者规则定义,必须在应用内唯一。"
}
}
}
@@ -544,7 +544,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : 请求中未提供文件。\n- `too_many_files` : 每次请求仅允许上传一个文件。\n- `filename_not_exists_error` : 上传的文件没有文件名。",
+ "description": "- `no_file_uploaded`:请求中未提供文件。\n- `too_many_files`:每个请求只允许一个文件。\n- `filename_not_exists_error`:上传的文件没有文件名。",
"content": {
"application/json": {
"examples": {
@@ -577,7 +577,7 @@
}
},
"413": {
- "description": "`file_too_large` : 文件大小超出限制。",
+ "description": "`file_too_large`:文件大小超出限制。",
"content": {
"application/json": {
"examples": {
@@ -594,7 +594,7 @@
}
},
"415": {
- "description": "`unsupported_file_type` : 不允许的文件类型。",
+ "description": "`unsupported_file_type`:不允许的文件类型。",
"content": {
"application/json": {
"examples": {
@@ -615,18 +615,18 @@
},
"/files/{file_id}/preview": {
"get": {
- "operationId": "previewChatFlowFileCn",
+ "operationId": "previewChatFlowFile",
"tags": [
- "文件操作"
+ "Files"
],
"summary": "下载文件",
- "description": "预览或下载之前通过[上传文件](/api-reference/文件操作/上传文件) API 上传的文件。仅可访问属于请求应用内消息的文件。",
+ "description": "预览或下载之前通过[上传文件](/zh/api-reference/files/upload-file) API 上传的文件。只有属于请求应用内消息的文件才能访问。",
"parameters": [
{
"name": "file_id",
"in": "path",
"required": true,
- "description": "要预览的文件唯一标识符,从 [上传文件](/api-reference/文件操作/上传文件) API 响应中获取。",
+ "description": "要预览的文件的唯一标识符,从[上传文件](/zh/api-reference/files/upload-file) API 响应中获取。",
"schema": {
"type": "string",
"format": "uuid"
@@ -636,7 +636,7 @@
"name": "as_attachment",
"in": "query",
"required": false,
- "description": "如果为 `true`,则强制文件以附件形式下载,而不是在浏览器中预览。",
+ "description": "如果为 `true`,强制文件作为附件下载而不是在浏览器中预览。",
"schema": {
"type": "boolean",
"default": false
@@ -654,7 +654,7 @@
],
"responses": {
"200": {
- "description": "返回原始文件内容。`Content-Type` 头设置为文件的 MIME 类型。如果 `as_attachment` 为 `true`,文件将以 `Content-Disposition: attachment` 方式作为下载返回。",
+ "description": "返回原始文件内容。`Content-Type` 标头设置为文件的 MIME 类型。如果 `as_attachment` 为 `true`,文件将作为下载返回,带有 `Content-Disposition: attachment`。",
"content": {
"application/octet-stream": {
"schema": {
@@ -665,7 +665,7 @@
}
},
"403": {
- "description": "`file_access_denied` : 拒绝访问请求的文件。",
+ "description": "`file_access_denied`:对请求文件的访问被拒绝。",
"content": {
"application/json": {
"examples": {
@@ -682,7 +682,7 @@
}
},
"404": {
- "description": "`file_not_found` : 未找到请求的文件。",
+ "description": "`file_not_found`:请求的文件未找到。",
"content": {
"application/json": {
"examples": {
@@ -703,12 +703,12 @@
},
"/end-users/{end_user_id}": {
"get": {
- "operationId": "getEndUserChatflowCn",
+ "operationId": "getEndUserChatflow",
"tags": [
- "终端用户"
+ "End Users"
],
"summary": "获取终端用户信息",
- "description": "根据 ID 获取终端用户信息。当其他 API 返回终端用户 ID(例如[上传文件](/api-reference/文件操作/上传文件)返回的 `created_by`)时很有用。",
+ "description": "通过 ID 检索终端用户。当其他 API 返回终端用户 ID 时(例如[上传文件](/zh/api-reference/files/upload-file)中的 `created_by`)很有用。",
"parameters": [
{
"name": "end_user_id",
@@ -750,7 +750,7 @@
}
},
"404": {
- "description": "`end_user_not_found` : 未找到终端用户。",
+ "description": "`end_user_not_found`:终端用户未找到。",
"content": {
"application/json": {
"examples": {
@@ -771,12 +771,12 @@
},
"/messages/{message_id}/feedbacks": {
"post": {
- "operationId": "postMessageFeedbackCn",
+ "operationId": "postAdvancedChatMessageFeedback",
"tags": [
- "消息反馈"
+ "Feedback"
],
"summary": "提交消息反馈",
- "description": "提交消息反馈。终端用户可以对消息评价 `like` 或 `dislike`,并可选择提供文字反馈。将 `rating` 设为 `null` 可撤销之前提交的反馈。",
+ "description": "提交消息反馈。终端用户可以将消息评为 `like` 或 `dislike`,并可选择提供文本反馈。将 `rating` 设为 `null` 可撤销之前提交的反馈。",
"parameters": [
{
"name": "message_id",
@@ -813,7 +813,7 @@
"$ref": "#/components/responses/SuccessResult"
},
"404": {
- "description": "`not_found` : 消息不存在。",
+ "description": "`not_found`:消息不存在。",
"content": {
"application/json": {
"examples": {
@@ -834,17 +834,17 @@
},
"/app/feedbacks": {
"get": {
- "operationId": "getAppFeedbacksCn",
+ "operationId": "getAdvancedChatAppFeedbacks",
"tags": [
- "消息反馈"
+ "Feedback"
],
- "summary": "获取应用的消息反馈",
- "description": "获取此应用中所有消息反馈的分页列表,包括终端用户和管理员反馈。",
+ "summary": "获取应用反馈列表",
+ "description": "检索此应用中所有消息提交的反馈的分页列表,包括终端用户和管理员反馈。",
"parameters": [
{
"name": "page",
"in": "query",
- "description": "分页页码。",
+ "description": "分页的页码。",
"required": false,
"schema": {
"type": "integer",
@@ -855,7 +855,7 @@
{
"name": "limit",
"in": "query",
- "description": "每页记录数。",
+ "description": "每页的记录数。",
"required": false,
"schema": {
"type": "integer",
@@ -916,11 +916,11 @@
},
"/conversations": {
"get": {
- "summary": "获取会话列表",
- "description": "获取当前用户的会话列表,按最近活跃时间排序。",
- "operationId": "getConversationsListCn",
+ "summary": "获取对话列表",
+ "description": "检索当前用户的对话列表,按最近活跃排序。",
+ "operationId": "getAdvancedConversationsList",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
@@ -945,7 +945,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "返回的记录数。",
+ "description": "要返回的记录数。",
"schema": {
"type": "integer",
"default": 20,
@@ -972,7 +972,7 @@
],
"responses": {
"200": {
- "description": "成功获取会话列表。",
+ "description": "成功获取对话列表。",
"content": {
"application/json": {
"schema": {
@@ -1004,7 +1004,7 @@
}
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1021,7 +1021,7 @@
}
},
"404": {
- "description": "`not_found` : 上一个会话不存在(无效的 `last_id`)。",
+ "description": "`not_found`:最后一个对话不存在(无效的 `last_id`)。",
"content": {
"application/json": {
"examples": {
@@ -1042,18 +1042,18 @@
},
"/messages": {
"get": {
- "summary": "获取会话历史消息",
- "description": "以滚动加载的格式返回历史聊天记录,首页返回最新的 `limit` 条消息,即按时间倒序排列。",
- "operationId": "getConversationHistoryCn",
+ "summary": "获取对话消息列表",
+ "description": "以滚动加载格式返回历史聊天记录,第一页返回最新的 `limit` 条消息,即倒序排列。",
+ "operationId": "getAdvancedConversationHistory",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
"name": "conversation_id",
"in": "query",
"required": true,
- "description": "会话 ID。",
+ "description": "对话 ID。",
"schema": {
"type": "string"
}
@@ -1071,7 +1071,7 @@
"name": "first_id",
"in": "query",
"required": false,
- "description": "当前页第一条聊天记录的 ID。默认为 `null`(获取最新消息)。获取后续页面时,使用当前列表中第一条消息的 ID 来获取更早的消息。",
+ "description": "当前页第一条聊天记录的 ID。默认为 `null`(获取最新消息)。对于后续页面,使用当前列表中第一条消息的 ID 以获取更早的消息。",
"schema": {
"type": "string"
}
@@ -1080,7 +1080,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "每次请求返回的聊天历史消息数量。",
+ "description": "每次请求返回的聊天历史消息数。",
"schema": {
"type": "integer",
"default": 20,
@@ -1091,7 +1091,7 @@
],
"responses": {
"200": {
- "description": "成功获取会话历史。",
+ "description": "成功获取对话历史。",
"content": {
"application/json": {
"schema": {
@@ -1131,7 +1131,7 @@
}
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1148,7 +1148,7 @@
}
},
"404": {
- "description": "- `not_found` : 会话不存在。\n- `not_found` : 第一条消息不存在。",
+ "description": "- `not_found`:对话不存在。\n- `not_found`:第一条消息不存在。",
"content": {
"application/json": {
"examples": {
@@ -1177,18 +1177,18 @@
},
"/conversations/{conversation_id}/variables": {
"get": {
- "summary": "获取对话变量",
- "description": "从特定会话中获取变量。",
- "operationId": "getConversationVariablesCn",
+ "summary": "获取会话变量列表",
+ "description": "从特定对话中检索变量。",
+ "operationId": "getAdvancedConversationVariables",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
"name": "conversation_id",
"in": "path",
"required": true,
- "description": "会话 ID。",
+ "description": "对话 ID。",
"schema": {
"type": "string"
}
@@ -1215,7 +1215,7 @@
"name": "limit",
"in": "query",
"required": false,
- "description": "返回的记录数。",
+ "description": "要返回的记录数。",
"schema": {
"type": "integer",
"default": 20,
@@ -1227,7 +1227,7 @@
"name": "variable_name",
"in": "query",
"required": false,
- "description": "按指定名称筛选变量。",
+ "description": "按特定名称筛选变量。",
"schema": {
"type": "string",
"minLength": 1,
@@ -1267,7 +1267,7 @@
}
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1284,7 +1284,7 @@
}
},
"404": {
- "description": "`not_found` : 会话不存在。",
+ "description": "`not_found`:对话不存在。",
"content": {
"application/json": {
"examples": {
@@ -1305,18 +1305,18 @@
},
"/conversations/{conversation_id}/name": {
"post": {
- "summary": "重命名会话",
- "description": "重命名会话或自动生成名称。会话名称用于在支持多会话的客户端上显示。",
- "operationId": "renameConversationCn",
+ "summary": "重命名对话",
+ "description": "重命名对话或自动生成名称。对话名称用于在支持多对话的客户端上显示。",
+ "operationId": "renameAdvancedConversation",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
"name": "conversation_id",
"in": "path",
"required": true,
- "description": "会话 ID。",
+ "description": "对话 ID。",
"schema": {
"type": "string"
}
@@ -1343,7 +1343,7 @@
},
"responses": {
"200": {
- "description": "会话重命名成功。",
+ "description": "对话重命名成功。",
"content": {
"application/json": {
"schema": {
@@ -1369,7 +1369,7 @@
}
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1386,7 +1386,7 @@
}
},
"404": {
- "description": "`not_found` : 会话不存在。",
+ "description": "`not_found`:对话不存在。",
"content": {
"application/json": {
"examples": {
@@ -1407,18 +1407,18 @@
},
"/conversations/{conversation_id}/variables/{variable_id}": {
"put": {
- "summary": "更新对话变量",
- "description": "更新特定会话变量的值。值必须与预期类型匹配。",
- "operationId": "updateChatflowConversationVariableZh",
+ "summary": "更新会话变量",
+ "description": "更新特定会话变量的值。值必须匹配预期的类型。",
+ "operationId": "updateChatflowConversationVariable",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
"name": "conversation_id",
"in": "path",
"required": true,
- "description": "会话 ID。",
+ "description": "对话 ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -1428,7 +1428,7 @@
"name": "variable_id",
"in": "path",
"required": true,
- "description": "Variable ID.",
+ "description": "变量 ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -1480,7 +1480,7 @@
}
},
"400": {
- "description": "- `not_chat_app` : 应用模式与 API 路由不匹配。\n- `bad_request` : 变量值类型不匹配。",
+ "description": "- `not_chat_app`:应用模式与 API 路由不匹配。\n- `bad_request`:变量值类型不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1505,7 +1505,7 @@
}
},
"404": {
- "description": "- `not_found` : 会话不存在。\n- `not_found` : 会话变量不存在。",
+ "description": "- `not_found`:对话不存在。\n- `not_found`:会话变量不存在。",
"content": {
"application/json": {
"examples": {
@@ -1534,18 +1534,18 @@
},
"/conversations/{conversation_id}": {
"delete": {
- "summary": "删除会话",
- "description": "删除会话。",
- "operationId": "deleteConversationCn",
+ "summary": "删除对话",
+ "description": "删除对话。",
+ "operationId": "deleteAdvancedConversation",
"tags": [
- "会话管理"
+ "Conversations"
],
"parameters": [
{
"name": "conversation_id",
"in": "path",
"required": true,
- "description": "会话 ID。",
+ "description": "对话 ID。",
"schema": {
"type": "string"
}
@@ -1577,10 +1577,10 @@
},
"responses": {
"204": {
- "description": "会话删除成功。无返回内容。"
+ "description": "对话删除成功。无返回内容。"
},
"400": {
- "description": "`not_chat_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_chat_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -1597,7 +1597,7 @@
}
},
"404": {
- "description": "`not_found` : 会话不存在。",
+ "description": "`not_found`:对话不存在。",
"content": {
"application/json": {
"examples": {
@@ -1618,9 +1618,9 @@
},
"/audio-to-text": {
"post": {
- "operationId": "audioToTextCn",
+ "operationId": "advancedAudioToText",
"tags": [
- "语音与文字转换"
+ "TTS"
],
"summary": "语音转文字",
"description": "将音频文件转换为文字。支持的格式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。文件大小限制为 `30 MB`。",
@@ -1636,7 +1636,7 @@
},
"responses": {
"200": {
- "description": "语音转文字成功。",
+ "description": "成功将音频转换为文字。",
"content": {
"application/json": {
"schema": {
@@ -1654,7 +1654,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `no_audio_uploaded` : 未上传音频文件。\n- `provider_not_support_speech_to_text` : 模型提供商不支持语音转文字。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不支持此操作。\n- `completion_request_error` : 语音识别请求失败。",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `no_audio_uploaded`:未上传音频文件。\n- `provider_not_support_speech_to_text`:模型供应商不支持语音转文字。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已耗尽。\n- `model_currently_not_support`:当前模型不支持此操作。\n- `completion_request_error`:语音识别请求失败。",
"content": {
"application/json": {
"examples": {
@@ -1719,7 +1719,7 @@
}
},
"413": {
- "description": "`audio_too_large` : 音频文件大小超出限制。",
+ "description": "`audio_too_large`:音频文件大小超出限制。",
"content": {
"application/json": {
"examples": {
@@ -1736,7 +1736,7 @@
}
},
"415": {
- "description": "`unsupported_audio_type` : 不允许的音频类型。",
+ "description": "`unsupported_audio_type`:不允许的音频类型。",
"content": {
"application/json": {
"examples": {
@@ -1753,7 +1753,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:内部服务器错误。",
"content": {
"application/json": {
"examples": {
@@ -1774,9 +1774,9 @@
},
"/text-to-audio": {
"post": {
- "operationId": "textToAudioCn",
+ "operationId": "advancedTextToAudio",
"tags": [
- "语音与文字转换"
+ "TTS"
],
"summary": "文字转语音",
"description": "将文字转换为语音。",
@@ -1803,7 +1803,7 @@
},
"responses": {
"200": {
- "description": "返回生成的音频文件。`Content-Type` 头设置为音频 MIME 类型(例如 `audio/wav`、`audio/mp3`)。如果 `streaming` 为 `true`,音频将以分块传输编码方式流式返回。",
+ "description": "返回生成的音频文件。`Content-Type` 标头设置为音频 MIME 类型(例如 `audio/wav`、`audio/mp3`)。如果 `streaming` 为 `true`,音频将以分块传输编码方式流式传输。",
"content": {
"audio/mpeg": {
"schema": {
@@ -1814,7 +1814,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不支持此操作。\n- `completion_request_error` : 文字转语音请求失败。",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已耗尽。\n- `model_currently_not_support`:当前模型不支持此操作。\n- `completion_request_error`:文字转语音请求失败。",
"content": {
"application/json": {
"examples": {
@@ -1863,7 +1863,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:内部服务器错误。",
"content": {
"application/json": {
"examples": {
@@ -1884,12 +1884,12 @@
},
"/info": {
"get": {
- "operationId": "getAppInfoCn",
+ "operationId": "getAdvancedChatAppInfo",
"tags": [
- "应用配置"
+ "Applications"
],
- "summary": "获取应用基本信息",
- "description": "获取应用的基本信息,包括名称、描述、标签和模式。",
+ "summary": "获取应用信息",
+ "description": "检索此应用的基本信息,包括名称、描述、标签和模式。",
"responses": {
"200": {
"description": "应用的基本信息。",
@@ -1921,12 +1921,12 @@
},
"/parameters": {
"get": {
- "operationId": "getAppParametersCn",
+ "operationId": "getAdvancedChatAppParameters",
"tags": [
- "应用配置"
+ "Applications"
],
"summary": "获取应用参数",
- "description": "获取应用的输入表单配置,包括功能开关、输入参数名称、类型和默认值。",
+ "description": "检索应用的输入表单配置,包括功能开关、输入参数名称、类型和默认值。",
"responses": {
"200": {
"description": "应用参数信息。",
@@ -2003,7 +2003,7 @@
}
},
"400": {
- "description": "`app_unavailable` : 应用不可用或配置错误。",
+ "description": "`app_unavailable`:应用不可用或配置错误。",
"content": {
"application/json": {
"examples": {
@@ -2024,15 +2024,15 @@
},
"/meta": {
"get": {
- "operationId": "getAppMetaCn",
+ "operationId": "getAdvancedChatAppMeta",
"tags": [
- "应用配置"
+ "Applications"
],
"summary": "获取应用元数据",
- "description": "获取应用的元数据,包括工具图标和其他配置详情。",
+ "description": "检索此应用的元数据,包括工具图标和其他配置详情。",
"responses": {
"200": {
- "description": "成功获取应用元数据。",
+ "description": "成功获取应用元数据信息。",
"content": {
"application/json": {
"schema": {
@@ -2060,12 +2060,12 @@
},
"/site": {
"get": {
- "operationId": "getWebAppSettingsCn",
+ "operationId": "getAdvancedChatWebAppSettings",
"tags": [
- "应用配置"
+ "Applications"
],
"summary": "获取应用 WebApp 设置",
- "description": "获取应用的 WebApp 设置,包括站点配置、主题和自定义选项。",
+ "description": "检索此应用的 WebApp 设置,包括站点配置、主题和自定义选项。",
"responses": {
"200": {
"description": "应用的 WebApp 设置。",
@@ -2078,7 +2078,7 @@
"webAppSettings": {
"summary": "响应示例",
"value": {
- "title": "My Chat App",
+ "title": "我的聊天应用",
"chat_color_theme": "#4A90D9",
"chat_color_theme_inverted": false,
"icon_type": "emoji",
@@ -2099,7 +2099,7 @@
}
},
"403": {
- "description": "`forbidden` : 未找到此应用的站点或工作空间已归档。",
+ "description": "`forbidden`:未找到此应用的站点或工作区已归档。",
"content": {
"application/json": {
"examples": {
@@ -2121,10 +2121,10 @@
"/apps/annotations": {
"post": {
"summary": "创建标注",
- "description": "创建新的标注。标注提供预定义的问答对,应用可以直接匹配并返回,而无需生成回复。",
- "operationId": "createAnnotationCn",
+ "description": "创建新的标注。标注提供预定义的问答对,应用可以匹配并直接返回,而不是生成响应。",
+ "operationId": "createAdvancedAnnotation",
"tags": [
- "标注管理"
+ "Annotations"
],
"requestBody": {
"required": true,
@@ -2172,16 +2172,16 @@
},
"get": {
"summary": "获取标注列表",
- "description": "获取应用的标注分页列表。支持关键词搜索筛选。",
- "operationId": "getAnnotationListCn",
+ "description": "检索应用的标注分页列表。支持关键词搜索过滤。",
+ "operationId": "getAdvancedAnnotationList",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
"name": "page",
"in": "query",
- "description": "分页页码。",
+ "description": "分页的页码。",
"required": false,
"schema": {
"type": "integer",
@@ -2191,7 +2191,7 @@
{
"name": "limit",
"in": "query",
- "description": "每页条目数。",
+ "description": "每页的项目数。",
"required": false,
"schema": {
"type": "integer",
@@ -2201,7 +2201,7 @@
{
"name": "keyword",
"in": "query",
- "description": "按问题或回答内容筛选标注的关键词。",
+ "description": "按问题或答案内容过滤标注的关键词。",
"required": false,
"schema": {
"type": "string"
@@ -2245,10 +2245,10 @@
"/apps/annotations/{annotation_id}": {
"put": {
"summary": "更新标注",
- "description": "更新现有标注的问题和回答。",
- "operationId": "updateAnnotationCn",
+ "description": "更新现有标注的问题和答案。",
+ "operationId": "updateAdvancedAnnotation",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
@@ -2305,7 +2305,7 @@
}
},
"403": {
- "description": "`forbidden` : 编辑标注的权限不足。",
+ "description": "`forbidden`:权限不足,无法编辑标注。",
"content": {
"application/json": {
"examples": {
@@ -2322,7 +2322,7 @@
}
},
"404": {
- "description": "`not_found` : 标注不存在。",
+ "description": "`not_found`:标注不存在。",
"content": {
"application/json": {
"examples": {
@@ -2343,9 +2343,9 @@
"delete": {
"summary": "删除标注",
"description": "删除标注及其关联的命中历史。",
- "operationId": "deleteAnnotationCn",
+ "operationId": "deleteAdvancedAnnotation",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
@@ -2364,7 +2364,7 @@
"description": "标注删除成功。"
},
"403": {
- "description": "`forbidden` : 编辑标注的权限不足。",
+ "description": "`forbidden`:权限不足,无法编辑标注。",
"content": {
"application/json": {
"examples": {
@@ -2381,7 +2381,7 @@
}
},
"404": {
- "description": "`not_found` : 标注不存在。",
+ "description": "`not_found`:标注不存在。",
"content": {
"application/json": {
"examples": {
@@ -2403,10 +2403,10 @@
"/apps/annotation-reply/{action}": {
"post": {
"summary": "配置标注回复",
- "description": "启用或禁用标注回复功能。启用时需要配置嵌入模型。异步执行——使用 [查询标注回复配置任务状态](/api-reference/标注管理/查询标注回复配置任务状态) 跟踪进度。",
- "operationId": "initialAnnotationReplySettingsCn",
+ "description": "启用或禁用标注回复功能。启用时需要嵌入模型配置。异步执行 — 使用[获取标注回复任务状态](/zh/api-reference/annotations/get-annotation-reply-job-status)跟踪进度。",
+ "operationId": "initialAdvancedAnnotationReplySettings",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
@@ -2468,18 +2468,18 @@
},
"/apps/annotation-reply/{action}/status/{job_id}": {
"get": {
- "summary": "查询标注回复配置任务状态",
- "description": "获取由 [配置标注回复](/api-reference/标注管理/配置标注回复) 发起的异步标注回复配置任务的状态。",
- "operationId": "getInitialAnnotationReplySettingsStatusCn",
+ "summary": "获取标注回复任务状态",
+ "description": "检索由[配置标注回复](/zh/api-reference/annotations/configure-annotation-reply)启动的异步标注回复配置任务的状态。",
+ "operationId": "getAdvancedInitialAnnotationReplySettingsStatus",
"tags": [
- "标注管理"
+ "Annotations"
],
"parameters": [
{
"name": "action",
"in": "path",
"required": true,
- "description": "操作类型,必须与 [配置标注回复](/api-reference/标注管理/配置标注回复) 调用中的一致。",
+ "description": "操作类型,必须与[配置标注回复](/zh/api-reference/annotations/configure-annotation-reply)调用匹配。",
"schema": {
"type": "string",
"enum": [
@@ -2492,7 +2492,7 @@
"name": "job_id",
"in": "path",
"required": true,
- "description": "由 [配置标注回复](/api-reference/标注管理/配置标注回复) 接口返回的任务 ID。",
+ "description": "由[配置标注回复](/zh/api-reference/annotations/configure-annotation-reply)返回的任务 ID。",
"schema": {
"type": "string",
"format": "uuid"
@@ -2521,7 +2521,7 @@
}
},
"400": {
- "description": "`invalid_param` : 指定的任务不存在。",
+ "description": "`invalid_param`:指定的任务不存在。",
"content": {
"application/json": {
"examples": {
@@ -2542,11 +2542,11 @@
},
"/workflows/run/{workflow_run_id}": {
"get": {
- "summary": "获取工作流执行情况",
- "description": "根据工作流执行 ID 获取工作流任务的当前执行结果。",
- "operationId": "getChatflowWorkflowRunDetailZh",
+ "summary": "获取工作流运行详情",
+ "description": "根据工作流执行 ID 检索工作流任务的当前执行结果。",
+ "operationId": "getChatflowWorkflowRunDetail",
"tags": [
- "工作流执行"
+ "Workflow Runs"
],
"parameters": [
{
@@ -2593,7 +2593,7 @@
}
},
"400": {
- "description": "`not_workflow_app` : 应用模式与 API 路由不匹配。",
+ "description": "`not_workflow_app`:应用模式与 API 路由不匹配。",
"content": {
"application/json": {
"examples": {
@@ -2610,7 +2610,7 @@
}
},
"404": {
- "description": "`not_found` : 未找到工作流运行记录。",
+ "description": "`not_found`:工作流运行未找到。",
"content": {
"application/json": {
"examples": {
@@ -2631,11 +2631,11 @@
},
"/workflows/logs": {
"get": {
- "summary": "获取工作流日志",
- "description": "获取分页的工作流执行日志,支持筛选选项。",
- "operationId": "listChatflowWorkflowLogsZh",
+ "summary": "获取工作流日志列表",
+ "description": "检索带过滤选项的分页工作流执行日志。",
+ "operationId": "listChatflowWorkflowLogs",
"tags": [
- "工作流执行"
+ "Workflow Runs"
],
"parameters": [
{
@@ -2649,7 +2649,7 @@
{
"name": "status",
"in": "query",
- "description": "按执行状态筛选。",
+ "description": "按执行状态过滤。",
"schema": {
"type": "string",
"enum": [
@@ -2662,7 +2662,7 @@
{
"name": "page",
"in": "query",
- "description": "分页页码。",
+ "description": "分页的页码。",
"schema": {
"type": "integer",
"default": 1,
@@ -2673,7 +2673,7 @@
{
"name": "limit",
"in": "query",
- "description": "每页条目数。",
+ "description": "每页的项目数。",
"schema": {
"type": "integer",
"default": 20,
@@ -2684,7 +2684,7 @@
{
"name": "created_at__before",
"in": "query",
- "description": "筛选在此 ISO 8601 时间戳之前创建的日志。",
+ "description": "过滤在此 ISO 8601 时间戳之前创建的日志。",
"schema": {
"type": "string",
"format": "date-time"
@@ -2693,7 +2693,7 @@
{
"name": "created_at__after",
"in": "query",
- "description": "筛选在此 ISO 8601 时间戳之后创建的日志。",
+ "description": "过滤在此 ISO 8601 时间戳之后创建的日志。",
"schema": {
"type": "string",
"format": "date-time"
@@ -2702,7 +2702,7 @@
{
"name": "created_by_end_user_session_id",
"in": "query",
- "description": "按终端用户会话 ID 筛选。",
+ "description": "按终端用户会话 ID 过滤。",
"schema": {
"type": "string"
}
@@ -2710,7 +2710,7 @@
{
"name": "created_by_account",
"in": "query",
- "description": "按账户 ID 筛选。",
+ "description": "按账户 ID 过滤。",
"schema": {
"type": "string"
}
@@ -2775,7 +2775,7 @@
"type": "http",
"scheme": "bearer",
"bearerFormat": "API_KEY",
- "description": "API Key 认证。对于所有 API 请求,请在 `Authorization` HTTP 头中包含您的 API Key,并加上 `Bearer ` 前缀。示例:`Authorization: Bearer {API_KEY}`。**强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。**"
+ "description": "API 密钥认证。对于所有 API 请求,在 `Authorization` HTTP 标头中包含您的 API 密钥,以 `Bearer ` 为前缀。示例:`Authorization: Bearer {API_KEY}`。**强烈建议将 API 密钥存储在服务器端,不要在客户端共享或存储,以避免可能导致严重后果的 API 密钥泄露。**"
}
},
"responses": {
@@ -2819,7 +2819,7 @@
},
"inputs": {
"type": "object",
- "description": "允许输入应用定义的各种变量值。包含键值对。请参阅 [获取应用参数](/api-reference/应用配置/获取应用参数) 响应中的 `user_input_form` 字段,以了解应用所需的变量名称和类型。",
+ "description": "允许输入应用定义的各种变量值。包含键值对。请参阅[获取应用参数](/zh/api-reference/applications/get-app-parameters)响应中的 `user_input_form` 字段,了解您的应用期望的变量名称和类型。",
"additionalProperties": true
},
"response_mode": {
@@ -2828,19 +2828,19 @@
"streaming",
"blocking"
],
- "description": "响应返回模式。`streaming`(推荐)使用 SSE。`blocking` 等待完成后返回(长时间处理可能会被中断)。Cloudflare 超时为 `100 s`。省略时默认为阻塞模式。"
+ "description": "响应返回模式。`streaming`(推荐)使用 SSE。`blocking` 在完成后返回(对于长时间处理可能会中断)。Cloudflare 超时为 `100 秒`。省略时默认为阻塞行为。"
},
"user": {
"type": "string",
- "description": "用户标识符,在应用内唯一。此标识符用于限定数据访问范围——会话、消息和文件仅在使用相同的 `user` 值查询时可见。"
+ "description": "用户标识符,在应用内唯一。此标识符限定数据访问范围 — 对话、消息和文件仅在使用相同 `user` 值查询时可见。"
},
"conversation_id": {
"type": "string",
- "description": "用于继续会话的会话 ID。传入上一条消息的 `conversation_id`。要开始新会话,请省略此字段或传入空字符串。响应会返回一个 `conversation_id`——在后续消息中传入该值即可继续该会话。"
+ "description": "用于继续对话的对话 ID。传递上一条消息的 `conversation_id`。要开始新对话,请省略此字段或传递空字符串。响应将返回 `conversation_id` — 在后续消息中传递它以继续该对话。"
},
"files": {
"type": "array",
- "description": "用于多模态理解的文件列表,包括图片、文档、音频和视频。要附加本地文件,请先通过 [上传文件](/api-reference/文件操作/上传文件) 上传,然后将返回的 `id` 作为 `upload_file_id`,并设置 `transfer_method: local_file`。",
+ "description": "用于多模态理解的文件列表,包括图像、文档、音频和视频。要附加本地文件,首先通过[上传文件](/zh/api-reference/files/upload-file)上传并使用返回的 `id` 作为 `upload_file_id`,配合 `transfer_method: local_file`。",
"items": {
"type": "object",
"required": [
@@ -2865,23 +2865,23 @@
"remote_url",
"local_file"
],
- "description": "传输方式:文件 URL 使用 `remote_url`,上传文件使用 `local_file`。"
+ "description": "传输方式:`remote_url` 用于文件 URL,`local_file` 用于已上传的文件。"
},
"url": {
"type": "string",
"format": "url",
- "description": "文件 URL(当 `transfer_method` 为 `remote_url` 时必填)。"
+ "description": "文件 URL(当 `transfer_method` 为 `remote_url` 时必需)。"
},
"upload_file_id": {
"type": "string",
- "description": "通过 [上传文件](/api-reference/文件操作/上传文件) API 获取的已上传文件 ID(当 `transfer_method` 为 `local_file` 时必填)。"
+ "description": "从[上传文件](/zh/api-reference/files/upload-file) API 获取的已上传文件 ID(当 `transfer_method` 为 `local_file` 时必需)。"
}
}
}
},
"auto_generate_name": {
"type": "boolean",
- "description": "自动生成会话标题。如果为 `false`,请使用 [重命名会话](/api-reference/会话管理/重命名会话) API 并设置 `auto_generate: true` 来异步生成标题。",
+ "description": "自动生成对话标题。如果为 `false`,使用[重命名对话](/zh/api-reference/conversations/rename-conversation) API 并设置 `auto_generate: true` 进行异步标题生成。",
"default": true
},
"workflow_id": {
@@ -2900,22 +2900,22 @@
"task_id": {
"type": "string",
"format": "uuid",
- "description": "用于请求追踪和停止响应 API 的任务 ID。"
+ "description": "用于请求跟踪和停止响应 API 的任务 ID。"
},
"id": {
"type": "string",
"format": "uuid",
- "description": "该响应事件的唯一 ID。"
+ "description": "此响应事件的唯一 ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "唯一的消息 ID。调用反馈或推荐问题接口时,将此值作为 `message_id` 参数使用。"
+ "description": "唯一消息 ID。在调用反馈或建议问题端点时将此作为 `message_id` 参数使用。"
},
"conversation_id": {
"type": "string",
"format": "uuid",
- "description": "会话 ID。"
+ "description": "对话 ID。"
},
"mode": {
"type": "string",
@@ -2927,7 +2927,7 @@
},
"metadata": {
"type": "object",
- "description": "包含用量和检索资源的元数据。",
+ "description": "包含使用情况和检索资源的元数据。",
"properties": {
"usage": {
"$ref": "#/components/schemas/Usage"
@@ -2950,7 +2950,7 @@
},
"ChunkChatEvent": {
"type": "object",
- "description": "流式模式下 Server-Sent Event 块的基础 schema。",
+ "description": "流式模式下服务器发送事件块的基本模式。",
"properties": {
"event": {
"type": "string",
@@ -3019,7 +3019,7 @@
},
"StreamEventBase": {
"type": "object",
- "description": "流式事件的基础属性。",
+ "description": "流事件的基本属性。",
"properties": {
"task_id": {
"type": "string",
@@ -3034,7 +3034,7 @@
"conversation_id": {
"type": "string",
"format": "uuid",
- "description": "会话 ID。"
+ "description": "对话 ID。"
},
"created_at": {
"type": "integer",
@@ -3072,12 +3072,12 @@
},
{
"type": "object",
- "description": "TTS 音频流事件(base64 编码的 Mp3)。自动播放启用时可用。",
+ "description": "TTS 音频流事件(base64 编码的 Mp3)。如果启用了自动播放则可用。",
"properties": {
"audio": {
"type": "string",
"format": "byte",
- "description": "Base64 编码的 MP3 音频块。按顺序解码并拼接所有块即可生成完整的音频文件。"
+ "description": "Base64 编码的 MP3 音频块。按顺序解码并连接所有块以生成完整的音频文件。"
}
}
}
@@ -3097,7 +3097,7 @@
"properties": {
"audio": {
"type": "string",
- "description": "空字符串。标识音频流结束。"
+ "description": "空字符串。表示音频流结束。"
}
}
}
@@ -3126,7 +3126,7 @@
"enum": [
"assistant"
],
- "description": "该文件的归属方,此处始终为 `assistant`。"
+ "description": "此文件归属于谁,此处始终为 `assistant`。"
},
"url": {
"type": "string",
@@ -3136,7 +3136,7 @@
"conversation_id": {
"type": "string",
"format": "uuid",
- "description": "会话 ID。"
+ "description": "对话 ID。"
}
}
}
@@ -3157,11 +3157,11 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "消息的唯一 ID。"
+ "description": "唯一消息 ID。"
},
"metadata": {
"type": "object",
- "description": "包含用量和检索资源的元数据。",
+ "description": "包含使用情况和检索资源的元数据。",
"properties": {
"usage": {
"$ref": "#/components/schemas/Usage"
@@ -3189,7 +3189,7 @@
},
{
"type": "object",
- "description": "消息内容替换事件(例如由于内容审核)。",
+ "description": "消息内容替换事件(例如,由于内容审核)。",
"properties": {
"answer": {
"type": "string",
@@ -3213,7 +3213,7 @@
},
{
"type": "object",
- "description": "流式输出过程中的错误事件。",
+ "description": "流式传输期间的错误事件。",
"properties": {
"status": {
"type": "integer",
@@ -3221,11 +3221,11 @@
},
"code": {
"type": "string",
- "description": "错误码。"
+ "description": "错误代码。"
},
"message": {
"type": "string",
- "description": "错误信息。"
+ "description": "错误消息。"
}
}
}
@@ -3238,7 +3238,7 @@
},
{
"type": "object",
- "description": "Ping 事件,用于保持连接活跃。"
+ "description": "用于保持连接活跃的 Ping 事件。"
}
]
},
@@ -3248,59 +3248,59 @@
"properties": {
"prompt_tokens": {
"type": "integer",
- "description": "提示词中的令牌数。"
+ "description": "提示词中的 token 数量。"
},
"prompt_unit_price": {
"type": "string",
"format": "decimal",
- "description": "每个提示词令牌的单价。"
+ "description": "每个提示词 token 的单价。"
},
"prompt_price_unit": {
"type": "string",
"format": "decimal",
- "description": "提示词令牌的价格单位。"
+ "description": "提示词 token 的价格单位。"
},
"prompt_price": {
"type": "string",
"format": "decimal",
- "description": "提示词令牌的总价。"
+ "description": "提示词 token 的总价格。"
},
"completion_tokens": {
"type": "integer",
- "description": "补全内容中的令牌数。"
+ "description": "补全中的 token 数量。"
},
"completion_unit_price": {
"type": "string",
"format": "decimal",
- "description": "每个补全令牌的单价。"
+ "description": "每个补全 token 的单价。"
},
"completion_price_unit": {
"type": "string",
"format": "decimal",
- "description": "补全令牌的价格单位。"
+ "description": "补全 token 的价格单位。"
},
"completion_price": {
"type": "string",
"format": "decimal",
- "description": "补全令牌的总价。"
+ "description": "补全 token 的总价格。"
},
"total_tokens": {
"type": "integer",
- "description": "使用的令牌总数。"
+ "description": "使用的 token 总数。"
},
"total_price": {
"type": "string",
"format": "decimal",
- "description": "所有令牌的总价。"
+ "description": "所有 token 的总价格。"
},
"currency": {
"type": "string",
- "description": "计价货币。"
+ "description": "定价货币。"
},
"latency": {
"type": "number",
"format": "double",
- "description": "延迟时间(秒)。"
+ "description": "延迟(秒)。"
}
}
},
@@ -3316,7 +3316,7 @@
"message_id": {
"type": "string",
"format": "uuid",
- "description": "该资源所属消息的 ID。"
+ "description": "此资源所属的消息 ID。"
},
"position": {
"type": "integer",
@@ -3325,46 +3325,46 @@
"dataset_id": {
"type": "string",
"format": "uuid",
- "description": "知识库 ID。"
+ "description": "知识库的 ID。"
},
"dataset_name": {
"type": "string",
- "description": "知识库名称。"
+ "description": "知识库的名称。"
},
"document_id": {
"type": "string",
"format": "uuid",
- "description": "文档 ID。"
+ "description": "文档的 ID。"
},
"document_name": {
"type": "string",
- "description": "文档名称。"
+ "description": "文档的名称。"
},
"data_source_type": {
"type": "string",
- "description": "数据源类型。"
+ "description": "数据源的类型。"
},
"segment_id": {
"type": "string",
"format": "uuid",
- "description": "文档中特定块的 ID。"
+ "description": "文档中特定分段的 ID。"
},
"score": {
"type": "number",
"format": "float",
- "description": "资源的相关性评分。"
+ "description": "资源的相关性分数。"
},
"hit_count": {
"type": "integer",
- "description": "该块被命中的次数。"
+ "description": "此分段被命中的次数。"
},
"word_count": {
"type": "integer",
- "description": "块的字数。"
+ "description": "分段的字数。"
},
"segment_position": {
"type": "integer",
- "description": "块在文档中的位置。"
+ "description": "分段在文档中的位置。"
},
"index_node_hash": {
"type": "string",
@@ -3372,12 +3372,12 @@
},
"content": {
"type": "string",
- "description": "资源的内容片段。"
+ "description": "来自资源的内容片段。"
},
"summary": {
"type": "string",
"nullable": true,
- "description": "块内容的摘要。"
+ "description": "分段内容的摘要。"
},
"created_at": {
"type": "integer",
@@ -3442,19 +3442,19 @@
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的用户 ID。"
+ "description": "关联用户的 ID。"
},
"tenant_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的租户 ID。"
+ "description": "关联租户的 ID。"
},
"conversation_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的会话 ID。"
+ "description": "关联对话的 ID。"
},
"file_key": {
"type": "string",
@@ -3484,12 +3484,12 @@
},
"type": {
"type": "string",
- "description": "终端用户类型。Service API 用户固定为 `service_api`。"
+ "description": "终端用户类型。对于服务 API 用户始终为 `service_api`。"
},
"external_user_id": {
"type": "string",
"nullable": true,
- "description": "API 请求中提供的 `user` 标识符(例如 [发送对话消息](/api-reference/对话消息/发送对话消息) 中的 `user` 字段)。"
+ "description": "API 请求中提供的 `user` 标识符(例如[发送对话消息](/zh/api-reference/chats/send-chat-message)中的 `user` 字段)。"
},
"name": {
"type": "string",
@@ -3498,11 +3498,11 @@
},
"is_anonymous": {
"type": "boolean",
- "description": "用户是否为匿名用户。当原始 API 请求中未提供 `user` 标识符时,值为 `true`。"
+ "description": "用户是否为匿名用户。当原始 API 请求中未提供 `user` 标识符时为 `true`。"
},
"session_id": {
"type": "string",
- "description": "会话标识符。默认为 `external_user_id` 的值。"
+ "description": "会话标识符。默认为 `external_user_id` 值。"
},
"created_at": {
"type": "string",
@@ -3531,7 +3531,7 @@
null
],
"nullable": true,
- "description": "反馈评分。设为 `null` 可撤销之前提交的反馈。"
+ "description": "反馈评分。设置为 `null` 以撤销之前提交的反馈。"
},
"user": {
"type": "string",
@@ -3539,7 +3539,7 @@
},
"content": {
"type": "string",
- "description": "提供额外详情的可选文字反馈。"
+ "description": "可选的文本反馈,提供额外详情。"
}
}
},
@@ -3557,7 +3557,7 @@
},
"FeedbackItem": {
"type": "object",
- "description": "单条反馈项。",
+ "description": "单个反馈项。",
"properties": {
"id": {
"type": "string",
@@ -3572,7 +3572,7 @@
"conversation_id": {
"type": "string",
"format": "uuid",
- "description": "会话 ID。"
+ "description": "对话 ID。"
},
"message_id": {
"type": "string",
@@ -3581,16 +3581,16 @@
},
"rating": {
"type": "string",
- "description": "反馈评分。`like` 为正面,`dislike` 为负面。"
+ "description": "反馈评分。`like` 表示正面,`dislike` 表示负面。"
},
"content": {
"type": "string",
"nullable": true,
- "description": "可选的文字反馈。"
+ "description": "可选的文本反馈。"
},
"from_source": {
"type": "string",
- "description": "反馈来源。`user` 为终端用户通过 API 提交的反馈,`admin` 为从控制台提交的反馈。"
+ "description": "反馈来源。`user` 表示通过 API 提交的终端用户反馈,`admin` 表示从控制台提交的反馈。"
},
"from_end_user_id": {
"type": "string",
@@ -3637,7 +3637,7 @@
"properties": {
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数。"
},
"has_more": {
"type": "boolean",
@@ -3654,7 +3654,7 @@
},
"ConversationMessageItem": {
"type": "object",
- "description": "会话中的单条消息。",
+ "description": "对话中的单条消息。",
"properties": {
"id": {
"type": "string",
@@ -3664,18 +3664,18 @@
"conversation_id": {
"type": "string",
"format": "uuid",
- "description": "会话 ID。"
+ "description": "对话 ID。"
},
"parent_message_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "线程会话的父消息 ID。"
+ "description": "线程对话的父消息 ID。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "该消息的输入变量。"
+ "description": "此消息的输入变量。"
},
"query": {
"type": "string",
@@ -3687,16 +3687,16 @@
},
"status": {
"type": "string",
- "description": "消息状态。成功消息为 `normal`,生成失败时为 `error`。"
+ "description": "消息状态。`normal` 表示成功的消息,`error` 表示生成失败。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "当 `status` 为 `error` 时的错误消息。"
+ "description": "如果 `status` 为 `error` 时的错误消息。"
},
"message_files": {
"type": "array",
- "description": "附加到该消息的文件。",
+ "description": "附加到此消息的文件。",
"items": {
"$ref": "#/components/schemas/MessageFileItem"
}
@@ -3704,24 +3704,24 @@
"feedback": {
"type": "object",
"nullable": true,
- "description": "该消息的用户反馈。",
+ "description": "此消息的用户反馈。",
"properties": {
"rating": {
"type": "string",
- "description": "反馈评分。`like` 为正面,`dislike` 为负面。"
+ "description": "反馈评分。`like` 表示正面,`dislike` 表示负面。"
}
}
},
"retriever_resources": {
"type": "array",
- "description": "该消息使用的检索资源。",
+ "description": "此消息使用的检索资源。",
"items": {
"$ref": "#/components/schemas/RetrieverResource"
}
},
"agent_thoughts": {
"type": "array",
- "description": "该消息的 Agent 思考。",
+ "description": "此消息的 Agent 思考过程。",
"items": {
"$ref": "#/components/schemas/AgentThoughtItem"
}
@@ -3733,7 +3733,7 @@
},
"extra_contents": {
"type": "array",
- "description": "与此消息关联的附加执行内容,例如对话流工作流中人工介入节点的表单数据。",
+ "description": "与此消息关联的额外执行内容,例如 Chatflow 工作流中人工介入节点的人工输入表单数据。",
"items": {
"$ref": "#/components/schemas/HumanInputContent"
}
@@ -3747,7 +3747,7 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "File ID."
+ "description": "文件 ID。"
},
"filename": {
"type": "string",
@@ -3775,24 +3775,24 @@
},
"transfer_method": {
"type": "string",
- "description": "使用的传输方式。`remote_url` 表示基于 URL 的文件,`local_file` 表示已上传的文件,`tool_file` 表示工具生成的文件。"
+ "description": "使用的传输方式。`remote_url` 用于基于 URL 的文件,`local_file` 用于上传的文件,`tool_file` 用于工具生成的文件。"
},
"belongs_to": {
"type": "string",
"nullable": true,
- "description": "该文件的所属者。用户上传的文件为 `user`,助手生成的文件为 `assistant`。"
+ "description": "此文件归属于谁。`user` 表示用户上传的文件,`assistant` 表示助手生成的文件。"
},
"upload_file_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "通过 `local_file` 传输时的上传文件 ID。"
+ "description": "如果通过 `local_file` 传输,则为上传文件 ID。"
}
}
},
"AgentThoughtItem": {
"type": "object",
- "description": "消息中的 Agent 思考步骤。",
+ "description": "消息中的一个 Agent 思考步骤。",
"properties": {
"id": {
"type": "string",
@@ -3802,16 +3802,16 @@
"chain_id": {
"type": "string",
"nullable": true,
- "description": "该思考的链 ID。"
+ "description": "此思考的链 ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "该思考所属的唯一消息 ID。"
+ "description": "此思考所属的唯一消息 ID。"
},
"position": {
"type": "integer",
- "description": "该思考的位置。"
+ "description": "此思考的位置。"
},
"thought": {
"type": "string",
@@ -3825,11 +3825,11 @@
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "已使用工具的标签。"
+ "description": "使用的工具的标签。"
},
"tool_input": {
"type": "string",
- "description": "工具输入(JSON 格式)。"
+ "description": "JSON 格式的工具输入。"
},
"observation": {
"type": "string",
@@ -3840,7 +3840,7 @@
"items": {
"type": "string"
},
- "description": "与该思考相关的文件 ID。"
+ "description": "与此思考相关的文件 ID。"
},
"created_at": {
"type": "integer",
@@ -3854,15 +3854,15 @@
"properties": {
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数。"
},
"has_more": {
"type": "boolean",
- "description": "是否有更多会话。"
+ "description": "是否有更多对话。"
},
"data": {
"type": "array",
- "description": "会话列表。",
+ "description": "对话列表。",
"items": {
"$ref": "#/components/schemas/ConversationListItem"
}
@@ -3875,24 +3875,24 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "会话 ID。"
+ "description": "对话 ID。"
},
"name": {
"type": "string",
- "description": "会话名称。"
+ "description": "对话名称。"
},
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "会话的输入变量。"
+ "description": "对话的输入变量。"
},
"status": {
"type": "string",
- "description": "会话状态。活跃会话为 `normal`。"
+ "description": "对话状态。`normal` 表示活跃的对话。"
},
"introduction": {
"type": "string",
- "description": "会话介绍。"
+ "description": "对话介绍。"
},
"created_at": {
"type": "integer",
@@ -3908,19 +3908,19 @@
},
"ConversationRenameRequest": {
"type": "object",
- "description": "重命名会话的请求体。",
+ "description": "重命名对话的请求体。",
"required": [
"user"
],
"properties": {
"name": {
"type": "string",
- "description": "会话名称。当 `auto_generate` 为 `false` 时必填。"
+ "description": "对话名称。当 `auto_generate` 为 `false` 时必需。"
},
"auto_generate": {
"type": "boolean",
"default": false,
- "description": "自动生成会话名称。当为 `true` 时,`name` 字段将被忽略。"
+ "description": "自动生成对话名称。当为 `true` 时,`name` 字段将被忽略。"
},
"user": {
"type": "string",
@@ -3933,7 +3933,7 @@
"properties": {
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数。"
},
"has_more": {
"type": "boolean",
@@ -3954,7 +3954,7 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "Variable ID."
+ "description": "变量 ID。"
},
"name": {
"type": "string",
@@ -3962,11 +3962,11 @@
},
"value_type": {
"type": "string",
- "description": "变量值类型。可选值:`string`、`number`、`object`、`secret`、`file`、`boolean`、`array[any]`、`array[string]`、`array[number]`、`array[object]`、`array[file]`、`array[boolean]`。"
+ "description": "变量值类型。可能的值:`string`、`number`、`object`、`secret`、`file`、`boolean`、`array[any]`、`array[string]`、`array[number]`、`array[object]`、`array[file]`、`array[boolean]`。"
},
"value": {
"type": "string",
- "description": "变量值(复杂类型可以是 JSON 字符串)。"
+ "description": "变量值(对于复杂类型可以是 JSON 字符串)。"
},
"description": {
"type": "string",
@@ -3992,7 +3992,7 @@
],
"properties": {
"value": {
- "description": "变量的新值。必须与变量的预期类型匹配。"
+ "description": "变量的新值。必须匹配变量的预期类型。"
},
"user": {
"type": "string",
@@ -4002,7 +4002,7 @@
},
"AudioToTextRequest": {
"type": "object",
- "description": "语音转文字的请求体。",
+ "description": "语音转文字转换的请求体。",
"required": [
"file"
],
@@ -4010,7 +4010,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "音频文件。支持格式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。大小限制:`30 MB`。"
+ "description": "音频文件。支持:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。限制:`30 MB`。"
},
"user": {
"type": "string",
@@ -4023,18 +4023,18 @@
"properties": {
"text": {
"type": "string",
- "description": "语音识别输出的文字。"
+ "description": "语音识别输出的文本。"
}
}
},
"TextToAudioRequest": {
"type": "object",
- "description": "文字转语音的请求体。提供 `message_id` 或 `text` 其中之一。",
+ "description": "文字转语音转换的请求体。提供 `message_id` 或 `text` 之一。",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
- "description": "消息 ID。当同时提供 `text` 时,优先使用消息 ID。"
+ "description": "消息 ID。当两者都提供时优先于 `text`。"
},
"text": {
"type": "string",
@@ -4046,7 +4046,7 @@
},
"voice": {
"type": "string",
- "description": "文字转语音使用的声音。可用声音取决于为此应用配置的 TTS 提供商。使用[获取应用参数](/api-reference/应用配置/获取应用参数) → `text_to_speech.voice` 中的 `voice` 值作为默认值。"
+ "description": "用于文字转语音的声音。可用的声音取决于为此应用配置的 TTS 供应商。使用[获取应用参数](/zh/api-reference/applications/get-app-parameters) → `text_to_speech.voice` 中的 `voice` 值作为默认值。"
},
"streaming": {
"type": "boolean",
@@ -4074,11 +4074,11 @@
},
"mode": {
"type": "string",
- "description": "应用模式。`completion` 为文本生成应用,`chat` 为基础对话应用,`agent-chat` 为 Agent 应用,`advanced-chat` 为对话流应用,`workflow` 为工作流应用。"
+ "description": "应用模式。`completion` 用于文本生成应用,`chat` 用于基础聊天应用,`agent-chat` 用于基于 Agent 的应用,`advanced-chat` 用于 Chatflow 应用,`workflow` 用于工作流应用。"
},
"author_name": {
"type": "string",
- "description": "应用作者名称。"
+ "description": "应用作者的名称。"
}
}
},
@@ -4087,14 +4087,14 @@
"properties": {
"opening_statement": {
"type": "string",
- "description": "会话开始时显示的开场白。"
+ "description": "对话开始时显示的开场白。"
},
"suggested_questions": {
"type": "array",
"items": {
"type": "string"
},
- "description": "建议的初始问题列表。"
+ "description": "建议的起始问题列表。"
},
"suggested_questions_after_answer": {
"type": "object",
@@ -4102,7 +4102,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否已启用。"
}
}
},
@@ -4112,7 +4112,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否已启用。"
}
}
},
@@ -4122,7 +4122,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否已启用。"
},
"voice": {
"type": "string",
@@ -4134,7 +4134,7 @@
},
"autoPlay": {
"type": "string",
- "description": "自动播放设置。`enabled` 为自动播放音频,`disabled` 为需要手动播放。"
+ "description": "自动播放设置。`enabled` 表示自动播放音频,`disabled` 表示需要手动播放。"
}
}
},
@@ -4144,7 +4144,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否已启用。"
}
}
},
@@ -4154,27 +4154,27 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否已启用。"
}
}
},
"more_like_this": {
"type": "object",
- "description": "更多类似内容配置。",
+ "description": "类似内容配置。",
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否已启用。"
}
}
},
"sensitive_word_avoidance": {
"type": "object",
- "description": "敏感词过滤配置。",
+ "description": "敏感词规避配置。",
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否已启用。"
}
}
},
@@ -4191,19 +4191,19 @@
"properties": {
"image": {
"type": "object",
- "description": "图片上传设置。",
+ "description": "图像上传设置。",
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用图片上传。"
+ "description": "是否启用图像上传。"
},
"number_limits": {
"type": "integer",
- "description": "最大图片数量。"
+ "description": "最大图像数量。"
},
"detail": {
"type": "string",
- "description": "图片精细程度。"
+ "description": "图像详细程度。"
},
"transfer_methods": {
"type": "array",
@@ -4226,7 +4226,7 @@
},
"image_file_size_limit": {
"type": "integer",
- "description": "最大图片文件大小(MB)。"
+ "description": "最大图像文件大小(MB)。"
},
"audio_file_size_limit": {
"type": "integer",
@@ -4259,7 +4259,7 @@
]
},
"TextInputControlWrapper": {
- "title": "Text Input",
+ "title": "文本输入",
"type": "object",
"properties": {
"text-input": {
@@ -4268,7 +4268,7 @@
}
},
"ParagraphControlWrapper": {
- "title": "Paragraph",
+ "title": "段落",
"type": "object",
"properties": {
"paragraph": {
@@ -4277,7 +4277,7 @@
}
},
"SelectControlWrapper": {
- "title": "Select",
+ "title": "选择",
"type": "object",
"properties": {
"select": {
@@ -4299,7 +4299,7 @@
},
"required": {
"type": "boolean",
- "description": "输入是否必填。"
+ "description": "是否必填。"
},
"default": {
"type": "string",
@@ -4321,7 +4321,7 @@
},
"required": {
"type": "boolean",
- "description": "输入是否必填。"
+ "description": "是否必填。"
},
"default": {
"type": "string",
@@ -4331,7 +4331,7 @@
},
"SelectControl": {
"type": "object",
- "description": "下拉选择表单控件。",
+ "description": "选择(下拉)表单控件。",
"properties": {
"label": {
"type": "string",
@@ -4347,7 +4347,7 @@
},
"default": {
"type": "string",
- "description": "默认选中的值。"
+ "description": "默认选中值。"
},
"options": {
"type": "array",
@@ -4366,7 +4366,7 @@
"additionalProperties": {
"oneOf": [
{
- "title": "Icon URL",
+ "title": "图标 URL",
"type": "string",
"format": "url",
"description": "图标的 URL。"
@@ -4381,7 +4381,7 @@
}
},
"ToolIconDetail": {
- "title": "Emoji Icon",
+ "title": "Emoji 图标",
"type": "object",
"description": "使用 emoji 的工具图标详情。",
"properties": {
@@ -4404,19 +4404,19 @@
},
"chat_color_theme": {
"type": "string",
- "description": "聊天主题颜色。"
+ "description": "聊天颜色主题。"
},
"chat_color_theme_inverted": {
"type": "boolean",
- "description": "聊天主题颜色是否反转。"
+ "description": "聊天颜色主题是否反转。"
},
"icon_type": {
"type": "string",
- "description": "使用的图标类型。`emoji` 为表情图标,`image` 为上传的图片图标。"
+ "description": "使用的图标类型。`emoji` 表示 emoji 图标,`image` 表示上传的图像图标。"
},
"icon": {
"type": "string",
- "description": "图标内容(表情或图片 ID)。"
+ "description": "图标内容(emoji 或图像 ID)。"
},
"icon_background": {
"type": "string",
@@ -4426,7 +4426,7 @@
"type": "string",
"format": "url",
"nullable": true,
- "description": "图标图片的 URL。"
+ "description": "图标图像的 URL。"
},
"description": {
"type": "string",
@@ -4454,7 +4454,7 @@
},
"use_icon_as_answer_icon": {
"type": "boolean",
- "description": "是否使用应用图标作为回答图标。"
+ "description": "是否将应用图标用作回答图标。"
}
}
},
@@ -4466,19 +4466,19 @@
"items": {
"$ref": "#/components/schemas/AnnotationItem"
},
- "description": "当前页面的标注项列表。"
+ "description": "当前页的标注项列表。"
},
"has_more": {
"type": "boolean",
- "description": "如果当前结果集之后还有更多页面,则为 `true`。"
+ "description": "如果当前结果集之外还有更多页面,则为 `true`。"
},
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数。"
},
"total": {
"type": "integer",
- "description": "匹配查询条件的标注总数。"
+ "description": "匹配查询的标注总数。"
},
"page": {
"type": "integer",
@@ -4492,22 +4492,22 @@
"id": {
"type": "string",
"format": "uuid",
- "description": "标注唯一标识符。"
+ "description": "唯一标注标识符。"
},
"question": {
"type": "string",
"nullable": true,
- "description": "触发该标注的问题文本。"
+ "description": "触发此标注的问题文本。"
},
"answer": {
"type": "string",
"nullable": true,
- "description": "标注被匹配时返回的预定义回答。"
+ "description": "匹配标注时返回的预定义答案。"
},
"hit_count": {
"type": "integer",
"nullable": true,
- "description": "该标注被匹配并作为回复返回的次数。"
+ "description": "此标注被匹配并作为回复返回的次数。"
},
"created_at": {
"type": "integer",
@@ -4564,7 +4564,7 @@
"properties": {
"embedding_provider_name": {
"type": "string",
- "description": "嵌入模型提供商名称(例如 `openai`、`cohere`)。"
+ "description": "嵌入模型供应商的名称(例如 `openai`、`cohere`)。"
},
"embedding_model_name": {
"type": "string",
@@ -4573,7 +4573,7 @@
"score_threshold": {
"type": "number",
"format": "float",
- "description": "标注被视为匹配的最低相似度分数。值越高,要求匹配越精确。",
+ "description": "标注被视为匹配的最小相似度分数。较高的值要求更接近的匹配。",
"minimum": 0,
"maximum": 1
}
@@ -4585,11 +4585,11 @@
"job_id": {
"type": "string",
"format": "uuid",
- "description": "异步任务 ID。配合 [查询标注回复配置任务状态](/api-reference/标注管理/查询标注回复配置任务状态) 使用以跟踪进度。"
+ "description": "异步任务 ID。与[获取标注回复任务状态](/zh/api-reference/annotations/get-annotation-reply-job-status)一起使用以跟踪进度。"
},
"job_status": {
"type": "string",
- "description": "当前任务状态。`waiting` 表示排队中,`processing` 表示处理中,`completed` 表示已完成,`error` 表示失败。"
+ "description": "当前任务状态。`waiting` 表示排队中,`processing` 表示进行中,`completed` 表示已完成,`error` 表示失败。"
}
}
},
@@ -4599,11 +4599,11 @@
"job_id": {
"type": "string",
"format": "uuid",
- "description": "来自 [配置标注回复](/api-reference/标注管理/配置标注回复) 调用的任务 ID。"
+ "description": "来自[配置标注回复](/zh/api-reference/annotations/configure-annotation-reply)调用的任务 ID。"
},
"job_status": {
"type": "string",
- "description": "当前任务状态。`waiting` 表示排队中,`processing` 表示处理中,`completed` 表示已完成,`error` 表示失败。"
+ "description": "当前任务状态。`waiting` 表示排队中,`processing` 表示进行中,`completed` 表示已完成,`error` 表示失败。"
},
"error_msg": {
"type": "string",
@@ -4641,7 +4641,7 @@
"inputs": {
"type": "object",
"additionalProperties": true,
- "description": "本次工作流执行的输入变量。"
+ "description": "此工作流执行的输入变量。"
},
"created_at": {
"type": "integer",
@@ -4650,7 +4650,7 @@
},
"reason": {
"type": "string",
- "description": "工作流启动原因。`initial` 表示首次启动,`resumption` 表示暂停后恢复(例如人工介入后)。"
+ "description": "工作流开始的原因。`initial` 表示首次开始,`resumption` 表示在暂停后恢复(例如人工输入后)。"
}
}
}
@@ -4687,7 +4687,7 @@
},
"status": {
"type": "string",
- "description": "执行状态。`running` 表示进行中,`succeeded` 表示成功,`failed` 表示失败,`stopped` 表示手动停止,`partial-succeeded` 表示部分完成,`paused` 表示等待人工介入。"
+ "description": "执行状态。`running` 表示进行中,`succeeded` 表示成功,`failed` 表示失败,`stopped` 表示手动停止,`partial-succeeded` 表示部分完成,`paused` 表示等待人工输入。"
},
"outputs": {
"type": "object",
@@ -4702,15 +4702,15 @@
},
"elapsed_time": {
"type": "number",
- "description": "总执行耗时(秒)。"
+ "description": "总执行时间(秒)。"
},
"total_tokens": {
"type": "integer",
- "description": "消耗的总令牌数。"
+ "description": "消耗的总 token 数。"
},
"total_steps": {
"type": "integer",
- "description": "已执行的总步数。"
+ "description": "执行的总步骤数。"
},
"created_at": {
"type": "integer",
@@ -4721,7 +4721,7 @@
"type": "integer",
"format": "int64",
"nullable": true,
- "description": "结束时间戳(Unix 纪元秒)。"
+ "description": "完成时间戳(Unix 纪元秒)。"
},
"exceptions_count": {
"type": "integer",
@@ -4776,7 +4776,7 @@
},
"title": {
"type": "string",
- "description": "Node title."
+ "description": "节点标题。"
},
"index": {
"type": "integer",
@@ -4785,13 +4785,13 @@
"predecessor_node_id": {
"type": "string",
"nullable": true,
- "description": "前驱节点的 ID。"
+ "description": "前置节点的 ID。"
},
"inputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "节点输入数据。在简化 API 响应中可能为 `null`。"
+ "description": "节点输入数据。在简化的 API 响应中可能为 `null`。"
},
"created_at": {
"type": "integer",
@@ -4801,17 +4801,17 @@
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "附加元数据。"
+ "description": "额外的元数据。"
},
"iteration_id": {
"type": "string",
"nullable": true,
- "description": "如果该节点在迭代内运行,则为迭代 ID。"
+ "description": "如果此节点在迭代内运行,则为迭代 ID。"
},
"loop_id": {
"type": "string",
"nullable": true,
- "description": "当该节点在循环内运行时的循环 ID。"
+ "description": "如果此节点在循环内运行,则为循环 ID。"
}
}
}
@@ -4848,11 +4848,11 @@
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "节点类型。"
},
"title": {
"type": "string",
- "description": "Node title."
+ "description": "节点标题。"
},
"index": {
"type": "integer",
@@ -4861,25 +4861,25 @@
"predecessor_node_id": {
"type": "string",
"nullable": true,
- "description": "前驱节点的 ID。"
+ "description": "前置节点的 ID。"
},
"inputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "节点输入数据。在简化 API 响应中可能为 `null`。"
+ "description": "节点输入数据。在简化的 API 响应中可能为 `null`。"
},
"process_data": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "节点处理数据。在简化 API 响应中可能为 `null`。"
+ "description": "节点处理数据。在简化的 API 响应中可能为 `null`。"
},
"outputs": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "节点输出数据。在简化 API 响应中可能为 `null`。"
+ "description": "节点输出数据。在简化的 API 响应中可能为 `null`。"
},
"status": {
"type": "string",
@@ -4892,13 +4892,13 @@
},
"elapsed_time": {
"type": "number",
- "description": "节点执行耗时(秒)。"
+ "description": "节点执行时间(秒)。"
},
"execution_metadata": {
"type": "object",
"nullable": true,
"additionalProperties": true,
- "description": "执行元数据(例如令牌用量、模型信息)。在简化 API 响应中可能为 `null`。"
+ "description": "执行元数据(例如 token 使用情况、模型信息)。在简化的 API 响应中可能为 `null`。"
},
"created_at": {
"type": "integer",
@@ -4908,7 +4908,7 @@
"finished_at": {
"type": "integer",
"format": "int64",
- "description": "结束时间戳(Unix 纪元秒)。"
+ "description": "完成时间戳(Unix 纪元秒)。"
},
"files": {
"type": "array",
@@ -4917,17 +4917,17 @@
"type": "object",
"additionalProperties": true
},
- "description": "该节点生成的文件。"
+ "description": "此节点生成的文件。"
},
"iteration_id": {
"type": "string",
"nullable": true,
- "description": "如果该节点在迭代内运行,则为迭代 ID。"
+ "description": "如果此节点在迭代内运行,则为迭代 ID。"
},
"loop_id": {
"type": "string",
"nullable": true,
- "description": "当该节点在循环内运行时的循环 ID。"
+ "description": "如果此节点在循环内运行,则为循环 ID。"
}
}
}
@@ -4945,7 +4945,7 @@
},
{
"type": "object",
- "description": "节点重试次数。",
+ "description": "节点重试尝试。",
"properties": {
"workflow_run_id": {
"type": "string",
@@ -4964,11 +4964,11 @@
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "节点类型。"
},
"title": {
"type": "string",
- "description": "Node title."
+ "description": "节点标题。"
},
"index": {
"type": "integer",
@@ -4977,7 +4977,7 @@
"predecessor_node_id": {
"type": "string",
"nullable": true,
- "description": "前驱节点的 ID。"
+ "description": "前置节点的 ID。"
},
"inputs": {
"type": "object",
@@ -5004,11 +5004,11 @@
"error": {
"type": "string",
"nullable": true,
- "description": "本次重试的错误消息。"
+ "description": "此重试尝试的错误消息。"
},
"elapsed_time": {
"type": "number",
- "description": "本次尝试的执行时间(秒)。"
+ "description": "此尝试的执行时间(秒)。"
},
"execution_metadata": {
"type": "object",
@@ -5024,7 +5024,7 @@
"finished_at": {
"type": "integer",
"format": "int64",
- "description": "结束时间戳(Unix 纪元秒)。"
+ "description": "完成时间戳(Unix 纪元秒)。"
},
"files": {
"type": "array",
@@ -5033,21 +5033,21 @@
"type": "object",
"additionalProperties": true
},
- "description": "本次重试期间生成的文件。"
+ "description": "此重试期间生成的文件。"
},
"iteration_id": {
"type": "string",
"nullable": true,
- "description": "迭代 ID(如适用)。"
+ "description": "如果适用,则为迭代 ID。"
},
"loop_id": {
"type": "string",
"nullable": true,
- "description": "循环 ID(如适用)。"
+ "description": "如果适用,则为循环 ID。"
},
"retry_index": {
"type": "integer",
- "description": "重试次数索引,从 `0` 开始。"
+ "description": "重试尝试索引,从 `0` 开始。"
}
}
}
@@ -5084,7 +5084,7 @@
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "节点类型。"
},
"title": {
"type": "string",
@@ -5098,7 +5098,7 @@
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "附加元数据。"
+ "description": "额外的元数据。"
},
"metadata": {
"type": "object",
@@ -5126,7 +5126,7 @@
},
{
"type": "object",
- "description": "迭代已进入下一项。",
+ "description": "迭代进入下一项。",
"properties": {
"workflow_run_id": {
"type": "string",
@@ -5145,7 +5145,7 @@
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "节点类型。"
},
"title": {
"type": "string",
@@ -5163,7 +5163,7 @@
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "附加元数据。"
+ "description": "额外的元数据。"
}
}
}
@@ -5200,7 +5200,7 @@
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "节点类型。"
},
"title": {
"type": "string",
@@ -5223,11 +5223,11 @@
},
"elapsed_time": {
"type": "number",
- "description": "迭代总耗时(秒)。"
+ "description": "总迭代时间(秒)。"
},
"total_tokens": {
"type": "integer",
- "description": "所有迭代中消耗的令牌总数。"
+ "description": "所有迭代消耗的总 token 数。"
},
"created_at": {
"type": "integer",
@@ -5237,11 +5237,11 @@
"finished_at": {
"type": "integer",
"format": "int64",
- "description": "结束时间戳(Unix 纪元秒)。"
+ "description": "完成时间戳(Unix 纪元秒)。"
},
"steps": {
"type": "integer",
- "description": "已执行的迭代步骤总数。"
+ "description": "执行的迭代步骤总数。"
}
}
}
@@ -5278,7 +5278,7 @@
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "节点类型。"
},
"title": {
"type": "string",
@@ -5292,7 +5292,7 @@
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "附加元数据。"
+ "description": "额外的元数据。"
},
"metadata": {
"type": "object",
@@ -5320,7 +5320,7 @@
},
{
"type": "object",
- "description": "循环已进入下一次迭代。",
+ "description": "循环进入下一次迭代。",
"properties": {
"workflow_run_id": {
"type": "string",
@@ -5339,7 +5339,7 @@
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "节点类型。"
},
"title": {
"type": "string",
@@ -5360,7 +5360,7 @@
"extras": {
"type": "object",
"additionalProperties": true,
- "description": "附加元数据。"
+ "description": "额外的元数据。"
}
}
}
@@ -5397,7 +5397,7 @@
},
"node_type": {
"type": "string",
- "description": "Node type."
+ "description": "节点类型。"
},
"title": {
"type": "string",
@@ -5420,11 +5420,11 @@
},
"elapsed_time": {
"type": "number",
- "description": "循环总执行耗时(秒)。"
+ "description": "总循环执行时间(秒)。"
},
"total_tokens": {
"type": "integer",
- "description": "所有循环迭代中消耗的令牌总数。"
+ "description": "所有循环迭代消耗的总 token 数。"
},
"created_at": {
"type": "integer",
@@ -5434,11 +5434,11 @@
"finished_at": {
"type": "integer",
"format": "int64",
- "description": "结束时间戳(Unix 纪元秒)。"
+ "description": "完成时间戳(Unix 纪元秒)。"
},
"steps": {
"type": "integer",
- "description": "已执行的循环总步数。"
+ "description": "执行的循环步骤总数。"
}
}
}
@@ -5500,7 +5500,7 @@
"form_token": {
"type": "string",
"nullable": true,
- "description": "表单提交认证的令牌。"
+ "description": "用于表单提交认证的令牌。"
},
"expiration_time": {
"type": "integer",
@@ -5530,14 +5530,14 @@
"workflow_run_id": {
"type": "string",
"format": "uuid",
- "description": "此工作流运行记录的持久化标识符。配合 [获取工作流运行详情](/api-reference/工作流/获取-工作流-执行情况) 使用以在执行后获取结果。"
+ "description": "此工作流运行记录的持久标识符。执行后使用此 ID 与[获取工作流运行详情](/zh/api-reference/workflows/get-workflow-run-detail)一起检索结果。"
},
"paused_nodes": {
"type": "array",
"items": {
"type": "string"
},
- "description": "已暂停的节点 ID 列表。"
+ "description": "暂停的节点 ID 列表。"
},
"outputs": {
"type": "object",
@@ -5550,7 +5550,7 @@
"type": "object",
"additionalProperties": true
},
- "description": "暂停原因。"
+ "description": "暂停的原因。"
},
"status": {
"type": "string",
@@ -5568,11 +5568,11 @@
},
"total_tokens": {
"type": "integer",
- "description": "消耗的总令牌数。"
+ "description": "消耗的总 token 数。"
},
"total_steps": {
"type": "integer",
- "description": "已执行的总步数。"
+ "description": "执行的总步骤数。"
}
}
}
@@ -5600,11 +5600,11 @@
"properties": {
"node_id": {
"type": "string",
- "description": "Node ID."
+ "description": "节点 ID。"
},
"node_title": {
"type": "string",
- "description": "Node title."
+ "description": "节点标题。"
},
"rendered_content": {
"type": "string",
@@ -5612,11 +5612,11 @@
},
"action_id": {
"type": "string",
- "description": "已执行操作的 ID。"
+ "description": "采取的操作的 ID。"
},
"action_text": {
"type": "string",
- "description": "已执行操作的文本。"
+ "description": "采取的操作的文本。"
}
}
}
@@ -5644,11 +5644,11 @@
"properties": {
"node_id": {
"type": "string",
- "description": "Node ID."
+ "description": "节点 ID。"
},
"node_title": {
"type": "string",
- "description": "Node title."
+ "description": "节点标题。"
},
"expiration_time": {
"type": "integer",
@@ -5671,7 +5671,7 @@
},
{
"type": "object",
- "description": "工作流中 Agent 节点的 Agent 日志。",
+ "description": "来自工作流内 Agent 节点的 Agent 日志。",
"properties": {
"data": {
"type": "object",
@@ -5696,7 +5696,7 @@
"error": {
"type": "string",
"nullable": true,
- "description": "错误消息(如适用)。"
+ "description": "如果适用的错误消息。"
},
"status": {
"type": "string",
@@ -5710,7 +5710,7 @@
"metadata": {
"type": "object",
"additionalProperties": true,
- "description": "附加元数据。"
+ "description": "额外的元数据。"
},
"node_id": {
"type": "string",
@@ -5789,11 +5789,11 @@
"workflow_id": {
"type": "string",
"format": "uuid",
- "description": "工作流 ID."
+ "description": "工作流 ID。"
},
"status": {
"type": "string",
- "description": "工作流执行状态。`running` 表示执行中,`succeeded` 表示成功完成,`failed` 表示执行出错,`stopped` 表示手动停止,`partial-succeeded` 表示部分节点成功但其他失败,`paused` 表示等待人工介入。"
+ "description": "工作流执行状态。`running` 表示进行中的执行,`succeeded` 表示成功完成,`failed` 表示执行遇到错误,`stopped` 表示手动停止,`partial-succeeded` 表示部分节点成功但其他节点失败,`paused` 表示等待人工输入。"
},
"inputs": {
"type": "object",
@@ -5813,11 +5813,11 @@
},
"total_steps": {
"type": "integer",
- "description": "已执行的工作流总步数。"
+ "description": "执行的工作流步骤总数。"
},
"total_tokens": {
"type": "integer",
- "description": "消耗的总令牌数。"
+ "description": "消耗的总 token 数。"
},
"created_at": {
"type": "integer",
@@ -5828,7 +5828,7 @@
"type": "integer",
"format": "int64",
"nullable": true,
- "description": "工作流运行结束时的 Unix 时间戳。"
+ "description": "工作流运行完成时的 Unix 时间戳。"
},
"elapsed_time": {
"type": "number",
@@ -5847,7 +5847,7 @@
},
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数。"
},
"total": {
"type": "integer",
@@ -5855,7 +5855,7 @@
},
"has_more": {
"type": "boolean",
- "description": "是否有更多可用页面。"
+ "description": "是否有更多页面可用。"
},
"data": {
"type": "array",
@@ -5888,7 +5888,7 @@
"created_by_account": {
"type": "object",
"nullable": true,
- "description": "由管理员用户创建时的账户详情。",
+ "description": "如果由管理员用户创建,则为账户详情。",
"properties": {
"id": {
"type": "string",
@@ -5901,7 +5901,7 @@
},
"email": {
"type": "string",
- "description": "账户邮箱地址。"
+ "description": "账户电子邮件地址。"
}
}
},
@@ -5917,7 +5917,7 @@
"type": "object",
"additionalProperties": true,
"nullable": true,
- "description": "日志条目的附加详情。"
+ "description": "日志条目的额外详情。"
}
}
},
@@ -5935,7 +5935,7 @@
},
"status": {
"type": "string",
- "description": "工作流执行状态。`running` 表示执行中,`succeeded` 表示成功完成,`failed` 表示执行出错,`stopped` 表示手动停止,`partial-succeeded` 表示部分节点成功但其他失败,`paused` 表示等待人工介入。"
+ "description": "工作流执行状态。`running` 表示进行中的执行,`succeeded` 表示成功完成,`failed` 表示执行遇到错误,`stopped` 表示手动停止,`partial-succeeded` 表示部分节点成功但其他节点失败,`paused` 表示等待人工输入。"
},
"error": {
"type": "string",
@@ -5949,11 +5949,11 @@
},
"total_tokens": {
"type": "integer",
- "description": "消耗的总令牌数。"
+ "description": "消耗的总 token 数。"
},
"total_steps": {
"type": "integer",
- "description": "已执行的工作流总步数。"
+ "description": "执行的工作流步骤总数。"
},
"created_at": {
"type": "integer",
@@ -5964,7 +5964,7 @@
"type": "integer",
"format": "int64",
"nullable": true,
- "description": "工作流运行结束时的 Unix 时间戳。"
+ "description": "工作流运行完成时的 Unix 时间戳。"
},
"exceptions_count": {
"type": "integer",
@@ -5972,7 +5972,7 @@
},
"triggered_from": {
"type": "string",
- "description": "触发工作流运行的来源。`debugging` 表示从编辑器发起的测试运行,`app` 表示 API 或应用发起的运行。"
+ "description": "触发工作流运行的来源。`debugging` 表示来自编辑器的测试运行,`app` 表示 API 或应用发起的运行。"
}
}
},
@@ -5990,7 +5990,7 @@
},
"is_anonymous": {
"type": "boolean",
- "description": "终端用户是否为匿名。"
+ "description": "终端用户是否为匿名用户。"
},
"session_id": {
"type": "string",
@@ -6000,43 +6000,43 @@
},
"HumanInputContent": {
"type": "object",
- "description": "人工介入节点的执行内容,包括表单定义和提交数据。",
+ "description": "来自人工介入节点的执行内容,包括表单定义和提交数据。",
"properties": {
"workflow_run_id": {
"type": "string",
- "description": "该内容所属的工作流运行 ID。"
+ "description": "此内容所属的工作流运行 ID。"
},
"submitted": {
"type": "boolean",
- "description": "人工介入表单是否已提交。"
+ "description": "人工输入表单是否已提交。"
},
"type": {
"type": "string",
- "description": "`human_input` 表示人工介入内容。"
+ "description": "人工输入内容为 `human_input`。"
},
"form_definition": {
"nullable": true,
- "description": "人工介入节点的表单定义。当内容表示提交响应时为 `null`。",
+ "description": "来自人工介入节点的表单定义。当内容表示提交响应时为 `null`。",
"$ref": "#/components/schemas/HumanInputFormDefinition"
},
"form_submission_data": {
"nullable": true,
- "description": "已提交的表单数据。表单尚未提交时为 `null`。",
+ "description": "已提交的表单数据。当表单尚未提交时为 `null`。",
"$ref": "#/components/schemas/HumanInputFormSubmissionData"
}
}
},
"HumanInputFormDefinition": {
"type": "object",
- "description": "由人工介入节点渲染的人工介入表单定义。",
+ "description": "由人工介入节点渲染的人工输入表单定义。",
"properties": {
"form_id": {
"type": "string",
- "description": "表单唯一标识符。"
+ "description": "唯一表单标识符。"
},
"node_id": {
"type": "string",
- "description": "生成该表单的人工介入节点 ID。"
+ "description": "生成此表单的人工介入节点的 ID。"
},
"node_title": {
"type": "string",
@@ -6067,12 +6067,12 @@
"form_token": {
"type": "string",
"nullable": true,
- "description": "表单提交认证的令牌。"
+ "description": "用于表单提交认证的令牌。"
},
"resolved_default_values": {
"type": "object",
"additionalProperties": true,
- "description": "表单输入的已解析默认值,按输出变量名称索引。"
+ "description": "表单输入的已解析默认值,按输出变量名称键入。"
},
"expiration_time": {
"type": "integer",
@@ -6082,7 +6082,7 @@
},
"HumanInputFormSubmissionData": {
"type": "object",
- "description": "来自已提交的人工介入表单的数据。",
+ "description": "来自已提交人工输入表单的数据。",
"properties": {
"node_id": {
"type": "string",
@@ -6112,7 +6112,7 @@
"properties": {
"type": {
"type": "string",
- "description": "`text_input` 为单行文本,`paragraph` 为多行文本。"
+ "description": "`text_input` 用于单行文本,`paragraph` 用于多行文本。"
},
"output_variable_name": {
"type": "string",
@@ -6120,7 +6120,7 @@
},
"default": {
"nullable": true,
- "description": "该输入的默认值配置。",
+ "description": "此输入的默认值配置。",
"$ref": "#/components/schemas/FormInputDefault"
}
}
@@ -6131,7 +6131,7 @@
"properties": {
"type": {
"type": "string",
- "description": "`variable` for dynamic values from 工作流 variables, `constant` for static values."
+ "description": "`variable` 用于工作流变量的动态值,`constant` 用于静态值。"
},
"selector": {
"type": "array",
@@ -6148,11 +6148,11 @@
},
"UserAction": {
"type": "object",
- "description": "人工介入表单上的操作按钮。",
+ "description": "人工输入表单上的操作按钮。",
"properties": {
"id": {
"type": "string",
- "description": "操作唯一标识符。"
+ "description": "唯一操作标识符。"
},
"title": {
"type": "string",
@@ -6160,7 +6160,7 @@
},
"button_style": {
"type": "string",
- "description": "`primary`, `default`, `accent`, or `ghost`."
+ "description": "`primary`、`default`、`accent` 或 `ghost`。"
}
}
}
@@ -6168,40 +6168,40 @@
},
"tags": [
{
- "name": "对话消息",
- "description": "与聊天消息和交互相关的操作。"
+ "name": "Chats",
+ "description": "与对话消息和交互相关的操作。"
},
{
- "name": "文件操作",
+ "name": "Files",
"description": "文件上传和预览操作。"
},
{
- "name": "终端用户",
- "description": "终端用户信息相关操作。"
+ "name": "End Users",
+ "description": "与终端用户信息相关的操作。"
},
{
- "name": "消息反馈",
+ "name": "Feedback",
"description": "用户反馈操作。"
},
{
- "name": "会话管理",
- "description": "与管理会话相关的操作。"
+ "name": "Conversations",
+ "description": "与管理对话相关的操作。"
},
{
- "name": "语音与文字转换",
+ "name": "TTS",
"description": "文字转语音和语音转文字操作。"
},
{
- "name": "应用配置",
- "description": "获取应用设置和信息的操作。"
+ "name": "Applications",
+ "description": "检索应用设置和信息的操作。"
},
{
- "name": "标注管理",
- "description": "与管理标注直接回复相关的操作。"
+ "name": "Annotations",
+ "description": "与管理直接回复标注相关的操作。"
},
{
- "name": "工作流执行",
+ "name": "Workflow Runs",
"description": "与工作流执行详情和日志相关的操作。"
}
]
-}
+}
\ No newline at end of file
diff --git a/zh/api-reference/openapi_completion.json b/zh/api-reference/openapi_completion.json
index 43bff9e05..82b985739 100644
--- a/zh/api-reference/openapi_completion.json
+++ b/zh/api-reference/openapi_completion.json
@@ -1,14 +1,14 @@
{
"openapi": "3.0.1",
"info": {
- "title": "文本生成型应用 API",
- "description": "文本生成型应用提供无会话支持,适用于翻译、文章撰写、摘要总结 AI 等场景。",
+ "title": "文本生成应用 API",
+ "description": "文本生成应用提供非会话支持,非常适合翻译、文章写作、摘要 AI 等场景。",
"version": "1.0.0"
},
"servers": [
{
"url": "{api_base_url}",
- "description": "文本生成型应用 API 的基础 URL。请将 {api_base_url} 替换为你的应用实际提供的 API 基础 URL。",
+ "description": "文本生成应用 API 的基础 URL。将 {api_base_url} 替换为为您的应用程序提供的实际 API 基础 URL。",
"variables": {
"api_base_url": {
"default": "https://api.dify.ai/v1",
@@ -25,11 +25,11 @@
"paths": {
"/completion-messages": {
"post": {
- "summary": "发送消息",
- "description": "向文本生成型应用发送请求。",
+ "summary": "发送文本生成消息",
+ "description": "向文本生成应用发送请求。",
"operationId": "createCompletionMessage",
"tags": [
- "文本生成"
+ "Completions"
],
"requestBody": {
"description": "创建文本生成消息的请求体。",
@@ -75,7 +75,7 @@
},
"responses": {
"200": {
- "description": "请求成功。内容类型和结构取决于请求中的 `response_mode` 参数。\n\n- 如果 `response_mode` 为 `blocking`,返回 `application/json` 和 `CompletionResponse` 对象。\n- 如果 `response_mode` 为 `streaming`,返回 `text/event-stream` 和 `ChunkCompletionEvent` 对象流。",
+ "description": "成功响应。内容类型和结构取决于请求中的 `response_mode` 参数。\n- 如果 `response_mode` 为 `blocking`,返回 `application/json` 格式的 `CompletionResponse` 对象。\n- 如果 `response_mode` 为 `streaming`,返回 `text/event-stream` 格式的 `ChunkCompletionEvent` 对象流。",
"content": {
"application/json": {
"schema": {
@@ -115,7 +115,7 @@
"text/event-stream": {
"schema": {
"type": "string",
- "description": "服务器发送事件 (SSE) 流。每个事件是一个以 `data: ` 为前缀的 JSON 对象,以两个换行符终止。\n\n**SSE 解析指南:**每个事件是一行以 `data: ` 为前缀的 JSON 对象,以 `\\n\\n` 终止。解析 JSON 前先去除 `data: ` 前缀。JSON 内的 `event` 字段决定事件类型。当收到终止事件(如 `message_end` 或 `error`)时流结束。忽略 `ping` 事件(每 10 秒发送一次以保持连接活跃)。注意即使流中出现错误事件,HTTP 状态码仍为 `200`。"
+ "description": "服务器发送事件(SSE)流。每个事件是一个以 `data: ` 为前缀并以两个换行符结尾的 JSON 对象。可能的事件结构请参见 `ChunkCompletionEvent`。\n**SSE 解析指南:** 每个事件是一行以 `data: ` 为前缀的 JSON 对象,以 `\\n\\n` 结尾。在解析 JSON 之前,请去除 `data: ` 前缀。JSON 内部的 `event` 字段决定事件类型。当收到 `message_end` 事件时,流结束。忽略 `ping` 事件(每 10 秒发送一次以保持连接活跃)。如果在流中间收到 `error` 事件,流将终止——解析错误对象以获取详细信息。请注意,即使流中发生错误事件,HTTP 状态码也始终为 `200`。"
},
"examples": {
"streamingResponse": {
@@ -127,7 +127,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不可用。\n- `completion_request_error` : 文本生成失败。",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已用尽。\n- `model_currently_not_support`:当前模型不可用。\n- `completion_request_error`:文本生成失败。",
"content": {
"application/json": {
"examples": {
@@ -176,7 +176,7 @@
}
},
"429": {
- "description": "`too_many_requests` : 该应用的并发请求过多。",
+ "description": "`too_many_requests`:此应用的并发请求过多。",
"content": {
"application/json": {
"examples": {
@@ -193,7 +193,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:内部服务器错误。",
"content": {
"application/json": {
"examples": {
@@ -214,18 +214,18 @@
},
"/completion-messages/{task_id}/stop": {
"post": {
- "summary": "停止响应",
- "description": "停止文本生成消息生成任务。仅在 `streaming` 模式下支持。",
- "operationId": "stopCompletionGeneration",
+ "summary": "停止文本生成消息",
+ "description": "停止文本生成消息任务。仅在 `streaming` 模式下支持。",
+ "operationId": "stopGenerate",
"tags": [
- "文本生成"
+ "Completions"
],
"parameters": [
{
"name": "task_id",
"in": "path",
"required": true,
- "description": "任务 ID,可以从 [发送消息](/api-reference/文本生成/发送消息) API 的流式分块返回中获取。",
+ "description": "任务 ID,可从[发送文本生成消息](/api-reference/completions/send-completion-message) API 的流式块返回中获取。",
"schema": {
"type": "string"
}
@@ -243,7 +243,7 @@
"properties": {
"user": {
"type": "string",
- "description": "用户标识符,必须和发送消息接口传入的 user 保持一致。"
+ "description": "用户标识符,必须与发送消息接口中传入的用户一致。"
}
}
},
@@ -263,7 +263,7 @@
"$ref": "#/components/responses/SuccessResult"
},
"400": {
- "description": "`app_unavailable` : 应用不可用或配置错误。",
+ "description": "`app_unavailable`:应用不可用或配置错误。",
"content": {
"application/json": {
"examples": {
@@ -286,10 +286,10 @@
"post": {
"operationId": "postMessageFeedback",
"tags": [
- "消息反馈"
+ "Feedback"
],
"summary": "提交消息反馈",
- "description": "提交消息反馈。终端用户可以对消息评价 `like` 或 `dislike`,并可选择提供文字反馈。将 `rating` 设为 `null` 可撤销之前提交的反馈。",
+ "description": "提交消息反馈。终端用户可以将消息评为 `like` 或 `dislike`,并可选择提供文本反馈。将 `rating` 设置为 `null` 可撤销之前提交的反馈。",
"parameters": [
{
"name": "message_id",
@@ -326,7 +326,7 @@
"$ref": "#/components/responses/SuccessResult"
},
"404": {
- "description": "`not_found` : 消息不存在。",
+ "description": "`not_found`:消息不存在。",
"content": {
"application/json": {
"examples": {
@@ -349,15 +349,15 @@
"get": {
"operationId": "getAppFeedbacks",
"tags": [
- "消息反馈"
+ "Feedback"
],
- "summary": "获取应用的消息反馈",
- "description": "获取此应用中所有消息反馈的分页列表,包括终端用户和管理员反馈。",
+ "summary": "获取应用反馈列表",
+ "description": "检索此应用程序中所有消息提交的反馈的分页列表,包括终端用户和管理员反馈。",
"parameters": [
{
"name": "page",
"in": "query",
- "description": "分页页码。",
+ "description": "分页的页码。",
"required": false,
"schema": {
"type": "integer",
@@ -368,7 +368,7 @@
{
"name": "limit",
"in": "query",
- "description": "每页记录数。",
+ "description": "每页的记录数。",
"required": false,
"schema": {
"type": "integer",
@@ -431,12 +431,12 @@
"post": {
"operationId": "uploadFile",
"tags": [
- "文件操作"
+ "Files"
],
"summary": "上传文件",
- "description": "上传文件用于发送消息时使用,支持图片、文档、音频和视频的多模态理解。上传的文件仅供当前终端用户使用。",
+ "description": "上传文件以在发送消息时使用,支持对图像、文档、音频和视频的多模态理解。上传的文件仅供当前终端用户使用。",
"requestBody": {
- "description": "文件上传请求。需要 multipart/form-data 格式。",
+ "description": "文件上传请求。需要 multipart/form-data。",
"required": true,
"content": {
"multipart/form-data": {
@@ -449,11 +449,11 @@
"file": {
"type": "string",
"format": "binary",
- "description": "要上传的文件。支持的类型包括图片、文档、音频和视频。"
+ "description": "要上传的文件。支持的类型包括图像、文档、音频和视频。"
},
"user": {
"type": "string",
- "description": "用户标识符,由开发者定义的规则生成,必须在应用内唯一。"
+ "description": "用户标识符,由开发者规则定义,在应用程序内必须唯一。"
}
}
}
@@ -493,7 +493,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : 请求中未提供文件。\n- `too_many_files` : 每次请求仅允许上传一个文件。\n- `filename_not_exists_error` : 上传的文件没有文件名。",
+ "description": "- `no_file_uploaded`:请求中未提供文件。\n- `too_many_files`:每个请求只允许一个文件。\n- `filename_not_exists_error`:上传的文件没有文件名。",
"content": {
"application/json": {
"examples": {
@@ -526,7 +526,7 @@
}
},
"413": {
- "description": "`file_too_large` : 文件大小超出限制。",
+ "description": "`file_too_large`:文件大小超出限制。",
"content": {
"application/json": {
"examples": {
@@ -543,7 +543,7 @@
}
},
"415": {
- "description": "`unsupported_file_type` : 不允许的文件类型。",
+ "description": "`unsupported_file_type`:不允许的文件类型。",
"content": {
"application/json": {
"examples": {
@@ -564,18 +564,18 @@
},
"/files/{file_id}/preview": {
"get": {
- "operationId": "previewCompletionFileZh",
+ "operationId": "previewCompletionFile",
"tags": [
- "文件操作"
+ "Files"
],
"summary": "下载文件",
- "description": "预览或下载之前通过[上传文件](/api-reference/文件操作/上传文件) API 上传的文件。仅可访问属于请求应用内消息的文件。",
+ "description": "预览或下载之前通过[上传文件](/api-reference/files/upload-file) API 上传的文件。只有属于请求应用程序内消息的文件才能访问。",
"parameters": [
{
"name": "file_id",
"in": "path",
"required": true,
- "description": "要预览的文件唯一标识符,从 [上传文件](/api-reference/文件操作/上传文件) API 响应中获取。",
+ "description": "要预览的文件的唯一标识符,从[上传文件](/api-reference/files/upload-file) API 响应中获取。",
"schema": {
"type": "string",
"format": "uuid"
@@ -585,7 +585,7 @@
"name": "as_attachment",
"in": "query",
"required": false,
- "description": "如果为 `true`,则强制文件以附件形式下载,而不是在浏览器中预览。",
+ "description": "如果为 `true`,强制将文件作为附件下载,而不是在浏览器中预览。",
"schema": {
"type": "boolean",
"default": false
@@ -603,7 +603,7 @@
],
"responses": {
"200": {
- "description": "返回原始文件内容。`Content-Type` 头设置为文件的 MIME 类型。如果 `as_attachment` 为 `true`,文件将以 `Content-Disposition: attachment` 方式作为下载返回。",
+ "description": "返回原始文件内容。`Content-Type` 头设置为文件的 MIME 类型。如果 `as_attachment` 为 `true`,文件将作为下载返回,并带有 `Content-Disposition: attachment`。",
"content": {
"application/octet-stream": {
"schema": {
@@ -614,7 +614,7 @@
}
},
"403": {
- "description": "`file_access_denied` : 拒绝访问请求的文件。",
+ "description": "`file_access_denied`:请求的文件访问被拒绝。",
"content": {
"application/json": {
"examples": {
@@ -631,7 +631,7 @@
}
},
"404": {
- "description": "`file_not_found` : 未找到请求的文件。",
+ "description": "`file_not_found`:未找到请求的文件。",
"content": {
"application/json": {
"examples": {
@@ -652,12 +652,12 @@
},
"/end-users/{end_user_id}": {
"get": {
- "operationId": "getEndUserCompletionCn",
+ "operationId": "getEndUserCompletion",
"tags": [
- "终端用户"
+ "End Users"
],
- "summary": "获取终端用户",
- "description": "根据 ID 获取终端用户信息。当其他 API 返回终端用户 ID(例如[上传文件](/api-reference/文件操作/上传文件)返回的 `created_by`)时很有用。",
+ "summary": "获取终端用户信息",
+ "description": "通过 ID 检索终端用户。当其他 API 返回终端用户 ID 时很有用(例如,[上传文件](/api-reference/files/upload-file) 中的 `created_by`)。",
"parameters": [
{
"name": "end_user_id",
@@ -672,7 +672,7 @@
],
"responses": {
"200": {
- "description": "成功获取终端用户。",
+ "description": "成功检索终端用户。",
"content": {
"application/json": {
"schema": {
@@ -699,7 +699,7 @@
}
},
"404": {
- "description": "`end_user_not_found` : 未找到终端用户。",
+ "description": "`end_user_not_found`:未找到终端用户。",
"content": {
"application/json": {
"examples": {
@@ -720,12 +720,12 @@
},
"/audio-to-text": {
"post": {
- "operationId": "completionAudioToTextZh",
+ "operationId": "completionAudioToText",
"tags": [
- "语音与文字转换"
+ "TTS"
],
"summary": "语音转文字",
- "description": "将音频文件转换为文字。支持的格式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。文件大小限制为 `30 MB`。",
+ "description": "将音频文件转换为文本。支持的格式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。文件大小限制为 `30 MB`。",
"requestBody": {
"required": true,
"content": {
@@ -738,7 +738,7 @@
},
"responses": {
"200": {
- "description": "语音转文字成功。",
+ "description": "成功将音频转换为文本。",
"content": {
"application/json": {
"schema": {
@@ -756,7 +756,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `no_audio_uploaded` : 未上传音频文件。\n- `provider_not_support_speech_to_text` : 模型提供商不支持语音转文字。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不支持此操作。\n- `completion_request_error` : 语音识别请求失败。",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `no_audio_uploaded`:未上传音频文件。\n- `provider_not_support_speech_to_text`:模型供应商不支持语音转文字。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已用尽。\n- `model_currently_not_support`:当前模型不支持此操作。\n- `completion_request_error`:语音识别请求失败。",
"content": {
"application/json": {
"examples": {
@@ -821,7 +821,7 @@
}
},
"413": {
- "description": "`audio_too_large` : 音频文件大小超出限制。",
+ "description": "`audio_too_large`:音频文件大小超出限制。",
"content": {
"application/json": {
"examples": {
@@ -838,7 +838,7 @@
}
},
"415": {
- "description": "`unsupported_audio_type` : 不允许的音频类型。",
+ "description": "`unsupported_audio_type`:不允许的音频类型。",
"content": {
"application/json": {
"examples": {
@@ -855,7 +855,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:内部服务器错误。",
"content": {
"application/json": {
"examples": {
@@ -878,10 +878,10 @@
"post": {
"operationId": "textToAudio",
"tags": [
- "语音与文字转换"
+ "TTS"
],
"summary": "文字转语音",
- "description": "将文字转换为语音。",
+ "description": "将文本转换为语音。",
"requestBody": {
"required": true,
"content": {
@@ -905,7 +905,7 @@
},
"responses": {
"200": {
- "description": "返回生成的音频文件。`Content-Type` 头设置为音频 MIME 类型(例如 `audio/wav`、`audio/mp3`)。如果 `streaming` 为 `true`,音频将以分块传输编码方式流式返回。",
+ "description": "返回生成的音频文件。`Content-Type` 头设置为音频 MIME 类型(例如 `audio/wav`、`audio/mp3`)。如果 `streaming` 为 `true`,音频将以分块传输编码方式流式传输。",
"content": {
"audio/mpeg": {
"schema": {
@@ -916,7 +916,7 @@
}
},
"400": {
- "description": "- `app_unavailable` : 应用不可用或配置错误。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。\n- `provider_quota_exceeded` : 模型提供商配额已用尽。\n- `model_currently_not_support` : 当前模型不支持此操作。\n- `completion_request_error` : 文字转语音请求失败。",
+ "description": "- `app_unavailable`:应用不可用或配置错误。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。\n- `provider_quota_exceeded`:模型供应商配额已用尽。\n- `model_currently_not_support`:当前模型不支持此操作。\n- `completion_request_error`:文字转语音请求失败。",
"content": {
"application/json": {
"examples": {
@@ -965,7 +965,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 内部服务器错误。",
+ "description": "`internal_server_error`:内部服务器错误。",
"content": {
"application/json": {
"examples": {
@@ -988,13 +988,13 @@
"get": {
"operationId": "getAppInfo",
"tags": [
- "应用配置"
+ "Applications"
],
- "summary": "获取应用基本信息",
- "description": "获取应用的基本信息,包括名称、描述、标签和模式。",
+ "summary": "获取应用信息",
+ "description": "检索此应用程序的基本信息,包括名称、描述、标签和模式。",
"responses": {
"200": {
- "description": "应用的基本信息。",
+ "description": "应用程序的基本信息。",
"content": {
"application/json": {
"schema": {
@@ -1025,13 +1025,13 @@
"get": {
"operationId": "getAppParameters",
"tags": [
- "应用配置"
+ "Applications"
],
"summary": "获取应用参数",
- "description": "获取应用的输入表单配置,包括功能开关、输入参数名称、类型和默认值。",
+ "description": "检索应用程序的输入表单配置,包括功能开关、输入参数名称、类型和默认值。",
"responses": {
"200": {
- "description": "应用参数信息。",
+ "description": "应用程序参数信息。",
"content": {
"application/json": {
"schema": {
@@ -1105,7 +1105,7 @@
}
},
"400": {
- "description": "`app_unavailable` : 应用不可用或配置错误。",
+ "description": "`app_unavailable`:应用不可用或配置错误。",
"content": {
"application/json": {
"examples": {
@@ -1126,15 +1126,15 @@
},
"/meta": {
"get": {
- "operationId": "getCompletionAppMetaZh",
+ "operationId": "getCompletionAppMeta",
"tags": [
- "应用配置"
+ "Applications"
],
- "summary": "获取应用元数据",
- "description": "获取应用的元数据,包括工具图标和其他配置详情。",
+ "summary": "获取应用元信息",
+ "description": "检索此应用程序的元数据,包括工具图标和其他配置详情。",
"responses": {
"200": {
- "description": "成功获取应用元数据。",
+ "description": "成功检索应用程序元信息。",
"content": {
"application/json": {
"schema": {
@@ -1164,13 +1164,13 @@
"get": {
"operationId": "getWebAppSettings",
"tags": [
- "应用配置"
+ "Applications"
],
"summary": "获取应用 WebApp 设置",
- "description": "获取应用的 WebApp 设置,包括站点配置、主题和自定义选项。",
+ "description": "检索此应用程序的 WebApp 设置,包括站点配置、主题和自定义选项。",
"responses": {
"200": {
- "description": "应用的 WebApp 设置。",
+ "description": "应用程序的 WebApp 设置。",
"content": {
"application/json": {
"schema": {
@@ -1180,7 +1180,7 @@
"webAppSettings": {
"summary": "响应示例",
"value": {
- "title": "My Chat App",
+ "title": "我的聊天应用",
"chat_color_theme": "#4A90D9",
"chat_color_theme_inverted": false,
"icon_type": "emoji",
@@ -1201,7 +1201,7 @@
}
},
"403": {
- "description": "`forbidden` : 未找到此应用的站点或工作空间已归档。",
+ "description": "`forbidden`:未找到此应用程序的站点或工作区已被归档。",
"content": {
"application/json": {
"examples": {
@@ -1227,7 +1227,7 @@
"type": "http",
"scheme": "bearer",
"bearerFormat": "API_KEY",
- "description": "API Key 认证。对于所有 API 请求,请在 `Authorization` HTTP 头中包含您的 API Key,并加上 `Bearer ` 前缀。示例:`Authorization: Bearer {API_KEY}`。**强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。**"
+ "description": "API 密钥认证。对于所有 API 请求,请在 `Authorization` HTTP 头中包含您的 API 密钥,并以 `Bearer ` 为前缀。示例:`Authorization: Bearer {API_KEY}`。**强烈建议将您的 API 密钥存储在服务器端,不要在客户端共享或存储,以避免可能的 API 密钥泄露导致严重后果。**"
}
},
"responses": {
@@ -1266,13 +1266,13 @@
"properties": {
"inputs": {
"type": "object",
- "description": "允许输入应用定义的各种变量值。包含键值对,每个键对应一个特定变量,每个值为该变量的具体值。请参阅 [获取应用参数](/api-reference/应用配置/获取应用参数) 响应中的 `user_input_form` 字段,以了解应用所需的变量名称和类型。",
+ "description": "允许输入应用定义的各种变量值。包含键/值对,每个键对应一个特定变量,每个值是该变量的具体值。请参阅[获取应用参数](/api-reference/applications/get-app-parameters)响应中的 `user_input_form` 字段,了解您的应用期望的变量名称和类型。",
"additionalProperties": true
},
"query": {
"type": "string",
"default": "",
- "description": "要处理的输入文本。这是一个旧版参数;在较新的应用中,查询内容应通过 `inputs` 对象传递。"
+ "description": "要处理的输入文本。这是一个遗留参数;在较新的应用中,查询应在 `inputs` 对象内传递。"
},
"response_mode": {
"type": "string",
@@ -1280,18 +1280,18 @@
"streaming",
"blocking"
],
- "description": "响应返回模式。`streaming`(推荐)使用 SSE。`blocking` 等待完成后返回(长时间处理可能会被中断)。Cloudflare 超时为 `100 s`。省略时默认为阻塞模式。"
+ "description": "响应返回模式。`streaming`(推荐)使用 SSE。`blocking` 在完成后返回(长时间处理可能会中断)。Cloudflare 超时为 `100 秒`。省略时,默认为阻塞行为。"
},
"user": {
"type": "string",
- "description": "用户标识符,在应用内唯一。此标识符限定数据访问范围——消息和文件仅在使用相同 `user` 值查询时可见。"
+ "description": "用户标识符,在应用程序内唯一。此标识符限定数据访问范围——只有使用相同 `user` 值查询时,消息和文件才可见。"
},
"files": {
"type": "array",
"items": {
"$ref": "#/components/schemas/InputFileObject"
},
- "description": "用于多模态理解的文件列表,包括图片、文档、音频和视频。要附加本地文件,请先通过 [上传文件](/api-reference/文件操作/上传文件) 上传,然后将返回的 `id` 作为 `upload_file_id`,并设置 `transfer_method: local_file`。"
+ "description": "用于多模态理解的文件列表,包括图像、文档、音频和视频。要附加本地文件,请先通过[上传文件](/api-reference/files/upload-file)上传,然后使用返回的 `id` 作为 `upload_file_id`,并设置 `transfer_method: local_file`。"
}
}
},
@@ -1319,7 +1319,7 @@
"remote_url",
"local_file"
],
- "description": "传输方式:文件 URL 使用 `remote_url`,上传文件使用 `local_file`。"
+ "description": "传输方式:`remote_url` 表示文件 URL,`local_file` 表示已上传的文件。"
},
"url": {
"type": "string",
@@ -1328,7 +1328,7 @@
},
"upload_file_id": {
"type": "string",
- "description": "已上传文件 ID,通过 [上传文件](/api-reference/文件操作/上传文件) API 预先上传获取(当 `transfer_method` 为 `local_file` 时使用)。"
+ "description": "已上传的文件 ID,通过提前调用[上传文件](/api-reference/files/upload-file) API 获取(当 `transfer_method` 为 `local_file` 时)。"
}
},
"anyOf": [
@@ -1385,17 +1385,17 @@
"task_id": {
"type": "string",
"format": "uuid",
- "description": "用于请求追踪和 [停止响应](/api-reference/文本生成/停止响应) API 的任务 ID。"
+ "description": "任务 ID,用于请求跟踪和[停止文本生成消息](/api-reference/completions/stop-completion-message-generation) API。"
},
"id": {
"type": "string",
"format": "uuid",
- "description": "该响应事件的唯一 ID。"
+ "description": "此响应事件的唯一 ID。"
},
"message_id": {
"type": "string",
"format": "uuid",
- "description": "唯一的消息 ID。调用反馈或推荐问题接口时,将此值作为 `message_id` 参数使用。"
+ "description": "唯一消息 ID。在调用反馈或建议问题端点时,将其用作 `message_id` 参数。"
},
"mode": {
"type": "string",
@@ -1403,11 +1403,11 @@
},
"answer": {
"type": "string",
- "description": "完整的响应内容。"
+ "description": "完整响应内容。"
},
"metadata": {
"type": "object",
- "description": "包含用量和检索资源的元数据。",
+ "description": "元数据,包括用量和检索资源。",
"properties": {
"usage": {
"$ref": "#/components/schemas/Usage"
@@ -1443,7 +1443,7 @@
"error",
"ping"
],
- "description": "流式事件的类型。"
+ "description": "流式事件类型。"
}
},
"discriminator": {
@@ -1510,16 +1510,16 @@
},
{
"type": "object",
- "description": "消息结束事件,收到此事件表示流式输出已结束。",
+ "description": "消息结束事件,接收到此事件意味着流式传输已结束。",
"properties": {
"id": {
"type": "string",
"format": "uuid",
- "description": "消息的唯一 ID。"
+ "description": "唯一消息 ID。"
},
"metadata": {
"type": "object",
- "description": "包含用量和检索资源的元数据。",
+ "description": "元数据,包括用量和检索资源。",
"properties": {
"usage": {
"$ref": "#/components/schemas/Usage"
@@ -1547,12 +1547,12 @@
},
{
"type": "object",
- "description": "TTS 音频流事件(base64 编码的 MP3)。在启用自动播放时可用。",
+ "description": "TTS 音频流事件(base64 编码的 MP3)。如果启用了自动播放则可用。",
"properties": {
"audio": {
"type": "string",
"format": "byte",
- "description": "Base64 编码的 MP3 音频块。按顺序解码并拼接所有块即可生成完整的音频文件。"
+ "description": "Base64 编码的 MP3 音频块。按顺序解码并连接所有块以生成完整的音频文件。"
}
}
}
@@ -1572,7 +1572,7 @@
"properties": {
"audio": {
"type": "string",
- "description": "空字符串。标识音频流结束。"
+ "description": "空字符串。表示音频流结束。"
}
}
}
@@ -1601,7 +1601,7 @@
"enum": [
"assistant"
],
- "description": "该文件的归属方,此处始终为 `assistant`。"
+ "description": "此文件属于谁,这里始终为 `assistant`。"
},
"url": {
"type": "string",
@@ -1622,7 +1622,7 @@
},
{
"type": "object",
- "description": "消息内容替换事件(例如由于内容审核)。",
+ "description": "消息内容替换事件(例如,由于内容审核)。",
"properties": {
"answer": {
"type": "string",
@@ -1630,7 +1630,7 @@
},
"reason": {
"type": "string",
- "description": "内容替换的原因。"
+ "description": "内容替换原因。"
}
}
}
@@ -1646,7 +1646,7 @@
},
{
"type": "object",
- "description": "流式输出过程中的错误事件。",
+ "description": "流式传输期间的错误事件。",
"properties": {
"status": {
"type": "integer",
@@ -1654,11 +1654,11 @@
},
"code": {
"type": "string",
- "description": "错误码。"
+ "description": "错误代码。"
},
"message": {
"type": "string",
- "description": "错误信息。"
+ "description": "错误消息。"
}
}
}
@@ -1671,7 +1671,7 @@
},
{
"type": "object",
- "description": "Ping 事件,用于保持连接活跃。"
+ "description": "保持连接活跃的 Ping 事件。"
}
]
},
@@ -1680,59 +1680,59 @@
"properties": {
"prompt_tokens": {
"type": "integer",
- "description": "提示词中的令牌数。"
+ "description": "提示词中的 token 数量。"
},
"prompt_unit_price": {
"type": "string",
"format": "decimal",
- "description": "每个提示词令牌的单价。"
+ "description": "每个提示词 token 的单价。"
},
"prompt_price_unit": {
"type": "string",
"format": "decimal",
- "description": "提示词令牌的价格单位。"
+ "description": "提示词 token 的价格单位。"
},
"prompt_price": {
"type": "string",
"format": "decimal",
- "description": "提示词令牌的总价。"
+ "description": "提示词 token 的总价格。"
},
"completion_tokens": {
"type": "integer",
- "description": "补全内容中的令牌数。"
+ "description": "补全中的 token 数量。"
},
"completion_unit_price": {
"type": "string",
"format": "decimal",
- "description": "每个补全令牌的单价。"
+ "description": "每个补全 token 的单价。"
},
"completion_price_unit": {
"type": "string",
"format": "decimal",
- "description": "补全令牌的价格单位。"
+ "description": "补全 token 的价格单位。"
},
"completion_price": {
"type": "string",
"format": "decimal",
- "description": "补全令牌的总价。"
+ "description": "补全 token 的总价格。"
},
"total_tokens": {
"type": "integer",
- "description": "使用的令牌总数。"
+ "description": "使用的 token 总数。"
},
"total_price": {
"type": "string",
"format": "decimal",
- "description": "所有令牌的总价。"
+ "description": "所有 token 的总价格。"
},
"currency": {
"type": "string",
- "description": "计价货币。"
+ "description": "定价货币。"
},
"latency": {
"type": "number",
"format": "double",
- "description": "延迟时间(秒)。"
+ "description": "延迟(秒)。"
}
}
},
@@ -1747,7 +1747,7 @@
"message_id": {
"type": "string",
"format": "uuid",
- "description": "该资源所属消息的 ID。"
+ "description": "此资源所属消息的 ID。"
},
"position": {
"type": "integer",
@@ -1756,46 +1756,46 @@
"dataset_id": {
"type": "string",
"format": "uuid",
- "description": "知识库 ID。"
+ "description": "知识库的 ID。"
},
"dataset_name": {
"type": "string",
- "description": "知识库名称。"
+ "description": "知识库的名称。"
},
"document_id": {
"type": "string",
"format": "uuid",
- "description": "文档 ID。"
+ "description": "文档的 ID。"
},
"document_name": {
"type": "string",
- "description": "文档名称。"
+ "description": "文档的名称。"
},
"data_source_type": {
"type": "string",
- "description": "数据源类型。"
+ "description": "数据源的类型。"
},
"segment_id": {
"type": "string",
"format": "uuid",
- "description": "文档中特定块的 ID。"
+ "description": "文档中特定分段的 ID。"
},
"score": {
"type": "number",
"format": "float",
- "description": "资源的相关性评分。"
+ "description": "资源的相关性分数。"
},
"hit_count": {
"type": "integer",
- "description": "该块被命中的次数。"
+ "description": "此分段被命中的次数。"
},
"word_count": {
"type": "integer",
- "description": "块的字数。"
+ "description": "分段的字数。"
},
"segment_position": {
"type": "integer",
- "description": "块在文档中的位置。"
+ "description": "分段在文档中的位置。"
},
"index_node_hash": {
"type": "string",
@@ -1808,7 +1808,7 @@
"summary": {
"type": "string",
"nullable": true,
- "description": "块内容的摘要。"
+ "description": "分段内容的摘要。"
},
"created_at": {
"type": "integer",
@@ -1873,24 +1873,24 @@
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的用户 ID。"
+ "description": "关联用户的 ID。"
},
"tenant_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的租户 ID。"
+ "description": "关联租户的 ID。"
},
"conversation_id": {
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "关联的会话 ID。"
+ "description": "关联会话的 ID。"
},
"file_key": {
"type": "string",
"nullable": true,
- "description": "文件的存储键。"
+ "description": "文件的存储密钥。"
}
}
},
@@ -1911,16 +1911,16 @@
"type": "string",
"format": "uuid",
"nullable": true,
- "description": "应用 ID。"
+ "description": "应用程序 ID。"
},
"type": {
"type": "string",
- "description": "终端用户类型。Service API 用户固定为 `service_api`。"
+ "description": "终端用户类型。对于服务 API 用户始终为 `service_api`。"
},
"external_user_id": {
"type": "string",
"nullable": true,
- "description": "API 请求中提供的 `user` 标识符(例如 [发送消息](/api-reference/文本生成/发送消息) 中的 `user` 字段)。"
+ "description": "API 请求中提供的 `user` 标识符(例如,[发送文本生成消息](/api-reference/completions/send-completion-message) 中的 `user` 字段)。"
},
"name": {
"type": "string",
@@ -1929,11 +1929,11 @@
},
"is_anonymous": {
"type": "boolean",
- "description": "用户是否为匿名用户。当原始 API 请求中未提供 `user` 标识符时,值为 `true`。"
+ "description": "用户是否为匿名。当原始 API 请求中未提供 `user` 标识符时为 `true`。"
},
"session_id": {
"type": "string",
- "description": "会话标识符。默认为 `external_user_id` 的值。"
+ "description": "会话标识符。默认为 `external_user_id` 值。"
},
"created_at": {
"type": "string",
@@ -1962,15 +1962,15 @@
null
],
"nullable": true,
- "description": "反馈评分。设为 `null` 可撤销之前提交的反馈。"
+ "description": "反馈评分。设置为 `null` 可撤销之前提交的反馈。"
},
"user": {
"type": "string",
- "description": "用户标识符,由开发者定义,必须确保在应用内唯一。"
+ "description": "用户标识符,由开发者定义,必须确保在应用程序内唯一。"
},
"content": {
"type": "string",
- "description": "提供额外详情的可选文字反馈。"
+ "description": "可选的文本反馈,提供额外详情。"
}
}
},
@@ -1988,7 +1988,7 @@
},
"FeedbackItem": {
"type": "object",
- "description": "单条反馈项。",
+ "description": "单个反馈项。",
"properties": {
"id": {
"type": "string",
@@ -1998,7 +1998,7 @@
"app_id": {
"type": "string",
"format": "uuid",
- "description": "应用 ID。"
+ "description": "应用程序 ID。"
},
"conversation_id": {
"type": "string",
@@ -2012,16 +2012,16 @@
},
"rating": {
"type": "string",
- "description": "反馈评分。`like` 为正面,`dislike` 为负面。"
+ "description": "反馈评分。`like` 表示正面评价,`dislike` 表示负面评价。"
},
"content": {
"type": "string",
"nullable": true,
- "description": "可选的文字反馈。"
+ "description": "可选的文本反馈。"
},
"from_source": {
"type": "string",
- "description": "反馈来源。`user` 为终端用户通过 API 提交的反馈,`admin` 为从控制台提交的反馈。"
+ "description": "反馈来源。`user` 表示通过 API 提交的终端用户反馈,`admin` 表示从控制台提交的反馈。"
},
"from_end_user_id": {
"type": "string",
@@ -2057,7 +2057,7 @@
"file": {
"type": "string",
"format": "binary",
- "description": "音频文件。支持格式:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。大小限制:`30 MB`。"
+ "description": "音频文件。支持:`mp3`、`mp4`、`mpeg`、`mpga`、`m4a`、`wav`、`webm`。限制:`30 MB`。"
},
"user": {
"type": "string",
@@ -2070,7 +2070,7 @@
"properties": {
"text": {
"type": "string",
- "description": "语音识别输出的文字。"
+ "description": "语音识别的输出文本。"
}
}
},
@@ -2081,7 +2081,7 @@
"message_id": {
"type": "string",
"format": "uuid",
- "description": "消息 ID。当同时提供 `text` 时,优先使用消息 ID。"
+ "description": "消息 ID。当两者都提供时,优先于 `text`。"
},
"text": {
"type": "string",
@@ -2093,7 +2093,7 @@
},
"voice": {
"type": "string",
- "description": "文字转语音使用的声音。可用声音取决于为此应用配置的 TTS 提供商。使用[获取应用参数](/api-reference/应用配置/获取应用参数) → `text_to_speech.voice` 中的 `voice` 值作为默认值。"
+ "description": "用于文字转语音的语音。可用的语音取决于为此应用配置的 TTS 提供商。使用[获取应用参数](/api-reference/applications/get-app-parameters) → `text_to_speech.voice` 中的 `voice` 值作为默认值。"
},
"streaming": {
"type": "boolean",
@@ -2106,26 +2106,26 @@
"properties": {
"name": {
"type": "string",
- "description": "应用名称。"
+ "description": "应用程序名称。"
},
"description": {
"type": "string",
- "description": "应用描述。"
+ "description": "应用程序描述。"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
- "description": "应用标签。"
+ "description": "应用程序标签。"
},
"mode": {
"type": "string",
- "description": "应用模式。`completion` 为文本生成应用,`chat` 为基础对话应用,`agent-chat` 为 Agent 应用,`advanced-chat` 为对话流应用,`workflow` 为工作流应用。"
+ "description": "应用程序模式。`completion` 表示文本生成应用,`chat` 表示基础聊天应用,`agent-chat` 表示 Agent 应用,`advanced-chat` 表示 Chatflow 应用,`workflow` 表示工作流应用。"
},
"author_name": {
"type": "string",
- "description": "应用作者名称。"
+ "description": "应用程序作者名称。"
}
}
},
@@ -2134,14 +2134,14 @@
"properties": {
"opening_statement": {
"type": "string",
- "description": "开始时显示的开场白。"
+ "description": "开场白,在开始时显示。"
},
"suggested_questions": {
"type": "array",
"items": {
"type": "string"
},
- "description": "建议的初始问题列表。"
+ "description": "建议的开场问题列表。"
},
"suggested_questions_after_answer": {
"type": "object",
@@ -2149,7 +2149,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -2159,7 +2159,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -2169,11 +2169,11 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
},
"voice": {
"type": "string",
- "description": "TTS 的声音标识符。"
+ "description": "TTS 的语音标识符。"
},
"language": {
"type": "string",
@@ -2195,7 +2195,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -2205,7 +2205,7 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -2215,17 +2215,17 @@
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
"sensitive_word_avoidance": {
"type": "object",
- "description": "敏感词过滤配置。",
+ "description": "敏感词规避配置。",
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用此功能。"
+ "description": "此功能是否启用。"
}
}
},
@@ -2242,19 +2242,19 @@
"properties": {
"image": {
"type": "object",
- "description": "图片上传设置。",
+ "description": "图像上传设置。",
"properties": {
"enabled": {
"type": "boolean",
- "description": "是否启用图片上传。"
+ "description": "是否启用图像上传。"
},
"number_limits": {
"type": "integer",
- "description": "最大图片数量。"
+ "description": "最大图像数量。"
},
"detail": {
"type": "string",
- "description": "图片精细程度。"
+ "description": "图像详细级别。"
},
"transfer_methods": {
"type": "array",
@@ -2281,7 +2281,7 @@
},
"image_file_size_limit": {
"type": "integer",
- "description": "最大图片文件大小(MB)。"
+ "description": "最大图像文件大小(MB)。"
},
"audio_file_size_limit": {
"type": "integer",
@@ -2293,7 +2293,7 @@
},
"workflow_file_upload_limit": {
"type": "integer",
- "description": "工作流文件上传的最大文件数。"
+ "description": "工作流文件上传的最大文件数量。"
}
}
}
@@ -2314,7 +2314,7 @@
]
},
"TextInputControlWrapper": {
- "title": "Text Input",
+ "title": "文本输入",
"type": "object",
"properties": {
"text-input": {
@@ -2323,7 +2323,7 @@
}
},
"ParagraphControlWrapper": {
- "title": "Paragraph",
+ "title": "段落",
"type": "object",
"properties": {
"paragraph": {
@@ -2332,7 +2332,7 @@
}
},
"SelectControlWrapper": {
- "title": "Select",
+ "title": "下拉选择",
"type": "object",
"properties": {
"select": {
@@ -2349,7 +2349,7 @@
},
"variable": {
"type": "string",
- "description": "用作 `inputs` 对象中键的变量名。"
+ "description": "用作 `inputs` 对象中键的变量名称。"
},
"required": {
"type": "boolean",
@@ -2370,7 +2370,7 @@
},
"variable": {
"type": "string",
- "description": "用作 `inputs` 对象中键的变量名。"
+ "description": "用作 `inputs` 对象中键的变量名称。"
},
"required": {
"type": "boolean",
@@ -2391,11 +2391,11 @@
},
"variable": {
"type": "string",
- "description": "用作 `inputs` 对象中键的变量名。"
+ "description": "用作 `inputs` 对象中键的变量名称。"
},
"required": {
"type": "boolean",
- "description": "提交前是否必须做出选择。"
+ "description": "提交前是否必须进行选择。"
},
"default": {
"type": "string",
@@ -2418,7 +2418,7 @@
"additionalProperties": {
"oneOf": [
{
- "title": "Icon URL",
+ "title": "图标 URL",
"type": "string",
"format": "url",
"description": "图标的 URL。"
@@ -2433,7 +2433,7 @@
}
},
"ToolIconDetail": {
- "title": "Emoji Icon",
+ "title": "Emoji 图标",
"type": "object",
"description": "使用 emoji 的工具图标详情。",
"properties": {
@@ -2456,19 +2456,19 @@
},
"chat_color_theme": {
"type": "string",
- "description": "聊天主题颜色。"
+ "description": "聊天颜色主题。"
},
"chat_color_theme_inverted": {
"type": "boolean",
- "description": "聊天主题颜色是否反转。"
+ "description": "聊天颜色主题是否反转。"
},
"icon_type": {
"type": "string",
- "description": "使用的图标类型。`emoji` 为表情图标,`image` 为上传的图片图标。"
+ "description": "使用的图标类型。`emoji` 表示 emoji 图标,`image` 表示上传的图像图标。"
},
"icon": {
"type": "string",
- "description": "图标内容(表情或图片 ID)。"
+ "description": "图标内容(emoji 或图像 ID)。"
},
"icon_background": {
"type": "string",
@@ -2478,7 +2478,7 @@
"type": "string",
"format": "url",
"nullable": true,
- "description": "图标图片的 URL。"
+ "description": "图标图像的 URL。"
},
"description": {
"type": "string",
@@ -2514,28 +2514,28 @@
},
"tags": [
{
- "name": "文本生成",
- "description": "文本生成相关操作。"
+ "name": "Completions",
+ "description": "与文本生成和补全相关的操作。"
},
{
- "name": "文件操作",
- "description": "文件管理相关操作。"
+ "name": "Files",
+ "description": "与文件管理相关的操作。"
},
{
- "name": "终端用户",
- "description": "终端用户信息相关操作。"
+ "name": "End Users",
+ "description": "与终端用户信息相关的操作。"
},
{
- "name": "消息反馈",
- "description": "用户反馈相关操作。"
+ "name": "Feedback",
+ "description": "与用户反馈相关的操作。"
},
{
- "name": "语音与文字转换",
- "description": "语音转文字和文字转语音相关操作。"
+ "name": "TTS",
+ "description": "与文字转语音和语音转文字相关的操作。"
},
{
- "name": "应用配置",
- "description": "获取应用设置和信息的操作。"
+ "name": "Applications",
+ "description": "检索应用程序设置和信息的操作。"
}
]
-}
+}
\ No newline at end of file
diff --git a/zh/api-reference/openapi_knowledge.json b/zh/api-reference/openapi_knowledge.json
index eccb8ac22..ac555d5ca 100644
--- a/zh/api-reference/openapi_knowledge.json
+++ b/zh/api-reference/openapi_knowledge.json
@@ -2,13 +2,13 @@
"openapi": "3.0.1",
"info": {
"title": "知识库 API",
- "description": "用于管理知识库、文档、分段、元数据和标签的 API,包括创建、检索和配置操作。**注意:**单个知识库 API 密钥有权操作同一账户下所有可见的知识库。请注意数据安全。",
+ "description": "用于管理知识库、文档、分段、元数据和标签的 API,包括创建、检索和配置。**注意:** 单个知识库 API 密钥有权操作同一账户下所有可见的知识库。请注意数据安全。",
"version": "1.0.0"
},
"servers": [
{
"url": "{apiBaseUrl}",
- "description": "Knowledge API 的基础 URL。",
+ "description": "知识库 API 的基础 URL。",
"variables": {
"apiBaseUrl": {
"default": "https://api.dify.ai/v1",
@@ -24,42 +24,42 @@
],
"tags": [
{
- "name": "知识库",
+ "name": "Knowledge Bases",
"description": "用于管理知识库的操作,包括创建、配置和检索。"
},
{
- "name": "文档",
+ "name": "Documents",
"description": "用于在知识库中创建、更新和管理文档的操作。"
},
{
- "name": "分段",
- "description": "用于管理分段和子分段的操作。"
+ "name": "Chunks",
+ "description": "用于管理文档分段和子分段的操作。"
},
{
- "name": "元数据",
+ "name": "Metadata",
"description": "用于管理知识库元数据字段和文档元数据值的操作。"
},
{
- "name": "标签",
+ "name": "Tags",
"description": "用于管理知识库标签和标签绑定的操作。"
},
{
- "name": "模型",
- "description": "用于获取可用模型的操作。"
+ "name": "Models",
+ "description": "用于检索可用模型的操作。"
},
{
- "name": "知识流水线",
- "description": "用于管理和运行知识流水线的操作,包括数据源插件和流水线执行。"
+ "name": "Knowledge Pipeline",
+ "description": "用于管理和运行知识库流水线的操作,包括数据源插件和流水线执行。"
}
],
"paths": {
"/datasets": {
"post": {
"tags": [
- "知识库"
+ "Knowledge Bases"
],
"summary": "创建空知识库",
- "description": "创建新的空知识库。创建后,使用 [从文本创建文档](/api-reference/文档/从文本创建文档) 或 [从文件创建文档](/api-reference/文档/从文件创建文档) 添加文档。",
+ "description": "创建一个新的空知识库。创建后,使用[通过文本创建文档](/api-reference/documents/create-document-by-text)或[通过文件创建文档](/api-reference/documents/create-document-by-file)添加文档。",
"operationId": "createDataset",
"requestBody": {
"required": true,
@@ -100,7 +100,7 @@
"partial_members"
],
"default": "only_me",
- "description": "控制谁可以访问此知识库。`only_me` 仅限创建者,`all_team_members` 授权整个工作区访问,`partial_members` 授权指定成员访问。"
+ "description": "控制谁可以访问此知识库。`only_me` 限制为创建者,`all_team_members` 授权给整个工作区,`partial_members` 授权给指定成员。"
},
"provider": {
"type": "string",
@@ -109,15 +109,15 @@
"external"
],
"default": "vendor",
- "description": "`vendor` 为内部知识库,`external` 为外部知识库。"
+ "description": "`vendor` 用于内部知识库,`external` 用于外部知识库。"
},
"embedding_model": {
"type": "string",
- "description": "嵌入模型名称。使用 [获取可用模型](/api-reference/模型/获取可用模型) 中 `model_type=text-embedding` 返回的 `model` 字段值。"
+ "description": "嵌入模型名称。使用[获取可用模型](/api-reference/models/get-available-models)中 `model_type=text-embedding` 的 `model` 字段。"
},
"embedding_model_provider": {
"type": "string",
- "description": "嵌入模型供应商。使用 [获取可用模型](/api-reference/模型/获取可用模型) 中 `model_type=text-embedding` 返回的 `provider` 字段值。"
+ "description": "嵌入模型供应商。使用[获取可用模型](/api-reference/models/get-available-models)中 `model_type=text-embedding` 的 `provider` 字段。"
},
"retrieval_model": {
"$ref": "#/components/schemas/RetrievalModel",
@@ -146,7 +146,7 @@
},
"model_provider_name": {
"type": "string",
- "description": "摘要生成模型的提供商。"
+ "description": "摘要生成模型的供应商。"
},
"summary_prompt": {
"type": "string",
@@ -173,7 +173,7 @@
"value": {
"id": "c42e2a6e-40b3-4330-96f8-f1e4d768e8c9",
"name": "Product Documentation",
- "description": "产品 API 技术文档",
+ "description": "产品 API 的技术文档",
"provider": "vendor",
"permission": "only_me",
"data_source_type": null,
@@ -225,7 +225,7 @@
}
},
"409": {
- "description": "`dataset_name_duplicate` : 知识库名称已存在,请修改名称。",
+ "description": "`dataset_name_duplicate`:知识库名称已存在。请修改您的知识库名称。",
"content": {
"application/json": {
"examples": {
@@ -245,10 +245,10 @@
},
"get": {
"tags": [
- "知识库"
+ "Knowledge Bases"
],
"summary": "获取知识库列表",
- "description": "返回知识库的分页列表。支持按关键词和标签筛选。",
+ "description": "返回知识库的分页列表。支持按关键词和标签过滤。",
"operationId": "listDatasets",
"parameters": [
{
@@ -258,7 +258,7 @@
"type": "integer",
"default": 1
},
- "description": "要获取的页码。"
+ "description": "要检索的页码。"
},
{
"name": "limit",
@@ -267,7 +267,7 @@
"type": "integer",
"default": 20
},
- "description": "每页条目数。"
+ "description": "每页的项目数量。"
},
{
"name": "keyword",
@@ -275,7 +275,7 @@
"schema": {
"type": "string"
},
- "description": "按名称筛选的搜索关键词。"
+ "description": "按名称过滤的搜索关键词。"
},
{
"name": "include_all",
@@ -297,7 +297,7 @@
},
"style": "form",
"explode": true,
- "description": "用于筛选的标签 ID。"
+ "description": "用于过滤的标签 ID。"
}
],
"responses": {
@@ -317,15 +317,15 @@
},
"has_more": {
"type": "boolean",
- "description": "下一页是否还有更多项目。"
+ "description": "下一页是否存在更多项目。"
},
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数量。"
},
"total": {
"type": "integer",
- "description": "匹配条目的总数。"
+ "description": "匹配项目的总数。"
},
"page": {
"type": "integer",
@@ -341,7 +341,7 @@
{
"id": "c42e2a6e-40b3-4330-96f8-f1e4d768e8c9",
"name": "Product Documentation",
- "description": "产品 API 技术文档",
+ "description": "产品 API 的技术文档",
"provider": "vendor",
"permission": "only_me",
"data_source_type": null,
@@ -404,10 +404,10 @@
"/datasets/{dataset_id}": {
"get": {
"tags": [
- "知识库"
+ "Knowledge Bases"
],
- "summary": "获取知识库详情",
- "description": "获取指定知识库的详细信息,包括嵌入模型、检索配置和文档统计信息。",
+ "summary": "获取知识库",
+ "description": "检索特定知识库的详细信息,包括其嵌入模型、检索配置和文档统计信息。",
"operationId": "getDatasetDetail",
"parameters": [
{
@@ -435,7 +435,7 @@
"value": {
"id": "c42e2a6e-40b3-4330-96f8-f1e4d768e8c9",
"name": "Product Documentation",
- "description": "产品 API 技术文档",
+ "description": "产品 API 的技术文档",
"provider": "vendor",
"permission": "only_me",
"data_source_type": null,
@@ -487,7 +487,7 @@
}
},
"403": {
- "description": "`forbidden` : 访问此知识库的权限不足。",
+ "description": "`forbidden`:权限不足,无法访问此知识库。",
"content": {
"application/json": {
"examples": {
@@ -504,7 +504,7 @@
}
},
"404": {
- "description": "`not_found` : 未找到知识库。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -524,7 +524,7 @@
},
"patch": {
"tags": [
- "知识库"
+ "Knowledge Bases"
],
"summary": "更新知识库",
"description": "更新现有知识库的名称、描述、权限或检索设置。仅更新请求体中提供的字段。",
@@ -575,15 +575,15 @@
"all_team_members",
"partial_members"
],
- "description": "控制谁可以访问此知识库。`only_me` 仅限创建者,`all_team_members` 授权整个工作区访问,`partial_members` 授权指定成员访问。"
+ "description": "控制谁可以访问此知识库。`only_me` 限制为创建者,`all_team_members` 授权给整个工作区,`partial_members` 授权给指定成员。"
},
"embedding_model": {
"type": "string",
- "description": "嵌入模型名称。使用 [获取可用模型](/api-reference/模型/获取可用模型) 中 `model_type=text-embedding` 返回的 `model` 字段值。"
+ "description": "嵌入模型名称。使用[获取可用模型](/api-reference/models/get-available-models)中 `model_type=text-embedding` 的 `model` 字段。"
},
"embedding_model_provider": {
"type": "string",
- "description": "嵌入模型供应商。使用 [获取可用模型](/api-reference/模型/获取可用模型) 中 `model_type=text-embedding` 返回的 `provider` 字段值。"
+ "description": "嵌入模型供应商。使用[获取可用模型](/api-reference/models/get-available-models)中 `model_type=text-embedding` 的 `provider` 字段。"
},
"retrieval_model": {
"$ref": "#/components/schemas/RetrievalModel",
@@ -591,7 +591,7 @@
},
"partial_member_list": {
"type": "array",
- "description": "当 `permission` 为 `partial_members` 时有访问权限的团队成员列表。",
+ "description": "当 `permission` 为 `partial_members` 时,具有访问权限的团队成员列表。",
"items": {
"type": "object",
"properties": {
@@ -608,11 +608,11 @@
"properties": {
"top_k": {
"type": "integer",
- "description": "返回的最大结果数。"
+ "description": "返回结果的最大数量。"
},
"score_threshold": {
"type": "number",
- "description": "用于过滤结果的最低相关性分数阈值。"
+ "description": "用于过滤结果的最小相关性分数阈值。"
},
"score_threshold_enabled": {
"type": "boolean",
@@ -647,7 +647,7 @@
"value": {
"id": "c42e2a6e-40b3-4330-96f8-f1e4d768e8c9",
"name": "Product Documentation",
- "description": "产品 API 技术文档",
+ "description": "产品 API 的技术文档",
"provider": "vendor",
"permission": "only_me",
"data_source_type": null,
@@ -699,7 +699,7 @@
}
},
"403": {
- "description": "`forbidden` : 访问此知识库的权限不足。",
+ "description": "`forbidden`:权限不足,无法访问此知识库。",
"content": {
"application/json": {
"examples": {
@@ -716,7 +716,7 @@
}
},
"404": {
- "description": "`not_found` : 未找到知识库。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -736,10 +736,10 @@
},
"delete": {
"tags": [
- "知识库"
+ "Knowledge Bases"
],
"summary": "删除知识库",
- "description": "永久删除知识库及其所有文档。该知识库不能被任何应用正在使用。",
+ "description": "永久删除知识库及其所有文档。该知识库不能被任何应用使用中。",
"operationId": "deleteDataset",
"parameters": [
{
@@ -755,10 +755,10 @@
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
},
"404": {
- "description": "`not_found` : 未找到知识库。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -775,7 +775,7 @@
}
},
"409": {
- "description": "`dataset_in_use` : 该知识库正在被一些应用使用。请先从应用中移除后再删除。",
+ "description": "`dataset_in_use`:该知识库正在被某些应用使用。请在删除前从应用中移除它。",
"content": {
"application/json": {
"examples": {
@@ -797,10 +797,10 @@
"/datasets/{dataset_id}/document/create-by-text": {
"post": {
"tags": [
- "文档"
+ "Documents"
],
- "summary": "从文本创建文档",
- "description": "通过纯文本内容创建文档。文档将异步处理——使用返回的 `batch` ID 配合 [获取文档嵌入状态(进度)](/api-reference/文档/获取文档嵌入状态(进度)) 跟踪进度。",
+ "summary": "通过文本创建文档",
+ "description": "从原始文本内容创建文档。文档以异步方式处理 — 使用返回的 `batch` ID 配合[获取文档索引状态](/api-reference/documents/get-document-indexing-status)来跟踪进度。",
"operationId": "createDocumentFromText",
"parameters": [
{
@@ -839,7 +839,7 @@
"high_quality",
"economy"
],
- "description": "向知识库添加首个文档时必填。后续文档如果省略此字段,将继承知识库的索引方式。`high_quality` 使用嵌入模型进行精确搜索;`economy` 使用基于关键词的索引。"
+ "description": "向知识库添加第一个文档时必需。如果省略,后续文档将继承知识库的索引方法。`high_quality` 使用嵌入模型进行精确搜索;`economy` 使用基于关键词的索引。"
},
"doc_form": {
"type": "string",
@@ -849,7 +849,7 @@
"qa_model"
],
"default": "text_model",
- "description": "`text_model` 为标准文本分段,`hierarchical_model` 为父子分段结构,`qa_model` 为问答对提取。"
+ "description": "`text_model` 用于标准文本分段,`hierarchical_model` 用于父子分段结构,`qa_model` 用于问答对提取。"
},
"doc_language": {
"type": "string",
@@ -858,7 +858,7 @@
},
"process_rule": {
"type": "object",
- "description": "分块处理规则。",
+ "description": "分段处理规则。",
"required": [
"mode"
],
@@ -870,7 +870,7 @@
"custom",
"hierarchical"
],
- "description": "处理模式。`automatic` 使用内置规则,`custom` 允许手动配置,`hierarchical` 启用父子分段结构(配合 `doc_form: hierarchical_model` 使用)。"
+ "description": "处理模式。`automatic` 使用内置规则,`custom` 允许手动配置,`hierarchical` 启用父子分段结构(与 `doc_form: hierarchical_model` 配合使用)。"
},
"rules": {
"type": "object",
@@ -891,7 +891,7 @@
},
"enabled": {
"type": "boolean",
- "description": "该预处理规则是否启用。"
+ "description": "是否启用此预处理规则。"
}
}
}
@@ -902,16 +902,16 @@
"separator": {
"type": "string",
"default": "\n",
- "description": "用于拆分文本的自定义分隔符。"
+ "description": "用于分割文本的自定义分隔符。"
},
"max_tokens": {
"type": "integer",
- "description": "每个分段的最大令牌数。"
+ "description": "每个分段的最大 token 数量。"
},
"chunk_overlap": {
"type": "integer",
"default": 0,
- "description": "分段之间的令牌重叠数。"
+ "description": "分段之间的 token 重叠数量。"
}
}
}
@@ -925,11 +925,11 @@
},
"embedding_model": {
"type": "string",
- "description": "嵌入模型名称。使用 [获取可用模型](/api-reference/模型/获取可用模型) 中 `model_type=text-embedding` 返回的 `model` 字段值。"
+ "description": "嵌入模型名称。使用[获取可用模型](/api-reference/models/get-available-models)中 `model_type=text-embedding` 的 `model` 字段。"
},
"embedding_model_provider": {
"type": "string",
- "description": "嵌入模型供应商。使用 [获取可用模型](/api-reference/模型/获取可用模型) 中 `model_type=text-embedding` 返回的 `provider` 字段值。"
+ "description": "嵌入模型供应商。使用[获取可用模型](/api-reference/models/get-available-models)中 `model_type=text-embedding` 的 `provider` 字段。"
},
"original_document_id": {
"type": "string",
@@ -1007,7 +1007,7 @@
}
},
"400": {
- "description": "- `provider_not_initialize` : 未找到有效的模型提供商凭据。请前往设置 -> 模型提供商完成凭据配置。\n- `invalid_param` : 知识库不存在。/ indexing_technique 为必填项。/ doc_form 无效(必须为 `text_model`、`hierarchical_model` 或 `qa_model`)。",
+ "description": "- `provider_not_initialize`:未找到有效的模型供应商凭证。请前往设置 -> 模型供应商完成凭证配置。\n- `invalid_param`:知识库不存在。/ indexing_technique 是必需的。/ 无效的 doc_form(必须是 `text_model`、`hierarchical_model` 或 `qa_model`)。",
"content": {
"application/json": {
"examples": {
@@ -1045,10 +1045,10 @@
"/datasets/{dataset_id}/document/create-by-file": {
"post": {
"tags": [
- "文档"
+ "Documents"
],
- "summary": "从文件创建文档",
- "description": "通过上传文件创建文档。支持常见文档格式(PDF、TXT、DOCX 等)。处理过程为异步——使用返回的 `batch` ID 配合 [获取文档嵌入状态(进度)](/api-reference/文档/获取文档嵌入状态(进度)) 跟踪进度。",
+ "summary": "通过文件创建文档",
+ "description": "通过上传文件创建文档。支持常见文档格式(PDF、TXT、DOCX 等)。处理是异步的 — 使用返回的 `batch` ID 配合[获取文档索引状态](/api-reference/documents/get-document-indexing-status)来跟踪进度。",
"operationId": "createDocumentFromFile",
"parameters": [
{
@@ -1079,7 +1079,7 @@
},
"data": {
"type": "string",
- "description": "包含配置信息的 JSON 字符串。接受与 [从文本创建文档](/api-reference/文档/从文本创建文档) 相同的字段(`indexing_technique`、`doc_form`、`doc_language`、`process_rule`、`retrieval_model`、`embedding_model`、`embedding_model_provider`),但不包括 `name` 和 `text`。",
+ "description": "包含配置的 JSON 字符串。接受与[通过文本创建文档](/api-reference/documents/create-document-by-text)相同的字段(`indexing_technique`、`doc_form`、`doc_language`、`process_rule`、`retrieval_model`、`embedding_model`、`embedding_model_provider`),除了 `name` 和 `text`。",
"example": "{\"indexing_technique\":\"high_quality\",\"doc_form\":\"text_model\",\"doc_language\":\"English\",\"process_rule\":{\"mode\":\"automatic\"}}"
}
}
@@ -1154,7 +1154,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : 请上传文件。\n- `too_many_files` : 仅允许上传一个文件。\n- `filename_not_exists_error` : 指定的文件名不存在。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。请前往设置 -> 模型提供商完成凭据配置。\n- `invalid_param` : 知识库不存在、不支持外部数据集、文件过大、不支持的文件类型、缺少必填字段或 doc_form 无效(必须为 `text_model`、`hierarchical_model` 或 `qa_model`)。",
+ "description": "- `no_file_uploaded`:请上传您的文件。\n- `too_many_files`:只允许上传一个文件。\n- `filename_not_exists_error`:指定的文件名不存在。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。请前往设置 -> 模型供应商完成凭证配置。\n- `invalid_param`:知识库不存在、不支持外部数据集、文件过大、不支持的文件类型、缺少必需字段,或无效的 doc_form(必须是 `text_model`、`hierarchical_model` 或 `qa_model`)。",
"content": {
"application/json": {
"examples": {
@@ -1248,10 +1248,10 @@
"/datasets/{dataset_id}/documents": {
"get": {
"tags": [
- "文档"
+ "Documents"
],
- "summary": "获取知识库的文档列表",
- "description": "返回知识库中的文档分页列表。支持按关键词和索引状态进行筛选。",
+ "summary": "获取文档列表",
+ "description": "返回知识库中文档的分页列表。支持按关键词和索引状态过滤。",
"operationId": "listDocuments",
"parameters": [
{
@@ -1271,7 +1271,7 @@
"type": "integer",
"default": 1
},
- "description": "要获取的页码。"
+ "description": "要检索的页码。"
},
{
"name": "limit",
@@ -1288,7 +1288,7 @@
"schema": {
"type": "string"
},
- "description": "按文档名称筛选的搜索关键词。"
+ "description": "按文档名称过滤的搜索关键词。"
},
{
"name": "status",
@@ -1305,7 +1305,7 @@
"archived"
]
},
- "description": "按显示状态筛选。"
+ "description": "按显示状态过滤。"
}
],
"responses": {
@@ -1325,15 +1325,15 @@
},
"has_more": {
"type": "boolean",
- "description": "下一页是否还有更多项目。"
+ "description": "下一页是否存在更多项目。"
},
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数量。"
},
"total": {
"type": "integer",
- "description": "匹配条目的总数。"
+ "description": "匹配项目的总数。"
},
"page": {
"type": "integer",
@@ -1396,7 +1396,7 @@
}
},
"404": {
- "description": "`not_found` : 知识库未找到。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -1418,10 +1418,10 @@
"/datasets/{dataset_id}/documents/{document_id}": {
"get": {
"tags": [
- "文档"
+ "Documents"
],
- "summary": "获取文档详情",
- "description": "获取指定文档的详细信息,包括索引状态、元数据和处理统计信息。",
+ "summary": "获取文档",
+ "description": "检索特定文档的详细信息,包括其索引状态、元数据和处理统计信息。",
"operationId": "getDocumentDetail",
"parameters": [
{
@@ -1442,7 +1442,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "metadata",
@@ -1456,12 +1456,12 @@
],
"default": "all"
},
- "description": "`all` 返回所有字段(包括元数据)。`only` 仅返回 `id`、`doc_type` 和 `doc_metadata`。`without` 返回除 `doc_metadata` 外的所有字段。"
+ "description": "`all` 返回包括元数据在内的所有字段。`only` 仅返回 `id`、`doc_type` 和 `doc_metadata`。`without` 返回除 `doc_metadata` 之外的所有字段。"
}
],
"responses": {
"200": {
- "description": "文档详情。响应结构根据 `metadata` 查询参数的不同而变化。当 `metadata` 为 `only` 时,仅返回 `id`、`doc_type` 和 `doc_metadata`。当 `metadata` 为 `without` 时,省略 `doc_type` 和 `doc_metadata`。",
+ "description": "文档详情。响应结构根据 `metadata` 查询参数而变化。当 `metadata` 为 `only` 时,仅返回 `id`、`doc_type` 和 `doc_metadata`。当 `metadata` 为 `without` 时,省略 `doc_type` 和 `doc_metadata`。",
"content": {
"application/json": {
"schema": {
@@ -1477,7 +1477,7 @@
},
"data_source_type": {
"type": "string",
- "description": "文档的上传方式。文件上传为 `upload_file`,Notion 导入为 `notion_import`。"
+ "description": "文档的上传方式。`upload_file` 表示文件上传,`notion_import` 表示 Notion 导入。"
},
"data_source_info": {
"type": "object",
@@ -1485,7 +1485,7 @@
},
"dataset_process_rule_id": {
"type": "string",
- "description": "应用于该文档的处理规则 ID。"
+ "description": "应用于此文档的处理规则 ID。"
},
"dataset_process_rule": {
"type": "object",
@@ -1501,11 +1501,11 @@
},
"created_from": {
"type": "string",
- "description": "文档来源。通过 API 创建时为 `api`,通过 UI 创建时为 `web`。"
+ "description": "文档来源。`api` 表示 API 创建,`web` 表示 UI 创建。"
},
"created_by": {
"type": "string",
- "description": "创建该文档的用户 ID。"
+ "description": "创建文档的用户 ID。"
},
"created_at": {
"type": "number",
@@ -1513,7 +1513,7 @@
},
"tokens": {
"type": "integer",
- "description": "文档中的令牌数。"
+ "description": "文档中的 token 数量。"
},
"indexing_status": {
"type": "string",
@@ -1522,21 +1522,21 @@
"error": {
"type": "string",
"nullable": true,
- "description": "索引失败时的错误消息,否则为 `null`。"
+ "description": "如果索引失败则为错误消息,否则为 `null`。"
},
"enabled": {
"type": "boolean",
- "description": "该文档是否启用检索。"
+ "description": "文档是否启用检索。"
},
"disabled_at": {
"type": "number",
"nullable": true,
- "description": "文档被禁用的 Unix 时间戳,启用时为 `null`。"
+ "description": "文档被禁用时的 Unix 时间戳,如果已启用则为 `null`。"
},
"disabled_by": {
"type": "string",
"nullable": true,
- "description": "禁用该文档的用户 ID,启用时为 `null`。"
+ "description": "禁用文档的用户 ID,如果已启用则为 `null`。"
},
"archived": {
"type": "boolean",
@@ -1544,7 +1544,7 @@
},
"display_status": {
"type": "string",
- "description": "适合 UI 显示的索引状态。"
+ "description": "用于 UI 的显示友好索引状态。"
},
"word_count": {
"type": "integer",
@@ -1552,11 +1552,11 @@
},
"hit_count": {
"type": "integer",
- "description": "该文档被检索的次数。"
+ "description": "此文档被检索命中的次数。"
},
"doc_form": {
"type": "string",
- "description": "文档分块模式。`text_model` 表示标准文本,`hierarchical_model` 表示父子结构,`qa_model` 表示问答对。"
+ "description": "文档分段模式。`text_model` 用于标准文本,`hierarchical_model` 用于父子模式,`qa_model` 用于问答对。"
},
"doc_language": {
"type": "string",
@@ -1565,10 +1565,11 @@
"doc_type": {
"type": "string",
"nullable": true,
- "description": "文档类型分类,未设置时为 `null`。"
+ "description": "文档类型分类,如果未设置则为 `null`。"
},
"doc_metadata": {
"type": "array",
+ "description": "此文档的自定义元数据键值对。",
"items": {
"type": "object",
"properties": {
@@ -1589,27 +1590,26 @@
"description": "此文档的元数据字段值。"
}
}
- },
- "description": "此文档的自定义元数据键值对。"
+ }
},
"completed_at": {
"type": "number",
"nullable": true,
- "description": "处理完成的 Unix 时间戳,尚未完成时为 `null`。"
+ "description": "处理完成时的 Unix 时间戳,如果尚未完成则为 `null`。"
},
"updated_at": {
"type": "number",
"nullable": true,
- "description": "最后更新的 Unix 时间戳,从未更新时为 `null`。"
+ "description": "最后更新的 Unix 时间戳,如果从未更新则为 `null`。"
},
"indexing_latency": {
"type": "number",
"nullable": true,
- "description": "索引耗时(秒),未完成时为 `null`。"
+ "description": "索引所花费的时间(秒),如果未完成则为 `null`。"
},
"segment_count": {
"type": "integer",
- "description": "文档中的分段数。"
+ "description": "文档中的分段数量。"
},
"average_segment_length": {
"type": "number",
@@ -1618,11 +1618,11 @@
"summary_index_status": {
"type": "string",
"nullable": true,
- "description": "摘要索引的状态,未启用摘要索引时为 `null`。"
+ "description": "摘要索引的状态,如果未启用摘要索引则为 `null`。"
},
"need_summary": {
"type": "boolean",
- "description": "该文档是否需要生成摘要。"
+ "description": "文档是否需要生成摘要。"
}
}
},
@@ -1684,7 +1684,7 @@
}
},
"400": {
- "description": "`invalid_metadata` : 指定键的元数据值无效。",
+ "description": "`invalid_metadata`:指定键的元数据值无效。",
"content": {
"application/json": {
"examples": {
@@ -1701,7 +1701,7 @@
}
},
"403": {
- "description": "`forbidden` : 没有权限。",
+ "description": "`forbidden`:无权限。",
"content": {
"application/json": {
"examples": {
@@ -1718,7 +1718,7 @@
}
},
"404": {
- "description": "`not_found` : 未找到文档。",
+ "description": "`not_found`:未找到文档。",
"content": {
"application/json": {
"examples": {
@@ -1738,7 +1738,7 @@
},
"delete": {
"tags": [
- "文档"
+ "Documents"
],
"summary": "删除文档",
"description": "从知识库中永久删除文档及其所有分段。",
@@ -1762,15 +1762,15 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
}
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
},
"400": {
- "description": "`document_indexing` : 索引期间无法删除文档。",
+ "description": "`document_indexing`:索引期间无法删除文档。",
"content": {
"application/json": {
"examples": {
@@ -1787,7 +1787,7 @@
}
},
"403": {
- "description": "`archived_document_immutable` : 已归档的文档不可编辑。",
+ "description": "`archived_document_immutable`:已归档的文档不可编辑。",
"content": {
"application/json": {
"examples": {
@@ -1804,7 +1804,7 @@
}
},
"404": {
- "description": "`not_found` : 文档不存在。",
+ "description": "`not_found`:文档不存在。",
"content": {
"application/json": {
"examples": {
@@ -1826,11 +1826,11 @@
"/datasets/{dataset_id}/documents/{document_id}/download": {
"get": {
"tags": [
- "文档"
+ "Documents"
],
"summary": "下载文档",
"description": "获取文档原始上传文件的签名下载 URL。",
- "operationId": "downloadDocumentZh",
+ "operationId": "downloadDocument",
"parameters": [
{
"name": "dataset_id",
@@ -1850,7 +1850,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
}
],
"responses": {
@@ -1879,7 +1879,7 @@
}
},
"403": {
- "description": "`forbidden` : 没有权限访问此文档。",
+ "description": "`forbidden`:无权访问此文档。",
"content": {
"application/json": {
"examples": {
@@ -1896,7 +1896,7 @@
}
},
"404": {
- "description": "`not_found` : 未找到文档。",
+ "description": "`not_found`:未找到文档。",
"content": {
"application/json": {
"examples": {
@@ -1918,10 +1918,10 @@
"/datasets/{dataset_id}/documents/{batch}/indexing-status": {
"get": {
"tags": [
- "文档"
+ "Documents"
],
- "summary": "获取文档嵌入状态(进度)",
- "description": "检查批量文档的索引进度。返回每个文档的当前处理阶段和分段完成计数。请轮询此接口直到 `indexing_status` 变为 `completed` 或 `error`。状态按以下顺序推进:`waiting` → `parsing` → `cleaning` → `splitting` → `indexing` → `completed`。",
+ "summary": "获取文档索引状态",
+ "description": "检查批次中文档的索引进度。返回每个文档的当前处理阶段和分段完成计数。轮询此端点直到 `indexing_status` 达到 `completed` 或 `error`。状态按以下顺序进行:`waiting` → `parsing` → `cleaning` → `splitting` → `indexing` → `completed`。",
"operationId": "getDocumentIndexingStatus",
"parameters": [
{
@@ -1941,7 +1941,7 @@
"schema": {
"type": "string"
},
- "description": "创建文档时返回的批次 ID。"
+ "description": "从文档创建返回的批次 ID。"
}
],
"responses": {
@@ -1954,6 +1954,7 @@
"properties": {
"data": {
"type": "array",
+ "description": "索引状态条目列表。",
"items": {
"type": "object",
"properties": {
@@ -1967,50 +1968,49 @@
},
"processing_started_at": {
"type": "number",
- "description": "处理开始的 Unix 时间戳。"
+ "description": "处理开始时的 Unix 时间戳。"
},
"parsing_completed_at": {
"type": "number",
- "description": "解析完成的 Unix 时间戳。"
+ "description": "解析完成时的 Unix 时间戳。"
},
"cleaning_completed_at": {
"type": "number",
- "description": "清洗完成的 Unix 时间戳。"
+ "description": "清洗完成时的 Unix 时间戳。"
},
"splitting_completed_at": {
"type": "number",
- "description": "拆分完成的 Unix 时间戳。"
+ "description": "分割完成时的 Unix 时间戳。"
},
"completed_at": {
"type": "number",
- "description": "索引完成的 Unix 时间戳。"
+ "description": "索引完成时的 Unix 时间戳。"
},
"paused_at": {
"type": "number",
"nullable": true,
- "description": "索引暂停的时间戳。未暂停时为 `null`。"
+ "description": "索引暂停时的时间戳。如果未暂停则为 `null`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "索引失败时的错误信息。无错误时为 `null`。"
+ "description": "如果索引失败则为错误消息。如果无错误则为 `null`。"
},
"stopped_at": {
"type": "number",
"nullable": true,
- "description": "索引停止的时间戳。未停止时为 `null`。"
+ "description": "索引停止时的时间戳。如果未停止则为 `null`。"
},
"completed_segments": {
"type": "integer",
- "description": "已索引的分段数。"
+ "description": "已完成索引的分段数量。"
},
"total_segments": {
"type": "integer",
- "description": "待索引的分段总数。"
+ "description": "需要索引的分段总数。"
}
}
- },
- "description": "索引状态条目列表。"
+ }
}
}
},
@@ -2041,7 +2041,7 @@
}
},
"404": {
- "description": "`not_found` : 知识库未找到。/ 文档未找到。",
+ "description": "`not_found`:未找到知识库。/ 未找到文档。",
"content": {
"application/json": {
"examples": {
@@ -2071,10 +2071,10 @@
"/datasets/{dataset_id}/documents/{document_id}/update-by-text": {
"post": {
"tags": [
- "文档"
+ "Documents"
],
- "summary": "用文本更新文档",
- "description": "更新现有文档的文本内容、名称或处理配置。内容变更时将重新触发索引——使用返回的 `batch` ID 配合 [获取文档嵌入状态(进度)](/api-reference/文档/获取文档嵌入状态(进度)) 跟踪进度。",
+ "summary": "通过文本更新文档",
+ "description": "更新现有文档的文本内容、名称或处理配置。如果内容更改将重新触发索引 — 使用返回的 `batch` ID 配合[获取文档索引状态](/api-reference/documents/get-document-indexing-status)来跟踪进度。",
"operationId": "updateDocumentByText",
"parameters": [
{
@@ -2095,7 +2095,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
}
],
"requestBody": {
@@ -2107,7 +2107,7 @@
"properties": {
"name": {
"type": "string",
- "description": "文档名称。当提供 `text` 时必填。"
+ "description": "文档名称。当提供 `text` 时为必需。"
},
"text": {
"type": "string",
@@ -2115,7 +2115,7 @@
},
"process_rule": {
"type": "object",
- "description": "分块处理规则。",
+ "description": "分段处理规则。",
"required": [
"mode"
],
@@ -2127,7 +2127,7 @@
"custom",
"hierarchical"
],
- "description": "处理模式。`automatic` 使用内置规则,`custom` 允许手动配置,`hierarchical` 启用父子分段结构(配合 `doc_form: hierarchical_model` 使用)。"
+ "description": "处理模式。`automatic` 使用内置规则,`custom` 允许手动配置,`hierarchical` 启用父子分段结构(与 `doc_form: hierarchical_model` 配合使用)。"
},
"rules": {
"type": "object",
@@ -2148,7 +2148,7 @@
},
"enabled": {
"type": "boolean",
- "description": "该预处理规则是否启用。"
+ "description": "是否启用此预处理规则。"
}
}
}
@@ -2159,16 +2159,16 @@
"separator": {
"type": "string",
"default": "\n",
- "description": "用于拆分文本的自定义分隔符。"
+ "description": "用于分割文本的自定义分隔符。"
},
"max_tokens": {
"type": "integer",
- "description": "每个分段的最大令牌数。"
+ "description": "每个分段的最大 token 数量。"
},
"chunk_overlap": {
"type": "integer",
"default": 0,
- "description": "分段之间的令牌重叠数。"
+ "description": "分段之间的 token 重叠数量。"
}
}
}
@@ -2184,7 +2184,7 @@
"qa_model"
],
"default": "text_model",
- "description": "`text_model` 为标准文本分段,`hierarchical_model` 为父子分段结构,`qa_model` 为问答对提取。"
+ "description": "`text_model` 用于标准文本分段,`hierarchical_model` 用于父子分段结构,`qa_model` 用于问答对提取。"
},
"doc_language": {
"type": "string",
@@ -2267,7 +2267,7 @@
}
},
"400": {
- "description": "- `provider_not_initialize` : 未找到有效的模型提供商凭据。请前往设置 -> 模型提供商完成凭据配置。\n- `invalid_param` : 知识库不存在、提供文本时 name 为必填项或 doc_form 无效(必须为 `text_model`、`hierarchical_model` 或 `qa_model`)。",
+ "description": "- `provider_not_initialize`:未找到有效的模型供应商凭证。请前往设置 -> 模型供应商完成凭证配置。\n- `invalid_param`:知识库不存在、提供 text 时 name 是必需的,或无效的 doc_form(必须是 `text_model`、`hierarchical_model` 或 `qa_model`)。",
"content": {
"application/json": {
"examples": {
@@ -2305,10 +2305,10 @@
"/datasets/{dataset_id}/documents/{document_id}/update-by-file": {
"post": {
"tags": [
- "文档"
+ "Documents"
],
- "summary": "用文件更新文档",
- "description": "通过上传新文件更新现有文档。将重新触发索引——使用返回的 `batch` ID 配合 [获取文档嵌入状态(进度)](/api-reference/文档/获取文档嵌入状态(进度)) 跟踪进度。",
+ "summary": "通过文件更新文档",
+ "description": "通过上传新文件更新现有文档。将重新触发索引 — 使用返回的 `batch` ID 配合[获取文档索引状态](/api-reference/documents/get-document-indexing-status)来跟踪进度。",
"operationId": "updateDocumentByFile",
"parameters": [
{
@@ -2329,7 +2329,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
}
],
"requestBody": {
@@ -2346,7 +2346,7 @@
},
"data": {
"type": "string",
- "description": "包含配置信息的 JSON 字符串。接受与 [从文本创建文档](/api-reference/文档/从文本创建文档) 相同的字段(`indexing_technique`、`doc_form`、`doc_language`、`process_rule`、`retrieval_model`、`embedding_model`、`embedding_model_provider`),但不包括 `name` 和 `text`。",
+ "description": "包含配置的 JSON 字符串。接受与[通过文本创建文档](/api-reference/documents/create-document-by-text)相同的字段(`indexing_technique`、`doc_form`、`doc_language`、`process_rule`、`retrieval_model`、`embedding_model`、`embedding_model_provider`),除了 `name` 和 `text`。",
"example": "{\"indexing_technique\":\"high_quality\",\"doc_form\":\"text_model\",\"doc_language\":\"English\",\"process_rule\":{\"mode\":\"automatic\"}}"
}
}
@@ -2421,7 +2421,7 @@
}
},
"400": {
- "description": "- `too_many_files` : 仅允许上传一个文件。\n- `filename_not_exists_error` : 指定的文件名不存在。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。请前往设置 -> 模型提供商完成凭据配置。\n- `invalid_param` : 知识库不存在、不支持外部数据集、文件过大、不支持的文件类型或 doc_form 无效(必须为 `text_model`、`hierarchical_model` 或 `qa_model`)。",
+ "description": "- `too_many_files`:只允许上传一个文件。\n- `filename_not_exists_error`:指定的文件名不存在。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。请前往设置 -> 模型供应商完成凭证配置。\n- `invalid_param`:知识库不存在、不支持外部数据集、文件过大、不支持的文件类型,或无效的 doc_form(必须是 `text_model`、`hierarchical_model` 或 `qa_model`)。",
"content": {
"application/json": {
"examples": {
@@ -2491,11 +2491,11 @@
"/datasets/{dataset_id}/documents/download-zip": {
"post": {
"tags": [
- "文档"
+ "Documents"
],
- "summary": "批量下载文档(ZIP)",
- "description": "将多个上传文件文档下载为单个 ZIP 压缩包。最多接受 `100` 个文档 ID。",
- "operationId": "downloadDocumentsZipZh",
+ "summary": "下载文档为 ZIP",
+ "description": "将多个上传文件的文档下载为单个 ZIP 压缩包。最多接受 `100` 个文档 ID。",
+ "operationId": "downloadDocumentsZip",
"parameters": [
{
"name": "dataset_id",
@@ -2535,7 +2535,7 @@
},
"responses": {
"200": {
- "description": "包含所请求文档的 ZIP 压缩包。",
+ "description": "包含请求文档的 ZIP 压缩包。",
"content": {
"application/zip": {
"schema": {
@@ -2547,7 +2547,7 @@
}
},
"403": {
- "description": "`forbidden` : 权限不足。",
+ "description": "`forbidden`:权限不足。",
"content": {
"application/json": {
"examples": {
@@ -2564,7 +2564,7 @@
}
},
"404": {
- "description": "`not_found` : 文档或知识库未找到。",
+ "description": "`not_found`:未找到文档或知识库。",
"content": {
"application/json": {
"examples": {
@@ -2586,7 +2586,7 @@
"/datasets/{dataset_id}/documents/status/{action}": {
"patch": {
"tags": [
- "文档"
+ "Documents"
],
"summary": "批量更新文档状态",
"description": "批量启用、禁用、归档或取消归档多个文档。",
@@ -2615,7 +2615,7 @@
"un_archive"
]
},
- "description": "`enable` 启用,`disable` 停用,`archive` 归档,`un_archive` 从归档中恢复。"
+ "description": "`enable` 激活,`disable` 停用,`archive` 归档,`un_archive` 从归档恢复。"
}
],
"requestBody": {
@@ -2666,7 +2666,7 @@
}
},
"400": {
- "description": "`invalid_action` : 无效的操作。",
+ "description": "`invalid_action`:无效操作。",
"content": {
"application/json": {
"examples": {
@@ -2683,7 +2683,7 @@
}
},
"403": {
- "description": "`forbidden` : 权限不足。",
+ "description": "`forbidden`:权限不足。",
"content": {
"application/json": {
"examples": {
@@ -2700,7 +2700,7 @@
}
},
"404": {
- "description": "`not_found` : 知识库未找到。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -2722,10 +2722,10 @@
"/datasets/{dataset_id}/documents/{document_id}/segments": {
"post": {
"tags": [
- "分段"
+ "Chunks"
],
- "summary": "向文档添加分段",
- "description": "在文档中创建一个或多个分段。每个分段可以包含可选的关键词和答案字段(适用于 QA 模式文档)。",
+ "summary": "创建分段",
+ "description": "在文档中创建一个或多个分段。每个分段可以包含可选的关键词和答案字段(用于问答模式文档)。",
"operationId": "createSegments",
"parameters": [
{
@@ -2746,7 +2746,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
}
],
"requestBody": {
@@ -2770,7 +2770,7 @@
},
"answer": {
"type": "string",
- "description": "QA 模式的回答内容。"
+ "description": "问答模式的答案内容。"
},
"keywords": {
"type": "array",
@@ -2805,14 +2805,14 @@
"properties": {
"data": {
"type": "array",
+ "description": "已创建的分段列表。",
"items": {
"$ref": "#/components/schemas/Segment"
- },
- "description": "已创建的分段列表。"
+ }
},
"doc_form": {
"type": "string",
- "description": "该文档使用的分块模式。"
+ "description": "此文档使用的文档分段模式。"
}
}
},
@@ -2863,7 +2863,7 @@
}
},
"404": {
- "description": "`not_found` : 文档未完成或已禁用。",
+ "description": "`not_found`:文档未完成或已禁用。",
"content": {
"application/json": {
"examples": {
@@ -2891,10 +2891,10 @@
},
"get": {
"tags": [
- "分段"
+ "Chunks"
],
- "summary": "从文档获取分段",
- "description": "返回文档内分段的分页列表。支持按关键词和状态筛选。",
+ "summary": "获取分段列表",
+ "description": "返回文档中分段的分页列表。支持按关键词和状态过滤。",
"operationId": "listSegments",
"parameters": [
{
@@ -2915,7 +2915,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "page",
@@ -2924,7 +2924,7 @@
"type": "integer",
"default": 1
},
- "description": "要获取的页码。"
+ "description": "要检索的页码。"
},
{
"name": "limit",
@@ -2946,7 +2946,7 @@
},
"style": "form",
"explode": true,
- "description": "按索引状态筛选分段,例如 `completed`、`indexing`、`error`。"
+ "description": "按索引状态过滤分段,例如 `completed`、`indexing`、`error`。"
},
{
"name": "keyword",
@@ -2967,26 +2967,26 @@
"properties": {
"data": {
"type": "array",
+ "description": "分段列表。",
"items": {
"$ref": "#/components/schemas/Segment"
- },
- "description": "分段列表。"
+ }
},
"doc_form": {
"type": "string",
- "description": "该文档使用的分块模式。"
+ "description": "此文档使用的文档分段模式。"
},
"total": {
"type": "integer",
- "description": "匹配的分段总数。"
+ "description": "匹配分段的总数。"
},
"has_more": {
"type": "boolean",
- "description": "下一页是否还有更多项目。"
+ "description": "下一页是否存在更多项目。"
},
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数量。"
},
"page": {
"type": "integer",
@@ -3050,10 +3050,10 @@
"/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}": {
"get": {
"tags": [
- "分段"
+ "Chunks"
],
- "summary": "获取文档中的分段详情",
- "description": "获取指定分段的详细信息,包括内容、关键词和索引状态。",
+ "summary": "获取分段",
+ "description": "检索特定分段的详细信息,包括其内容、关键词和索引状态。",
"operationId": "getSegmentDetail",
"parameters": [
{
@@ -3074,7 +3074,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "segment_id",
@@ -3084,7 +3084,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "分段 ID。"
}
],
"responses": {
@@ -3100,7 +3100,7 @@
},
"doc_form": {
"type": "string",
- "description": "该文档使用的分块模式。"
+ "description": "此文档使用的文档分段模式。"
}
}
},
@@ -3152,10 +3152,10 @@
},
"post": {
"tags": [
- "分段"
+ "Chunks"
],
- "summary": "更新文档中的分段",
- "description": "更新分段的内容、关键词或回答。修改后的分段将重新触发索引。",
+ "summary": "更新分段",
+ "description": "更新分段的内容、关键词或答案。重新触发已修改分段的索引。",
"operationId": "updateSegment",
"parameters": [
{
@@ -3176,7 +3176,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "segment_id",
@@ -3186,7 +3186,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "分段 ID。"
}
],
"requestBody": {
@@ -3208,7 +3208,7 @@
},
"answer": {
"type": "string",
- "description": "QA 模式的回答内容。"
+ "description": "问答模式的答案内容。"
},
"keywords": {
"type": "array",
@@ -3219,7 +3219,7 @@
},
"enabled": {
"type": "boolean",
- "description": "分段是否已启用。"
+ "description": "分段是否启用。"
},
"regenerate_child_chunks": {
"type": "boolean",
@@ -3236,7 +3236,7 @@
"summary": {
"type": "string",
"nullable": true,
- "description": "摘要索引的摘要内容。"
+ "description": "用于摘要索引的摘要内容。"
}
},
"description": "要更新的分段数据。"
@@ -3259,7 +3259,7 @@
},
"doc_form": {
"type": "string",
- "description": "该文档使用的分块模式。"
+ "description": "此文档使用的文档分段模式。"
}
}
},
@@ -3311,10 +3311,10 @@
},
"delete": {
"tags": [
- "分段"
+ "Chunks"
],
- "summary": "删除文档中的分段",
- "description": "从文档中永久删除一个分段。",
+ "summary": "删除分段",
+ "description": "从文档中永久删除分段。",
"operationId": "deleteSegment",
"parameters": [
{
@@ -3335,7 +3335,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "segment_id",
@@ -3345,12 +3345,12 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "分段 ID。"
}
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -3358,10 +3358,10 @@
"/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks": {
"post": {
"tags": [
- "分段"
+ "Chunks"
],
"summary": "创建子分段",
- "description": "在父分段下创建子分段。仅适用于使用 `hierarchical_model` 分块模式的文档。",
+ "description": "在父分段下创建子分段。仅适用于使用 `hierarchical_model` 分段模式的文档。",
"operationId": "createChildChunk",
"parameters": [
{
@@ -3382,7 +3382,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "segment_id",
@@ -3392,7 +3392,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "分段 ID。"
}
],
"requestBody": {
@@ -3448,7 +3448,7 @@
}
},
"400": {
- "description": "`invalid_param` : 创建子分段索引失败。",
+ "description": "`invalid_param`:创建子分段索引失败。",
"content": {
"application/json": {
"examples": {
@@ -3468,9 +3468,9 @@
},
"get": {
"tags": [
- "分段"
+ "Chunks"
],
- "summary": "获取子分段",
+ "summary": "获取子分段列表",
"description": "返回特定父分段下子分段的分页列表。",
"operationId": "getChildChunks",
"parameters": [
@@ -3492,7 +3492,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "segment_id",
@@ -3502,7 +3502,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "分段 ID。"
},
{
"name": "page",
@@ -3512,7 +3512,7 @@
"default": 1,
"minimum": 1
},
- "description": "要获取的页码。"
+ "description": "要检索的页码。"
},
{
"name": "limit",
@@ -3543,10 +3543,10 @@
"properties": {
"data": {
"type": "array",
+ "description": "子分段列表。",
"items": {
"$ref": "#/components/schemas/ChildChunk"
- },
- "description": "子分段列表。"
+ }
},
"total": {
"type": "integer",
@@ -3562,7 +3562,7 @@
},
"limit": {
"type": "integer",
- "description": "每页条目数。"
+ "description": "每页的项目数量。"
}
}
},
@@ -3598,7 +3598,7 @@
"/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks/{child_chunk_id}": {
"patch": {
"tags": [
- "分段"
+ "Chunks"
],
"summary": "更新子分段",
"description": "更新现有子分段的内容。",
@@ -3622,7 +3622,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "segment_id",
@@ -3632,7 +3632,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "分段 ID。"
},
{
"name": "child_chunk_id",
@@ -3698,7 +3698,7 @@
}
},
"400": {
- "description": "`invalid_param` : 更新子分段索引失败。",
+ "description": "`invalid_param`:更新子分段索引失败。",
"content": {
"application/json": {
"examples": {
@@ -3718,10 +3718,10 @@
},
"delete": {
"tags": [
- "分段"
+ "Chunks"
],
"summary": "删除子分段",
- "description": "从父分段中永久删除一个子分段。",
+ "description": "从父分段中永久删除子分段。",
"operationId": "deleteChildChunk",
"parameters": [
{
@@ -3742,7 +3742,7 @@
"type": "string",
"format": "uuid"
},
- "description": "文档 ID."
+ "description": "文档 ID。"
},
{
"name": "segment_id",
@@ -3752,7 +3752,7 @@
"type": "string",
"format": "uuid"
},
- "description": "Chunk ID."
+ "description": "分段 ID。"
},
{
"name": "child_chunk_id",
@@ -3767,10 +3767,10 @@
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
},
"400": {
- "description": "`invalid_param` : 删除子分段索引失败。",
+ "description": "`invalid_param`:删除子分段索引失败。",
"content": {
"application/json": {
"examples": {
@@ -3792,10 +3792,10 @@
"/datasets/{dataset_id}/retrieve": {
"post": {
"tags": [
- "知识库"
+ "Knowledge Bases"
],
- "summary": "从知识库检索分段 / 测试检索",
- "description": "对知识库执行搜索查询,检索最相关的分段。此接口可用于生产环境检索和测试检索。",
+ "summary": "从知识库检索分段 / 召回测试",
+ "description": "对知识库执行搜索查询以检索最相关的分段。此端点可用于生产检索和召回测试。",
"operationId": "retrieveSegments",
"parameters": [
{
@@ -3834,11 +3834,11 @@
"properties": {
"top_k": {
"type": "integer",
- "description": "返回的最大结果数。"
+ "description": "返回结果的最大数量。"
},
"score_threshold": {
"type": "number",
- "description": "用于过滤结果的最低相关性分数阈值。"
+ "description": "用于过滤结果的最小相关性分数阈值。"
},
"score_threshold_enabled": {
"type": "boolean",
@@ -3879,12 +3879,13 @@
},
"records": {
"type": "array",
+ "description": "匹配的检索记录列表。",
"items": {
"type": "object",
"properties": {
"segment": {
"type": "object",
- "description": "从知识库中匹配的分段。",
+ "description": "来自知识库的匹配分段。",
"properties": {
"id": {
"type": "string",
@@ -3896,7 +3897,7 @@
},
"document_id": {
"type": "string",
- "description": "该分段所属文档的 ID。"
+ "description": "此分段所属的文档 ID。"
},
"content": {
"type": "string",
@@ -3908,7 +3909,7 @@
},
"answer": {
"type": "string",
- "description": "回答内容,用于问答模式文档。"
+ "description": "答案内容,用于问答模式文档。"
},
"word_count": {
"type": "integer",
@@ -3916,11 +3917,11 @@
},
"tokens": {
"type": "integer",
- "description": "分段内容的令牌数。"
+ "description": "分段内容的 token 数量。"
},
"keywords": {
"type": "array",
- "description": "与该分段关联的关键词,用于基于关键词的检索。",
+ "description": "与此分段相关联的关键词,用于基于关键词的检索。",
"items": {
"type": "string"
}
@@ -3931,25 +3932,25 @@
},
"index_node_hash": {
"type": "string",
- "description": "索引内容的哈希值,用于检测变更。"
+ "description": "索引内容的哈希,用于检测更改。"
},
"hit_count": {
"type": "integer",
- "description": "该分段在检索查询中被匹配的次数。"
+ "description": "此分段在检索查询中被匹配的次数。"
},
"enabled": {
"type": "boolean",
- "description": "该分段是否启用检索。"
+ "description": "分段是否启用检索。"
},
"disabled_at": {
"type": "number",
"nullable": true,
- "description": "分段被禁用的时间戳。启用时为 `null`。"
+ "description": "分段被禁用时的时间戳。如果已启用则为 `null`。"
},
"disabled_by": {
"type": "string",
"nullable": true,
- "description": "禁用该分段的用户 ID。启用时为 `null`。"
+ "description": "禁用分段的用户 ID。如果已启用则为 `null`。"
},
"status": {
"type": "string",
@@ -3957,31 +3958,31 @@
},
"created_by": {
"type": "string",
- "description": "创建该分段的用户 ID。"
+ "description": "创建分段的用户 ID。"
},
"created_at": {
"type": "number",
- "description": "创建时间戳(Unix 纪元,单位为秒)。"
+ "description": "创建时间戳(Unix 纪元秒数)。"
},
"indexing_at": {
"type": "number",
"nullable": true,
- "description": "索引开始的时间戳。尚未开始时为 `null`。"
+ "description": "索引开始时的时间戳。如果尚未开始则为 `null`。"
},
"completed_at": {
"type": "number",
"nullable": true,
- "description": "索引完成的时间戳。尚未完成时为 `null`。"
+ "description": "索引完成时的时间戳。如果尚未完成则为 `null`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "索引失败时的错误消息。无错误时为 `null`。"
+ "description": "如果索引失败则为错误消息。无错误时为 `null`。"
},
"stopped_at": {
"type": "number",
"nullable": true,
- "description": "索引停止的时间戳。未停止时为 `null`。"
+ "description": "索引停止时的时间戳。如果未停止则为 `null`。"
},
"document": {
"type": "object",
@@ -4002,12 +4003,12 @@
"doc_type": {
"type": "string",
"nullable": true,
- "description": "文档类型分类。未设置时为 `null`。"
+ "description": "文档类型分类。如果未设置则为 `null`。"
},
"doc_metadata": {
"type": "object",
"nullable": true,
- "description": "文档的元数据值。未配置元数据时为 `null`。"
+ "description": "文档的元数据值。如果未配置元数据则为 `null`。"
}
}
}
@@ -4015,7 +4016,7 @@
},
"child_chunks": {
"type": "array",
- "description": "使用分层索引时,分段内匹配的子分段。",
+ "description": "如果使用层级索引,则为分段内匹配的子分段。",
"items": {
"type": "object",
"properties": {
@@ -4033,14 +4034,14 @@
},
"score": {
"type": "number",
- "description": "子分段的相关性得分。"
+ "description": "子分段的相关性分数。"
}
}
}
},
"score": {
"type": "number",
- "description": "相关性得分。"
+ "description": "相关性分数。"
},
"tsne_position": {
"type": "object",
@@ -4049,7 +4050,7 @@
},
"files": {
"type": "array",
- "description": "附加到该分段的文件。",
+ "description": "附加到此分段的文件。",
"items": {
"type": "object",
"properties": {
@@ -4083,11 +4084,10 @@
"summary": {
"type": "string",
"nullable": true,
- "description": "通过摘要索引检索到的摘要内容。"
+ "description": "如果通过摘要索引检索,则为摘要内容。"
}
}
- },
- "description": "匹配的检索记录列表。"
+ }
}
}
},
@@ -4149,7 +4149,7 @@
}
},
"400": {
- "description": "- `dataset_not_initialized` : 知识库仍在初始化或索引中。请稍候。\n- `provider_not_initialize` : 未找到有效的模型提供商凭据。请前往设置 -> 模型提供商完成凭据配置。\n- `provider_quota_exceeded` : Your quota for Dify Hosted OpenAI has been exhausted. Please go to Settings -> Model Provider to complete your own provider credentials.\n- `model_currently_not_support` : Dify Hosted OpenAI trial currently not support the GPT-4 model.\n- `completion_request_error` : Completion request failed.\n- `invalid_param` : Invalid parameter value.",
+ "description": "- `dataset_not_initialized`:知识库仍在初始化或索引中。请稍候。\n- `provider_not_initialize`:未找到有效的模型供应商凭证。请前往设置 -> 模型供应商完成凭证配置。\n- `provider_quota_exceeded`:您的 Dify 托管 OpenAI 配额已用尽。请前往设置 -> 模型供应商完成您自己的供应商凭证配置。\n- `model_currently_not_support`:Dify 托管 OpenAI 试用目前不支持 GPT-4 模型。\n- `completion_request_error`:补全请求失败。\n- `invalid_param`:无效的参数值。",
"content": {
"application/json": {
"examples": {
@@ -4206,7 +4206,7 @@
}
},
"403": {
- "description": "`forbidden` : 权限不足。",
+ "description": "`forbidden`:权限不足。",
"content": {
"application/json": {
"examples": {
@@ -4223,7 +4223,7 @@
}
},
"404": {
- "description": "`not_found` : 知识库未找到。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -4240,7 +4240,7 @@
}
},
"500": {
- "description": "`internal_server_error` : 检索过程中发生内部错误。",
+ "description": "`internal_server_error`:检索期间发生内部错误。",
"content": {
"application/json": {
"examples": {
@@ -4262,10 +4262,10 @@
"/datasets/tags": {
"post": {
"tags": [
- "标签"
+ "Tags"
],
"summary": "创建知识库标签",
- "description": "创建新标签以组织知识库。",
+ "description": "创建用于组织知识库的新标签。",
"operationId": "createKnowledgeTag",
"requestBody": {
"required": true,
@@ -4281,7 +4281,7 @@
"type": "string",
"minLength": 1,
"maxLength": 50,
- "description": "Tag name."
+ "description": "标签名称。"
}
}
}
@@ -4311,7 +4311,7 @@
"binding_count": {
"type": "string",
"nullable": true,
- "description": "绑定到该标签的知识库数量。"
+ "description": "绑定到此标签的知识库数量。"
}
}
},
@@ -4333,7 +4333,7 @@
},
"get": {
"tags": [
- "标签"
+ "Tags"
],
"summary": "获取知识库标签列表",
"description": "返回工作区中所有知识库标签的列表。",
@@ -4363,7 +4363,7 @@
"binding_count": {
"type": "string",
"nullable": true,
- "description": "绑定到该标签的知识库数量。"
+ "description": "绑定到此标签的知识库数量。"
}
}
}
@@ -4388,9 +4388,9 @@
},
"patch": {
"tags": [
- "标签"
+ "Tags"
],
- "summary": "修改知识库标签",
+ "summary": "更新知识库标签",
"description": "重命名现有的知识库标签。",
"operationId": "updateKnowledgeTag",
"requestBody": {
@@ -4412,7 +4412,7 @@
"type": "string",
"minLength": 1,
"maxLength": 50,
- "description": "新标签名称。"
+ "description": "新的标签名称。"
}
}
}
@@ -4442,7 +4442,7 @@
"binding_count": {
"type": "string",
"nullable": true,
- "description": "绑定到该标签的知识库数量。"
+ "description": "绑定到此标签的知识库数量。"
}
}
},
@@ -4464,10 +4464,10 @@
},
"delete": {
"tags": [
- "标签"
+ "Tags"
],
"summary": "删除知识库标签",
- "description": "永久删除知识库标签。不会删除已被标记的知识库。",
+ "description": "永久删除知识库标签。不会删除被标记的知识库。",
"operationId": "deleteKnowledgeTag",
"requestBody": {
"required": true,
@@ -4490,7 +4490,7 @@
},
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -4498,9 +4498,9 @@
"/datasets/tags/binding": {
"post": {
"tags": [
- "标签"
+ "Tags"
],
- "summary": "绑定标签到知识库",
+ "summary": "创建标签绑定",
"description": "将一个或多个标签绑定到知识库。一个知识库可以有多个标签。",
"operationId": "bindTagsToDataset",
"requestBody": {
@@ -4533,7 +4533,7 @@
},
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -4541,10 +4541,10 @@
"/datasets/tags/unbinding": {
"post": {
"tags": [
- "标签"
+ "Tags"
],
- "summary": "解除标签与知识库的绑定",
- "description": "移除知识库的标签绑定。",
+ "summary": "删除标签绑定",
+ "description": "从知识库移除标签绑定。",
"operationId": "unbindTagFromDataset",
"requestBody": {
"required": true,
@@ -4572,7 +4572,7 @@
},
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -4580,9 +4580,9 @@
"/datasets/{dataset_id}/tags": {
"get": {
"tags": [
- "标签"
+ "Tags"
],
- "summary": "获取知识库绑定的标签",
+ "summary": "获取知识库的标签",
"description": "返回绑定到特定知识库的标签列表。",
"operationId": "queryDatasetTags",
"parameters": [
@@ -4607,6 +4607,7 @@
"properties": {
"data": {
"type": "array",
+ "description": "绑定到此知识库的标签列表。",
"items": {
"type": "object",
"properties": {
@@ -4619,12 +4620,11 @@
"description": "标签显示名称。"
}
}
- },
- "description": "绑定到此知识库的标签列表。"
+ }
},
"total": {
"type": "integer",
- "description": "绑定到该知识库的标签总数。"
+ "description": "绑定到此知识库的标签总数。"
}
}
},
@@ -4651,11 +4651,11 @@
"/datasets/{dataset_id}/metadata": {
"post": {
"tags": [
- "元数据"
+ "Metadata"
],
"summary": "创建元数据字段",
- "description": "为知识库创建自定义元数据字段。元数据字段可用于为文档添加结构化信息标注。",
- "operationId": "createMetadataFieldZh",
+ "description": "为知识库创建自定义元数据字段。元数据字段可用于为文档添加结构化信息注释。",
+ "operationId": "createMetadataField",
"parameters": [
{
"name": "dataset_id",
@@ -4686,7 +4686,7 @@
"number",
"time"
],
- "description": "`string` 为文本值,`number` 为数值,`time` 为日期/时间值。"
+ "description": "`string` 用于文本值,`number` 用于数值,`time` 用于日期/时间值。"
},
"name": {
"type": "string",
@@ -4736,11 +4736,11 @@
},
"get": {
"tags": [
- "元数据"
+ "Metadata"
],
"summary": "获取元数据字段列表",
- "description": "返回知识库的所有元数据字段列表(包括自定义和内置字段),以及使用每个字段的文档数量。",
- "operationId": "listMetadataFieldsZh",
+ "description": "返回知识库的所有元数据字段(包括自定义和内置)列表,以及使用每个字段的文档数量。",
+ "operationId": "listMetadataFields",
"parameters": [
{
"name": "dataset_id",
@@ -4763,6 +4763,7 @@
"properties": {
"doc_metadata": {
"type": "array",
+ "description": "元数据字段定义列表。",
"items": {
"type": "object",
"properties": {
@@ -4780,15 +4781,14 @@
},
"count": {
"type": "integer",
- "description": "使用该元数据字段的文档数量。"
+ "description": "使用此元数据字段的文档数量。"
}
}
- },
- "description": "元数据字段定义列表。"
+ }
},
"built_in_field_enabled": {
"type": "boolean",
- "description": "该知识库是否启用了内置元数据字段。"
+ "description": "是否为此知识库启用内置元数据字段。"
}
}
},
@@ -4817,11 +4817,11 @@
"/datasets/{dataset_id}/metadata/{metadata_id}": {
"patch": {
"tags": [
- "元数据"
+ "Metadata"
],
"summary": "更新元数据字段",
"description": "重命名自定义元数据字段。",
- "operationId": "updateMetadataFieldZh",
+ "operationId": "updateMetadataField",
"parameters": [
{
"name": "dataset_id",
@@ -4856,7 +4856,7 @@
"properties": {
"name": {
"type": "string",
- "description": "新元数据字段名称。"
+ "description": "新的元数据字段名称。"
}
}
}
@@ -4902,11 +4902,11 @@
},
"delete": {
"tags": [
- "元数据"
+ "Metadata"
],
"summary": "删除元数据字段",
- "description": "永久删除自定义元数据字段。使用此字段的文档将丢失其对应的元数据值。",
- "operationId": "deleteMetadataFieldZh",
+ "description": "永久删除自定义元数据字段。使用此字段的文档将丢失该字段的元数据值。",
+ "operationId": "deleteMetadataField",
"parameters": [
{
"name": "dataset_id",
@@ -4931,7 +4931,7 @@
],
"responses": {
"204": {
- "description": "Success."
+ "description": "成功。"
}
}
}
@@ -4939,11 +4939,11 @@
"/datasets/{dataset_id}/metadata/built-in": {
"get": {
"tags": [
- "元数据"
+ "Metadata"
],
"summary": "获取内置元数据字段",
"description": "返回系统提供的内置元数据字段列表(例如文档类型、来源 URL)。",
- "operationId": "getBuiltInMetadataFieldsZh",
+ "operationId": "getBuiltInMetadataFields",
"parameters": [
{
"name": "dataset_id",
@@ -4976,7 +4976,7 @@
},
"type": {
"type": "string",
- "description": "字段数据类型。文本值为 `string`,日期/时间值为 `time`。"
+ "description": "字段数据类型。`string` 用于文本值,`time` 用于日期/时间值。"
}
}
}
@@ -5021,11 +5021,11 @@
"/datasets/{dataset_id}/metadata/built-in/{action}": {
"post": {
"tags": [
- "元数据"
+ "Metadata"
],
"summary": "更新内置元数据字段",
- "description": "启用或禁用知识库的内置元数据字段。",
- "operationId": "toggleBuiltInMetadataFieldZh",
+ "description": "为知识库启用或禁用内置元数据字段。",
+ "operationId": "toggleBuiltInMetadataField",
"parameters": [
{
"name": "dataset_id",
@@ -5048,7 +5048,7 @@
"disable"
]
},
- "description": "`enable` 启用内置元数据字段,`disable` 停用内置元数据字段。"
+ "description": "`enable` 激活内置元数据字段,`disable` 停用它们。"
}
],
"responses": {
@@ -5082,11 +5082,11 @@
"/datasets/{dataset_id}/documents/metadata": {
"post": {
"tags": [
- "元数据"
+ "Metadata"
],
"summary": "批量更新文档元数据",
- "description": "批量更新多个文档的元数据值。请求中的每个文档将接收指定的元数据键值对。",
- "operationId": "batchUpdateDocumentMetadataZh",
+ "description": "批量更新多个文档的元数据值。请求中的每个文档都将接收指定的元数据键值对。",
+ "operationId": "batchUpdateDocumentMetadata",
"parameters": [
{
"name": "dataset_id",
@@ -5152,7 +5152,7 @@
}
}
},
- "description": "文档元数据更新操作数组。每个条目将一个文档 ID 映射到其元数据键值对。"
+ "description": "文档元数据更新操作数组。每个条目将文档 ID 映射到其元数据键值对。"
}
}
}
@@ -5190,11 +5190,11 @@
"/workspaces/current/models/model-types/{model_type}": {
"get": {
"tags": [
- "模型"
+ "Models"
],
"summary": "获取可用模型",
- "description": "按类型获取可用模型列表。主要用于查询知识库配置所需的 `text-embedding` 和 `rerank` 模型。",
- "operationId": "getAvailableModelsZh",
+ "description": "按类型检索可用模型列表。主要用于查询知识库配置的 `text-embedding` 和 `rerank` 模型。",
+ "operationId": "getAvailableModels",
"parameters": [
{
"name": "model_type",
@@ -5211,7 +5211,7 @@
"moderation"
]
},
- "description": "要获取的模型类型。对于知识库配置,使用 `text-embedding` 获取嵌入模型,使用 `rerank` 获取重排序模型。"
+ "description": "要检索的模型类型。对于知识库配置,使用 `text-embedding` 获取嵌入模型,或使用 `rerank` 获取重排序模型。"
}
],
"responses": {
@@ -5224,17 +5224,17 @@
"properties": {
"data": {
"type": "array",
- "description": "模型提供商及其可用模型的列表。",
+ "description": "模型供应商及其可用模型的列表。",
"items": {
"type": "object",
"properties": {
"provider": {
"type": "string",
- "description": "模型提供商标识符,例如 `openai`、`cohere`。"
+ "description": "模型供应商标识符,例如 `openai`、`cohere`。"
},
"label": {
"type": "object",
- "description": "提供商的本地化显示名称。",
+ "description": "供应商的本地化显示名称。",
"properties": {
"en_US": {
"type": "string",
@@ -5248,7 +5248,7 @@
},
"icon_small": {
"type": "object",
- "description": "提供商小图标的 URL。",
+ "description": "供应商小图标的 URL。",
"properties": {
"en_US": {
"type": "string",
@@ -5258,7 +5258,7 @@
},
"icon_large": {
"type": "object",
- "description": "提供商大图标的 URL。",
+ "description": "供应商大图标的 URL。",
"properties": {
"en_US": {
"type": "string",
@@ -5268,17 +5268,17 @@
},
"status": {
"type": "string",
- "description": "提供商状态。凭证已配置且有效时为 `active`。"
+ "description": "供应商状态。当凭证已配置且有效时为 `active`。"
},
"models": {
"type": "array",
- "description": "该提供商的可用模型列表。",
+ "description": "此供应商的可用模型列表。",
"items": {
"type": "object",
"properties": {
"model": {
"type": "string",
- "description": "模型标识符。创建或更新知识库时,将此值作为 `embedding_model` 参数使用。"
+ "description": "模型标识符。在创建或更新知识库时使用此值作为 `embedding_model`。"
},
"label": {
"type": "object",
@@ -5301,22 +5301,22 @@
"features": {
"type": "array",
"nullable": true,
- "description": "模型支持的功能,无功能时为 `null`。",
+ "description": "模型支持的功能,如果没有则为 `null`。",
"items": {
"type": "string"
}
},
"fetch_from": {
"type": "string",
- "description": "模型定义的来源。`predefined-model` 表示内置模型,`customizable-model` 表示用户自配置的模型。"
+ "description": "模型定义的来源。`predefined-model` 用于内置模型,`customizable-model` 用于用户配置的模型。"
},
"model_properties": {
"type": "object",
- "description": "模型特定的属性,例如 `context_size`。"
+ "description": "模型特定属性,如 `context_size`。"
},
"status": {
"type": "string",
- "description": "模型可用状态。就绪时为 `active`。"
+ "description": "模型可用性状态。`active` 表示可以使用。"
}
}
}
@@ -5374,11 +5374,11 @@
"/datasets/pipeline/file-upload": {
"post": {
"tags": [
- "知识流水线"
+ "Knowledge Pipeline"
],
"summary": "上传流水线文件",
- "description": "上传文件以在知识流水线中使用。通过 `multipart/form-data` 接受单个文件。",
- "operationId": "uploadPipelineFileZh",
+ "description": "上传用于知识库流水线的文件。通过 `multipart/form-data` 接受单个文件。",
+ "operationId": "uploadPipelineFile",
"requestBody": {
"required": true,
"content": {
@@ -5409,7 +5409,7 @@
"properties": {
"id": {
"type": "string",
- "description": "已上传文件的唯一标识符。"
+ "description": "上传文件的唯一标识符。"
},
"name": {
"type": "string",
@@ -5433,7 +5433,7 @@
},
"created_at": {
"type": "string",
- "description": "上传时间戳(ISO 8601 格式)。"
+ "description": "ISO 8601 格式的上传时间戳。"
}
}
},
@@ -5455,7 +5455,7 @@
}
},
"400": {
- "description": "- `no_file_uploaded` : 请上传文件。\n- `filename_not_exists_error` : 指定的文件名不存在。\n- `too_many_files` : 仅允许上传一个文件。",
+ "description": "- `no_file_uploaded`:请上传您的文件。\n- `filename_not_exists_error`:指定的文件名不存在。\n- `too_many_files`:只允许上传一个文件。",
"content": {
"application/json": {
"examples": {
@@ -5488,7 +5488,7 @@
}
},
"413": {
- "description": "`file_too_large` : 文件大小超出限制。",
+ "description": "`file_too_large`:文件大小超出限制。",
"content": {
"application/json": {
"examples": {
@@ -5505,7 +5505,7 @@
}
},
"415": {
- "description": "`unsupported_file_type` : 不允许的文件类型。",
+ "description": "`unsupported_file_type`:不允许的文件类型。",
"content": {
"application/json": {
"examples": {
@@ -5527,11 +5527,11 @@
"/datasets/{dataset_id}/pipeline/datasource-plugins": {
"get": {
"tags": [
- "知识流水线"
+ "Knowledge Pipeline"
],
"summary": "获取数据源插件列表",
- "description": "列出知识流水线可用的所有数据源插件。根据 `is_published` 查询参数返回已发布或草稿状态的插件。",
- "operationId": "listDatasourcePluginsZh",
+ "description": "列出知识库流水线可用的所有数据源插件。根据 `is_published` 查询参数返回已发布或草稿的插件。",
+ "operationId": "listDatasourcePlugins",
"parameters": [
{
"name": "dataset_id",
@@ -5550,7 +5550,7 @@
"type": "boolean",
"default": true
},
- "description": "获取已发布还是草稿状态的数据源插件。`true` 返回已发布的插件,`false` 返回草稿插件。"
+ "description": "是否检索已发布或草稿的数据源插件。`true` 返回已发布的插件,`false` 返回草稿插件。"
}
],
"responses": {
@@ -5573,7 +5573,7 @@
},
"type": {
"type": "string",
- "description": "数据源插件类型。"
+ "description": "数据源插件的类型。"
}
}
}
@@ -5594,7 +5594,7 @@
}
},
"404": {
- "description": "`not_found` : 未找到知识库。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -5616,11 +5616,11 @@
"/datasets/{dataset_id}/pipeline/datasource/nodes/{node_id}/run": {
"post": {
"tags": [
- "知识流水线"
+ "Knowledge Pipeline"
],
- "summary": "执行数据源节点",
- "description": "在知识流水线中执行单个数据源节点。返回包含节点执行结果的流式响应。",
- "operationId": "runDatasourceNodeZh",
+ "summary": "运行数据源节点",
+ "description": "在知识库流水线中执行单个数据源节点。返回包含节点执行结果的流式响应。",
+ "operationId": "runDatasourceNode",
"parameters": [
{
"name": "dataset_id",
@@ -5672,11 +5672,11 @@
"credential_id": {
"type": "string",
"nullable": true,
- "description": "用于数据源认证的凭证 ID。"
+ "description": "用于数据源身份验证的凭证 ID。"
},
"is_published": {
"type": "boolean",
- "description": "运行节点的已发布版本还是草稿版本。`true` 运行已发布版本,`false` 运行草稿版本。"
+ "description": "是否运行已发布或草稿版本的节点。`true` 运行已发布版本,`false` 运行草稿版本。"
}
}
}
@@ -5696,7 +5696,7 @@
}
},
"404": {
- "description": "`not_found` : 未找到知识库。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -5718,11 +5718,11 @@
"/datasets/{dataset_id}/pipeline/run": {
"post": {
"tags": [
- "知识流水线"
+ "Knowledge Pipeline"
],
"summary": "运行流水线",
"description": "为知识库执行完整的知识流水线。支持流式和阻塞两种响应模式。",
- "operationId": "runPipelineZh",
+ "operationId": "runPipeline",
"parameters": [
{
"name": "dataset_id",
@@ -5775,11 +5775,11 @@
},
"start_node_id": {
"type": "string",
- "description": "流水线开始执行的节点 ID。"
+ "description": "开始执行流水线的节点 ID。"
},
"is_published": {
"type": "boolean",
- "description": "运行流水线的已发布版本还是草稿版本。`true` 运行已发布版本,`false` 运行草稿版本。"
+ "description": "是否运行已发布或草稿版本的流水线。`true` 运行已发布版本,`false` 运行草稿版本。"
},
"response_mode": {
"type": "string",
@@ -5787,7 +5787,7 @@
"streaming",
"blocking"
],
- "description": "流水线执行的响应模式。`streaming` 返回服务器发送事件流,`blocking` 等待并返回完整结果。"
+ "description": "流水线执行的响应模式。`streaming` 返回 Server-Sent Events 流,`blocking` 等待并返回完整结果。"
}
}
}
@@ -5796,12 +5796,12 @@
},
"responses": {
"200": {
- "description": "流水线执行结果。格式取决于 `response_mode`:流式返回 `text/event-stream`,阻塞返回完整的 JSON 结果。",
+ "description": "流水线执行结果。格式取决于 `response_mode`:streaming 返回 `text/event-stream`,blocking 返回 JSON 对象。",
"content": {
"text/event-stream": {
"schema": {
"type": "string",
- "description": "包含流水线执行进度和结果的服务器发送事件流。当 `response_mode` 为 `streaming` 时返回。"
+ "description": "包含流水线执行进度和结果的 Server-Sent Events 流。当 `response_mode` 为 `streaming` 时返回。"
}
},
"application/json": {
@@ -5812,7 +5812,7 @@
},
"examples": {
"success": {
- "summary": "Blocking Response Example",
+ "summary": "阻塞响应示例",
"value": {
"task_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"workflow_run_id": "f1e2d3c4-b5a6-7890-abcd-ef0987654321",
@@ -5830,7 +5830,7 @@
}
},
"403": {
- "description": "`forbidden` : 禁止访问。",
+ "description": "`forbidden`:禁止访问。",
"content": {
"application/json": {
"examples": {
@@ -5847,7 +5847,7 @@
}
},
"404": {
- "description": "`not_found` : 未找到知识库。",
+ "description": "`not_found`:未找到知识库。",
"content": {
"application/json": {
"examples": {
@@ -5864,7 +5864,7 @@
}
},
"500": {
- "description": "`pipeline_run_error` : 流水线执行失败。",
+ "description": "`pipeline_run_error`:流水线执行失败。",
"content": {
"application/json": {
"examples": {
@@ -5903,15 +5903,15 @@
},
"provider": {
"type": "string",
- "description": "提供商类型。内部管理为 `vendor`,外部知识库连接为 `external`。"
+ "description": "供应商类型。`vendor` 用于内部管理,`external` 用于外部知识库连接。"
},
"permission": {
"type": "string",
- "description": "控制谁可以访问此知识库。可选值:`only_me`、`all_team_members`、`partial_members`。"
+ "description": "控制谁可以访问此知识库。可能的值:`only_me`、`all_team_members`、`partial_members`。"
},
"data_source_type": {
"type": "string",
- "description": "文档的数据源类型,尚未配置时为 `null`。"
+ "description": "文档的数据源类型,如果尚未配置则为 `null`。"
},
"indexing_technique": {
"type": "string",
@@ -5919,7 +5919,7 @@
},
"app_count": {
"type": "integer",
- "description": "当前使用该知识库的应用数量。"
+ "description": "当前使用此知识库的应用数量。"
},
"document_count": {
"type": "integer",
@@ -5931,7 +5931,7 @@
},
"created_by": {
"type": "string",
- "description": "创建该知识库的用户 ID。"
+ "description": "创建知识库的用户 ID。"
},
"author_name": {
"type": "string",
@@ -5939,15 +5939,15 @@
},
"created_at": {
"type": "number",
- "description": "创建时间戳(Unix 纪元,单位为秒)。"
+ "description": "创建时间戳(Unix 纪元秒数)。"
},
"updated_by": {
"type": "string",
- "description": "最后更新该知识库的用户 ID。"
+ "description": "最后更新知识库的用户 ID。"
},
"updated_at": {
"type": "number",
- "description": "最后更新时间戳(Unix 纪元,单位为秒)。"
+ "description": "最后更新时间戳(Unix 纪元秒数)。"
},
"embedding_model": {
"type": "string",
@@ -5955,7 +5955,7 @@
},
"embedding_model_provider": {
"type": "string",
- "description": "嵌入模型供应商。使用 [获取可用模型](/api-reference/模型/获取可用模型) 中 `model_type=text-embedding` 返回的 `provider` 字段值。"
+ "description": "嵌入模型供应商。使用[获取可用模型](/api-reference/models/get-available-models)中 `model_type=text-embedding` 的 `provider` 字段。"
},
"embedding_available": {
"type": "boolean",
@@ -5967,7 +5967,7 @@
"properties": {
"search_method": {
"type": "string",
- "description": "用于检索的搜索方式。`keyword_search` 表示关键词匹配,`semantic_search` 表示基于嵌入的语义相似度,`full_text_search` 表示全文索引,`hybrid_search` 表示语义和关键词混合搜索。"
+ "description": "用于检索的搜索方法。`keyword_search` 用于关键词匹配,`semantic_search` 用于基于嵌入的相似度,`full_text_search` 用于全文索引,`hybrid_search` 用于语义和关键词方法的组合。"
},
"reranking_enable": {
"type": "boolean",
@@ -5976,7 +5976,7 @@
"reranking_mode": {
"type": "string",
"nullable": true,
- "description": "重排序模式。`reranking_model` 表示基于模型的重排序,`weighted_score` 表示基于分数的加权。重排序禁用时为 `null`。"
+ "description": "重排序模式。`reranking_model` 用于基于模型的重排序,`weighted_score` 用于基于分数的加权。如果禁用重排序则为 `null`。"
},
"reranking_model": {
"type": "object",
@@ -5984,22 +5984,22 @@
"properties": {
"reranking_provider_name": {
"type": "string",
- "description": "重排序模型的提供商名称。"
+ "description": "重排序模型的供应商名称。"
},
"reranking_model_name": {
"type": "string",
- "description": "重排序模型名称。"
+ "description": "重排序模型的名称。"
}
}
},
"weights": {
"type": "object",
"nullable": true,
- "description": "混合搜索的权重配置。",
+ "description": "混合检索的权重配置。",
"properties": {
"weight_type": {
"type": "string",
- "description": "平衡语义搜索和关键词搜索权重的策略。"
+ "description": "平衡语义和关键词搜索权重的策略。"
},
"vector_setting": {
"type": "object",
@@ -6011,7 +6011,7 @@
},
"embedding_provider_name": {
"type": "string",
- "description": "用于向量搜索的嵌入模型提供商。"
+ "description": "用于向量搜索的嵌入模型供应商。"
},
"embedding_model_name": {
"type": "string",
@@ -6033,7 +6033,7 @@
},
"top_k": {
"type": "integer",
- "description": "返回的最大结果数。"
+ "description": "返回结果的最大数量。"
},
"score_threshold_enabled": {
"type": "boolean",
@@ -6041,7 +6041,7 @@
},
"score_threshold": {
"type": "number",
- "description": "结果的最低相关性分数。仅在 `score_threshold_enabled` 为 `true` 时生效。"
+ "description": "结果的最小相关性分数。仅当 `score_threshold_enabled` 为 `true` 时有效。"
}
}
},
@@ -6052,7 +6052,7 @@
"properties": {
"enable": {
"type": "boolean",
- "description": "是否已启用摘要索引。"
+ "description": "是否启用摘要索引。"
},
"model_name": {
"type": "string",
@@ -6060,7 +6060,7 @@
},
"model_provider_name": {
"type": "string",
- "description": "摘要生成模型的提供商。"
+ "description": "摘要生成模型的供应商。"
},
"summary_prompt": {
"type": "string",
@@ -6070,7 +6070,7 @@
},
"tags": {
"type": "array",
- "description": "与该知识库关联的标签。",
+ "description": "与此知识库关联的标签。",
"items": {
"type": "object",
"properties": {
@@ -6080,7 +6080,7 @@
},
"name": {
"type": "string",
- "description": "Tag name."
+ "description": "标签名称。"
},
"type": {
"type": "string",
@@ -6091,7 +6091,7 @@
},
"doc_form": {
"type": "string",
- "description": "文档分块模式。`text_model` 表示标准文本分块,`hierarchical_model` 表示父子结构,`qa_model` 表示问答对提取。"
+ "description": "文档分段模式。`text_model` 用于标准文本分段,`hierarchical_model` 用于父子结构,`qa_model` 用于问答对提取。"
},
"external_knowledge_info": {
"type": "object",
@@ -6119,15 +6119,15 @@
"external_retrieval_model": {
"type": "object",
"nullable": true,
- "description": "外部知识库的检索设置。内部知识库时为 `null`。",
+ "description": "外部知识库的检索设置。内部知识库为 `null`。",
"properties": {
"top_k": {
"type": "integer",
- "description": "从外部知识库返回的最大结果数量。"
+ "description": "从外部知识库返回结果的最大数量。"
},
"score_threshold": {
"type": "number",
- "description": "最低相关性得分阈值。"
+ "description": "最小相关性分数阈值。"
},
"score_threshold_enabled": {
"type": "boolean",
@@ -6163,7 +6163,7 @@
"pipeline_id": {
"type": "string",
"nullable": true,
- "description": "自定义处理流水线的 ID(如果已配置)。"
+ "description": "如果配置了自定义处理流水线,则为流水线 ID。"
},
"runtime_mode": {
"type": "string",
@@ -6190,7 +6190,7 @@
},
"icon_background": {
"type": "string",
- "description": "图标的背景颜色。"
+ "description": "图标背景颜色。"
},
"icon_url": {
"type": "string",
@@ -6212,7 +6212,7 @@
},
"enable_api": {
"type": "boolean",
- "description": "该知识库是否启用 API 访问。"
+ "description": "是否为此知识库启用 API 访问。"
},
"is_multimodal": {
"type": "boolean",
@@ -6233,11 +6233,11 @@
},
"data_source_type": {
"type": "string",
- "description": "文档的创建方式。文件上传为 `upload_file`,Notion 导入为 `notion_import`。"
+ "description": "文档的创建方式。`upload_file` 表示文件上传,`notion_import` 表示 Notion 导入。"
},
"data_source_info": {
"type": "object",
- "description": "原始数据源信息,随 `data_source_type` 而异。"
+ "description": "原始数据源信息,根据 `data_source_type` 而异。"
},
"data_source_detail_dict": {
"type": "object",
@@ -6245,7 +6245,7 @@
},
"dataset_process_rule_id": {
"type": "string",
- "description": "应用于该文档的处理规则 ID。"
+ "description": "应用于此文档的处理规则 ID。"
},
"name": {
"type": "string",
@@ -6253,42 +6253,42 @@
},
"created_from": {
"type": "string",
- "description": "文档来源。通过 API 创建时为 `api`,通过 UI 创建时为 `web`。"
+ "description": "文档来源。`api` 表示 API 创建,`web` 表示 UI 创建。"
},
"created_by": {
"type": "string",
- "description": "创建该文档的用户 ID。"
+ "description": "创建文档的用户 ID。"
},
"created_at": {
"type": "number",
- "description": "创建时间戳(Unix 纪元,单位为秒)。"
+ "description": "创建时间戳(Unix 纪元秒数)。"
},
"tokens": {
"type": "integer",
- "description": "文档中的令牌总数。"
+ "description": "文档中的 token 总数。"
},
"indexing_status": {
"type": "string",
- "description": "当前索引状态。`waiting` 表示排队中,`parsing` 表示正在提取内容,`cleaning` 表示正在去噪,`splitting` 表示正在分块,`indexing` 表示正在构建向量,`completed` 表示就绪,`error` 表示失败,`paused` 表示手动暂停。"
+ "description": "当前索引状态。`waiting` 表示排队中,`parsing` 表示正在提取内容,`cleaning` 表示正在去噪,`splitting` 表示正在分段,`indexing` 表示正在构建向量,`completed` 表示已就绪,`error` 表示失败,`paused` 表示已手动暂停。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "索引失败时的错误消息。无错误时为 `null`。"
+ "description": "如果索引失败则为错误消息。无错误时为 `null`。"
},
"enabled": {
"type": "boolean",
- "description": "该文档是否启用检索。"
+ "description": "文档是否启用检索。"
},
"disabled_at": {
"type": "number",
"nullable": true,
- "description": "文档被禁用的时间戳。启用时为 `null`。"
+ "description": "文档被禁用时的时间戳。如果已启用则为 `null`。"
},
"disabled_by": {
"type": "string",
"nullable": true,
- "description": "禁用该文档的用户 ID。启用时为 `null`。"
+ "description": "禁用文档的用户 ID。如果已启用则为 `null`。"
},
"archived": {
"type": "boolean",
@@ -6296,7 +6296,7 @@
},
"display_status": {
"type": "string",
- "description": "基于 `indexing_status` 和 `enabled` 状态派生的面向用户的显示状态。"
+ "description": "从 `indexing_status` 和 `enabled` 状态派生的用户友好显示状态。"
},
"word_count": {
"type": "integer",
@@ -6304,15 +6304,15 @@
},
"hit_count": {
"type": "integer",
- "description": "该文档在检索查询中被匹配的次数。"
+ "description": "文档在检索查询中被匹配的次数。"
},
"doc_form": {
"type": "string",
- "description": "文档分块模式。`text_model` 表示标准文本分块,`hierarchical_model` 表示父子结构,`qa_model` 表示问答对提取。"
+ "description": "文档分段模式。`text_model` 用于标准文本分段,`hierarchical_model` 用于父子结构,`qa_model` 用于问答对提取。"
},
"doc_metadata": {
"type": "array",
- "description": "分配给该文档的元数据值。",
+ "description": "分配给此文档的元数据值。",
"items": {
"type": "object",
"properties": {
@@ -6338,11 +6338,11 @@
"summary_index_status": {
"type": "string",
"nullable": true,
- "description": "该文档的摘要索引状态。未配置摘要索引时为 `null`。"
+ "description": "此文档的摘要索引状态。如果未配置摘要索引则为 `null`。"
},
"need_summary": {
"type": "boolean",
- "description": "是否需要为该文档生成摘要。"
+ "description": "此文档是否需要生成摘要。"
}
}
},
@@ -6359,7 +6359,7 @@
},
"document_id": {
"type": "string",
- "description": "该分段所属文档的 ID。"
+ "description": "此分段所属的文档 ID。"
},
"content": {
"type": "string",
@@ -6371,7 +6371,7 @@
},
"answer": {
"type": "string",
- "description": "回答内容,用于问答模式文档。"
+ "description": "答案内容,用于问答模式文档。"
},
"word_count": {
"type": "integer",
@@ -6379,11 +6379,11 @@
},
"tokens": {
"type": "integer",
- "description": "分段内容的令牌数。"
+ "description": "分段内容的 token 数量。"
},
"keywords": {
"type": "array",
- "description": "与该分段关联的关键词,用于基于关键词的检索。",
+ "description": "与此分段相关联的关键词,用于基于关键词的检索。",
"items": {
"type": "string"
}
@@ -6394,25 +6394,25 @@
},
"index_node_hash": {
"type": "string",
- "description": "索引内容的哈希值,用于检测变更。"
+ "description": "索引内容的哈希,用于检测更改。"
},
"hit_count": {
"type": "integer",
- "description": "该分段在检索查询中被匹配的次数。"
+ "description": "此分段在检索查询中被匹配的次数。"
},
"enabled": {
"type": "boolean",
- "description": "该分段是否启用检索。"
+ "description": "分段是否启用检索。"
},
"disabled_at": {
"type": "number",
"nullable": true,
- "description": "分段被禁用的时间戳。启用时为 `null`。"
+ "description": "分段被禁用时的时间戳。如果已启用则为 `null`。"
},
"disabled_by": {
"type": "string",
"nullable": true,
- "description": "禁用该分段的用户 ID。启用时为 `null`。"
+ "description": "禁用分段的用户 ID。如果已启用则为 `null`。"
},
"status": {
"type": "string",
@@ -6420,50 +6420,50 @@
},
"created_by": {
"type": "string",
- "description": "创建该分段的用户 ID。"
+ "description": "创建分段的用户 ID。"
},
"created_at": {
"type": "number",
- "description": "创建时间戳(Unix 纪元,单位为秒)。"
+ "description": "创建时间戳(Unix 纪元秒数)。"
},
"updated_at": {
"type": "number",
- "description": "最后更新时间戳(Unix 纪元,单位为秒)。"
+ "description": "最后更新时间戳(Unix 纪元秒数)。"
},
"updated_by": {
"type": "string",
- "description": "最后更新该分段的用户 ID。"
+ "description": "最后更新分段的用户 ID。"
},
"indexing_at": {
"type": "number",
"nullable": true,
- "description": "索引开始的时间戳。尚未开始时为 `null`。"
+ "description": "索引开始时的时间戳。如果尚未开始则为 `null`。"
},
"completed_at": {
"type": "number",
"nullable": true,
- "description": "索引完成的时间戳。尚未完成时为 `null`。"
+ "description": "索引完成时的时间戳。如果尚未完成则为 `null`。"
},
"error": {
"type": "string",
"nullable": true,
- "description": "索引失败时的错误消息。无错误时为 `null`。"
+ "description": "如果索引失败则为错误消息。无错误时为 `null`。"
},
"stopped_at": {
"type": "number",
"nullable": true,
- "description": "索引停止的时间戳。未停止时为 `null`。"
+ "description": "索引停止时的时间戳。如果未停止则为 `null`。"
},
"child_chunks": {
"type": "array",
- "description": "属于该分段的子分段。仅在分层模式文档中存在。",
+ "description": "属于此分段的子分段。仅存在于层级模式文档中。",
"items": {
"$ref": "#/components/schemas/ChildChunk"
}
},
"attachments": {
"type": "array",
- "description": "附加到该分段的文件。",
+ "description": "附加到此分段的文件。",
"items": {
"type": "object",
"properties": {
@@ -6497,7 +6497,7 @@
"summary": {
"type": "string",
"nullable": true,
- "description": "AI 生成的分段内容摘要。未启用摘要索引时为 `null`。"
+ "description": "AI 生成的分段内容摘要。如果未启用摘要索引则为 `null`。"
}
}
},
@@ -6510,7 +6510,7 @@
},
"segment_id": {
"type": "string",
- "description": "该子分段所属的父分段 ID。"
+ "description": "此子分段所属的父分段 ID。"
},
"content": {
"type": "string",
@@ -6526,15 +6526,15 @@
},
"type": {
"type": "string",
- "description": "子分段的创建方式。系统生成为 `automatic`,手动创建为 `custom`。"
+ "description": "子分段的创建方式。`automatic` 表示系统生成,`custom` 表示手动创建。"
},
"created_at": {
"type": "number",
- "description": "创建时间戳(Unix 纪元,单位为秒)。"
+ "description": "创建时间戳(Unix 纪元秒数)。"
},
"updated_at": {
"type": "number",
- "description": "最后更新时间戳(Unix 纪元,单位为秒)。"
+ "description": "最后更新时间戳(Unix 纪元秒数)。"
}
}
},
@@ -6567,11 +6567,11 @@
"properties": {
"reranking_provider_name": {
"type": "string",
- "description": "重排序模型的提供商名称。"
+ "description": "重排序模型的供应商名称。"
},
"reranking_model_name": {
"type": "string",
- "description": "重排序模型名称。"
+ "description": "重排序模型的名称。"
}
}
},
@@ -6582,11 +6582,11 @@
"weighted_score"
],
"nullable": true,
- "description": "重排序模式。当 `reranking_enable` 为 `true` 时必填。"
+ "description": "重排序模式。当 `reranking_enable` 为 `true` 时必需。"
},
"top_k": {
"type": "integer",
- "description": "返回的最大结果数。"
+ "description": "返回结果的最大数量。"
},
"score_threshold_enabled": {
"type": "boolean",
@@ -6595,16 +6595,16 @@
"score_threshold": {
"type": "number",
"nullable": true,
- "description": "结果的最低相关性分数。仅在 `score_threshold_enabled` 为 `true` 时生效。"
+ "description": "结果的最小相关性分数。仅当 `score_threshold_enabled` 为 `true` 时有效。"
},
"weights": {
"type": "object",
"nullable": true,
- "description": "混合搜索的权重配置。",
+ "description": "混合检索的权重配置。",
"properties": {
"weight_type": {
"type": "string",
- "description": "平衡语义搜索和关键词搜索权重的策略。",
+ "description": "平衡语义和关键词搜索权重的策略。",
"enum": [
"semantic_first",
"keyword_first",
@@ -6621,7 +6621,7 @@
},
"embedding_provider_name": {
"type": "string",
- "description": "用于向量搜索的嵌入模型提供商。"
+ "description": "用于向量搜索的嵌入模型供应商。"
},
"embedding_model_name": {
"type": "string",
@@ -6649,8 +6649,8 @@
"type": "http",
"scheme": "bearer",
"bearerFormat": "API_KEY",
- "description": "API Key 认证。对于所有 API 请求,请在 `Authorization` HTTP 头中包含您的 API Key,并加上 `Bearer ` 前缀。示例:`Authorization: Bearer {API_KEY}`。**强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。**"
+ "description": "API 密钥认证。对于所有 API 请求,请在 `Authorization` HTTP 标头中包含您的 API 密钥,并以 `Bearer ` 为前缀。示例:`Authorization: Bearer {API_KEY}`。**强烈建议将您的 API 密钥存储在服务器端,不要在客户端共享或存储,以避免可能导致严重后果的 API 密钥泄露。**"
}
}
}
-}
+}
\ No newline at end of file
diff --git a/zh/use-dify/knowledge/connect-external-knowledge-base.mdx b/zh/use-dify/knowledge/connect-external-knowledge-base.mdx
index d14c803d8..7b93fe751 100644
--- a/zh/use-dify/knowledge/connect-external-knowledge-base.mdx
+++ b/zh/use-dify/knowledge/connect-external-knowledge-base.mdx
@@ -1,126 +1,85 @@
---
title: 连接外部知识库
+description: 通过 API 连接将外部知识源与 Dify 应用集成,以利用自定义 RAG 系统或第三方知识服务
sidebarTitle: 概述
---
- ⚠️ 本文档由 AI 自动翻译。如有任何不准确之处,请参考 [英文原版](/en/use-dify/knowledge/connect-external-knowledge-base)。
+ ⚠️ 本文档由 AI 自动翻译。如有任何不准确之处,请参考[英文原版](/en/use-dify/knowledge/connect-external-knowledge-base)。
-> 为做出区别,独立于 Dify 平台之外的知识库在本文内均被统称为 **“外部知识库”** 。
+如果你的团队维护着自己的 RAG 系统,或将内容托管在第三方知识服务(如 [AWS Bedrock](https://aws.amazon.com/bedrock/))中,你可以将这些外部知识源连接到 Dify,而无需将内容迁移到 Dify 的内置知识库中。
-## 功能简介
+这样,你的 AI 应用可以直接从现有基础设施中检索信息,同时你可以完全控制检索逻辑和内容管理。
-对于内容检索有着更高要求的进阶开发者而言,Dify 平台内置的知识库功能和文本检索和召回机制**存在限制,无法轻易变更文本召回结果。**
-
-出于对文本检索和召回的精确度有着更高追求,以及对内部资料的管理需求,部分团队选择自主研发 RAG 算法并独立维护文本召回系统、或将内容统一托管至云厂商的知识库服务(例如 [AWS Bedrock](https://aws.amazon.com/bedrock/))。
-
-作为中立的 LLM 应用开发平台,Dify 致力于给予开发者更多选择权。
-
-**连接外部知识库**功能可以将 Dify 平台与外部知识库建立连接。通过 API 服务,AI 应用能够获取更多信息来源。这意味着:
-
-* Dify 平台能够直接获取托管在云服务提供商知识库内的文本内容,开发者无需将内容重复搬运至 Dify 中的知识库;
-* Dify 平台能够直接获取自建知识库内经算法处理后的文本内容,开发者仅需关注自建知识库的信息检索机制,并不断优化与提升信息召回的准确度。
-
-
-
+
+ 
-以下是连接外部知识的详细步骤:
-
-
-
- 为了确保你的外部知识库与 Dify 连接成功,请在建立 API 服务前仔细阅读由 Dify 编写的[外部知识库 API 规范](/zh/use-dify/knowledge/external-knowledge-api)。
-
-
- > 目前, Dify 连接外部知识库时仅具备检索权限,暂不支持对外部知识库进行优化与修改,开发者需自行维护外部知识库。
-
- 前往 **“知识库”** 页,点击右上角的 **“外部知识库 API”**,轻点 **“添加外部知识库 API”**。
-
- 按照页面提示,依次填写以下内容:
+**连接外部知识库包含三个步骤**:
- * 知识库的名称,允许自定义名称,用于区分所连接的不同外部知识 API;
- * API 接口地址,外部知识库的连接地址,示例 `api-endpoint/retrieval`;详细说明请参考[外部知识库 API](/zh/use-dify/knowledge/external-knowledge-api);
- * API Key,外部知识库连接密钥,详细说明请参考[外部知识库 API](/zh/use-dify/knowledge/external-knowledge-api);
+1. [构建一个 Dify 可以查询的 API 服务](#step-1-build-the-retrieval-api)。
+2. [在 Dify 中注册 API 端点](#step-2-register-an-external-knowledge-api)。
+3. [通过已注册的 API 连接特定的知识源](#step-3-create-an-external-knowledge-base)。
-
-
-
-
-
- 前往 **“知识库”** 页,点击添加知识库卡片下方的 **“连接外部知识库”** 跳转至参数配置页面。
+当你的应用运行时,Dify 会向你的端点发送检索请求,并将返回的分段作为 LLM 响应的上下文。
-
-
-
+
+Dify 仅对外部知识库具有检索权限——无法修改或管理你的外部内容。你需要独立维护知识库及其检索逻辑。
+
- 填写以下参数:
+## 步骤 1:构建检索 API
- * **知识库名称与描述**
- * **外部知识库 API** 选择在第二步中关联的外部知识库 API;Dify 将通过 API 连接的方式,调用存储在外部知识库的文本内容;
- * **外部知识库 ID** 指定需要被关联的特定的外部知识库 ID,详细说明请参考[外部知识库 API](/zh/use-dify/knowledge/external-knowledge-api)。
- * **调整召回设置**
+构建一个实现[外部知识库 API 规范](/zh/use-dify/knowledge/external-knowledge-api)的 API 服务。你的服务需要一个 `POST` 端点,接受搜索查询并返回匹配的文本分段及相似度分数。
- **Top K:** 用户发起提问时,将请求外部知识 API 获取相关性较高的内容分段。该参数用于筛选与用户问题相似度较高的文本片段。默认值为 3,数值越高,召回存在相关性的文本分段也就越多。
+## 步骤 2:注册外部知识库 API
- **Score 阈值:** 文本片段筛选的相似度阈值,只召回超过设置分数的文本片段,默认值为 0.5。数值越高说明对于文本与问题要求的相似度越高,预期被召回的文本数量也越少,结果也会相对而言更加精准。
+外部知识库 API 存储你的端点 URL 和认证凭据。多个知识库可以共享一个 API 连接。
-
-
-
+1. 前往**知识库**,点击右上角的**外部知识库 API**,然后点击**添加外部知识库 API**。
-
-
- 建立与外部知识库的连接后,开发者可以在 **“召回测试”** 中模拟可能的问题关键词,预览从外部知识库召回的文本分段。若对于召回结果不满意,可以尝试修改召回参数或自行调整外部知识库的检索设置。
+2. 填写以下字段:
-
-
-
-
-
- - **Chatbot / Agent 类型应用**
+ - **名称**:用于区分此 API 连接与其他连接的标签。
+ - **API 端点**:你的外部知识服务的基础 URL。Dify 会在发送请求时自动追加 `/retrieval`。请参阅[外部知识库 API 规范](/zh/use-dify/knowledge/external-knowledge-api)了解详情。
+ - **API Key**:你服务的认证凭据。Dify 会将其作为 Bearer token 在 `Authorization` 头中发送。
- 在 Chatbot / Agent 类型应用内的编排页中的 **“上下文”** 内,选中带有 `EXTERNAL` 标签的外部知识库。
+保存时,Dify 会向你的端点发送测试请求以验证连接。
-
-
-
+## 步骤 3:创建外部知识库
- - **Chatflow / Workflow 类型应用**
+注册 API 后,将外部知识源连接到 Dify。这将在 Dify 中创建一个与你的外部系统关联的知识库。
- 在 Chatflow / Workflow 类型应用内添加 **“知识检索”** 节点,选中带有 `EXTERNAL` 标签的外部知识库。
+1. 前往**知识库**,点击**连接外部知识库**。
-
-
-
+
+ 
+
-
-
- 在 **“知识库”** 页,外部知识库的卡片右上角会带有 **EXTERNAL** 标签。进入需要修改的知识库,点击 **“设置”** 修改以下内容:
+2. 填写以下字段:
+ - **外部知识库名称**和**知识库描述**(可选)。
+ - **外部知识库 API**:选择你注册的 API 连接。Dify 会通过此 API 路由所有检索请求。
+ - **外部知识库 ID**:外部系统中特定知识源的标识符,作为 `knowledge_id` 字段传递给你的 API。
- * **知识库名称和描述**
- * **可见范围** 提供 「 只有我 」 、 「 所有团队成员 」 和 「部分团队成员」 三种权限范围。不具有权限的人将无法访问该知识库。若选择将知识库公开至其它成员,则意味着其它成员同样具备该知识库的查看、编辑和删除权限。
- * **召回设置**
+ 这是你的外部服务用于区分不同知识库的任何 ID。例如,Bedrock 知识库 ARN 或你在自己系统中定义的 ID。
- **Top K:** 用户发起提问时,将请求外部知识 API 获取相关性较高的内容分段。该参数用于筛选与用户问题相似度较高的文本片段。默认值为 3,数值越高,召回存在相关性的文本分段也就越多。
+
+ **外部知识库 API** 和**外部知识库 ID** 在创建后无法更改。如需使用不同的 API 或知识源,请创建新的外部知识库。
+
- **Score 阈值:** 文本片段筛选的相似度阈值,只召回超过设置分数的文本片段,默认值为 0.5。数值越高说明对于文本与问题要求的相似度越高,预期被召回的文本数量也越少,结果也会相对而言更加精准。
+ - **检索设置**:
+ - **Top K**:每次查询检索的最大分段数。较高的值会返回更多结果,但可能包含相关性较低的内容。
+ - **分数阈值**:返回分段的最低相似度分数。启用此选项可过滤掉低相关性结果。使用较高值以获得更严格的相关性,或使用较低值以包含更广泛的匹配。
- 外部知识库所关联的 **“外部知识库 API”** 和 **“外部知识 ID”** 不支持修改,如需修改请关联新的 “外部知识库 API” 并重新进行连接。
-
-
+ 禁用时,将返回所有达到 Top K 限制的结果,而不考虑分数。
-### 外部知识库连接示例
+创建完成后,外部知识库可以像任何内置知识库一样在你的应用中使用。请参阅[在应用内集成知识库](/zh/use-dify/knowledge/integrate-knowledge-within-application)了解详情。
-#### LlamaCloud
+## 连接示例
-[Dify 插件市场](https://marketplace.dify.ai/)内提供了 LlamaCloud 插件,可以帮助你快速连接 LlamaCloud 知识库,在 Dify 平台中使用由 LlamaCloud 提供的检索功能,而无需编写自定义 API。
+### LlamaCloud
-插件市场中搜索 `LlamaCloud` 即可快速安装插件。
+Dify 市场上的 [LlamaCloud 插件](https://marketplace.dify.ai/plugin/langgenius/llamacloud)可以连接到 LlamaCloud 知识库,无需构建自定义 API。安装插件并按照配置向导输入你的 LlamaCloud API 密钥。
-按照插件配置向导,填写 LlamaCloud 的 API 密钥和其他必要信息。完成配置后,你可以在知识库列表中看到连接的外部知识库。
-
-**视频教程**
-
-以下视频详细展示了如何使用 LlamaCloud 插件连接外部知识库:
+以下视频演示了 LlamaCloud 插件的设置过程:
-如需了解功能原理,请参考插件 [GitHub 地址](https://github.com/langgenius/dify-official-plugins/tree/main/extensions/llamacloud)。
+
+要了解 LlamaCloud 插件如何实现外部知识库连接,请参阅其 [GitHub 源代码](https://github.com/langgenius/dify-official-plugins/tree/main/extensions/llamacloud)。
+
+
+## 故障排除
+
+### 连接被拒绝或超时(自托管)
+
+Dify 通过基于 Squid 的 SSRF 代理路由出站 HTTP 请求。如果你的外部知识服务与 Dify 运行在同一主机上,或其域名未列入白名单,代理会阻止该请求。
+
+要允许连接,请将你服务的域名添加到 `docker/ssrf_proxy/squid.conf.template` 中的 `allowed_domains` ACL:
+
+```text
+acl allowed_domains dstdomain .marketplace.dify.ai .your-kb-service.com
+```
+
+编辑后重启 SSRF 代理容器。
-## 常见问题
+### API 响应格式问题
-**连接外部知识库 API 时异常,出现报错如何处理?**
+如果检索失败或返回意外结果,请根据[外部知识库 API 规范](/zh/use-dify/knowledge/external-knowledge-api#response)验证你的 API 响应。
-以下是返回信息各个错误码所对应的错误提示与解决办法:
+常见问题:
-| 错误码 | 错误提示 | 解决办法 |
-| ---- | --------------------------- | ------------------------------ |
-| 1001 | 无效的 Authorization header 格式 | 请检查请求的 Authorization header 格式 |
-| 1002 | 验证异常 | 请检查所填写的 API Key 是否正确 |
-| 2001 | 知识库不存在 | 请检查外部知识库 |
+- 每条记录中的 `metadata` 字段必须是对象(`{}`),而不是 `null`。`null` 值会导致检索流程出错。
+- 每条记录必须包含 `content` 和 `score` 字段。
\ No newline at end of file
diff --git a/zh/use-dify/knowledge/integrate-knowledge-within-application.mdx b/zh/use-dify/knowledge/integrate-knowledge-within-application.mdx
index ee6ad21e9..fcd20ce63 100644
--- a/zh/use-dify/knowledge/integrate-knowledge-within-application.mdx
+++ b/zh/use-dify/knowledge/integrate-knowledge-within-application.mdx
@@ -3,37 +3,40 @@ title: 在应用内集成知识库
sidebarTitle: 在应用内集成
---
- ⚠️ 本文档由 AI 自动翻译。如有任何不准确之处,请参考 [英文原版](/en/use-dify/knowledge/integrate-knowledge-within-application)。
+ ⚠️ 本文档由 AI 自动翻译。如有任何不准确之处,请参考[英文原版](/en/use-dify/knowledge/integrate-knowledge-within-application)。
-知识库可以作为外部知识提供给大语言模型用于精确回复用户问题,你可以在 Dify 的[所有应用类型](/zh/use-dify/getting-started/key-concepts#dify-应用)内关联已创建的知识库。
+### 创建集成知识库的应用
+
+**知识库** 可以作为外部信息来源,通过大语言模型为用户问题提供精确回复。你可以在 Dify 的[所有应用类型](/zh/use-dify/getting-started/key-concepts#dify-应用)内关联已创建的知识库。
以聊天助手为例,使用流程如下:
-1. 进入 **工作室 -- 创建应用 --创建聊天助手**
-2. 进入 **上下文设置** 点击 **添加** 选择已创建的知识库
-3. 在 **上下文设置 -- 参数设置** 内配置**召回策略**
-4. 在 **元数据筛选** 板块中配置元数据的筛选条件,使用元数据功能筛选知识库内的文档
-5. 在 **添加功能** 内打开 **引用和归属**
-6. 在 **调试与预览** 内输入与知识库相关的用户问题进行调试
-7. 调试完成之后**保存并发布**为一个 AI 知识库问答类应用
+1. 进入 **知识库 -- 创建知识库 -- 上传文件**
+2. 进入 **工作室 -- 创建应用 -- 选择聊天助手**
+3. 进入 **上下文**,点击 **添加**,选择已创建的知识库
+4. 使用 **元数据筛选** 在知识库中精确筛选文档
+5. 在 **上下文设置 -- 召回设置** 内配置 **召回设置**
+6. 在 **添加功能** 内打开 **引用和归属**
+7. 在 **调试与预览** 内输入与知识库相关的用户问题进行调试
+8. 调试完成之后点击 **发布** 按钮,即可发布基于自有知识的 AI 应用!
***
### 关联知识库并指定召回模式
-如果当前应用的上下文涉及多个知识库,需要设置召回模式以使得检索的内容更加精确。进入 **上下文 -- 参数设置 -- 召回设置**。
+如果当前应用的上下文涉及多个知识库,需要设置召回模式以使得检索的内容更加精确。进入 **上下文 -- 召回设置 -- Rerank 设置**。
#### 召回设置
-检索器会在所有与应用关联的知识库中去检索与用户问题相关的文本内容,并将多路召回的相关文档结果合并,以下是召回策略的技术流程图:
+检索器会在所有与应用关联的知识库中去检索与用户问题相关的文本内容,并将多路召回的相关文档结果合并。以下是多路召回模式的技术流程图:
-
+
-根据用户意图同时检索所有添加至 **“上下文”** 的知识库,在多个知识库内查询相关文本片段,选择所有和用户问题相匹配的内容,最后通过 Rerank 策略找到最适合的内容并回答用户。该方法的检索原理更为科学。
+根据用户意图同时检索所有添加至 **"上下文"** 的知识库,在多个知识库内查询相关文本片段,选择所有和用户问题相匹配的内容,最后通过 Rerank 策略找到最适合的内容并回答用户。该方法通过同时利用多个知识库,提供更加全面和精确的检索结果。
-
+
-举例:A 应用的上下文关联了 K1、K2、K3 三个知识库,当用户输入问题后,将在三个知识库内检索并汇总多条内容。为确保能找到最匹配的内容,需要通过 Rerank 策略确定与用户问题最相关的内容,确保结果更加精准与可信。
+举例:A 应用的上下文关联了 K1、K2、K3 三个知识库。当用户输入问题后,将在三个知识库内检索并汇总多条相关内容。为确保能找到最匹配的内容,需要通过 Rerank 策略确定与用户问题最相关的内容,确保结果更加精准与可信。
在实际问答场景中,每个知识库的内容来源和检索方式可能都有所差异。针对检索返回的多条混合内容,Rerank 策略是一个更加科学的内容排序机制。它可以帮助确认候选内容列表与用户问题的匹配度,改进多个知识间排序的结果以找到最匹配的内容,提高回答质量和用户体验。
@@ -46,8 +49,6 @@ sidebarTitle: 在应用内集成
* **语义值为 1**
仅启用语义检索模式。借助 Embedding 模型,即便知识库中没有出现查询中的确切词汇,也能通过计算向量距离的方式提高搜索的深度,返回正确内容。此外,当需要处理多语言内容时,语义检索能够捕捉不同语言之间的意义转换,提供更加准确的跨语言搜索结果。
-
- > 语义检索指的是比对用户问题与知识库内容中的向量距离。距离越近,匹配的概率越大。参考阅读:[《Dify:Embedding 技术与 Dify 数据集设计/规划》](https://mp.weixin.qq.com/s/vmY\_CUmETo2IpEBf1nEGLQ)。
* **关键词值为 1**
仅启用关键词检索模式。通过用户输入的信息文本在知识库全文匹配,适用于用户知道确切的信息或术语的场景。该方法所消耗的计算资源较低,适合在大量文档的知识库内快速检索。
@@ -57,119 +58,110 @@ sidebarTitle: 在应用内集成
**Rerank 模型**
-Rerank 模型是一种外部评分系统,它会计算用户问题与给定的每个候选文档之间的相关性分数,从而改进语义排序的结果,并按相关性返回从高到低排序的文档列表。
+Rerank 模型是一种外部评分系统,它会计算用户问题与给定的每个候选文档之间的相似性分数,从而改进语义排序的结果,并按相似性分数从高到低返回文档列表。
虽然此方法会产生一定的额外花费,但是更加擅长处理知识库内容来源复杂的情况,例如混合了语义查询和关键词匹配的内容,或返回内容存在多语言的情况。
-Dify 目前支持多个 Rerank 模型,进入 “模型供应商” 页填入 Rerank 模型(例如 Cohere、Jina AI 等模型)的 API Key。
+Dify 目前支持多个 Rerank 模型。要使用外部 Rerank 模型,你需要提供 API Key。进入 "模型供应商" 页填入 Rerank 模型(例如 Cohere、Jina AI 等)的 API Key。
-
-
-
+
**可调参数**
-* **TopK**
+* **TopK**:用于筛选与用户问题相似度最高的文本片段。系统同时会根据选用模型上下文窗口大小,动态调整分段数量。默认值为 **3**,数值越高,预期被召回的文本分段数量越多。
+* **Score 阈值**:用于设置文本片段筛选的相似度阈值。只有超过设置分数的分段才会被召回。默认值为 **0.5**。阈值越高,要求的相似度越高,因此被召回的分段数量越少。
- 用于筛选与用户问题相似度最高的文本片段。系统同时会根据选用模型上下文窗口大小,动态调整分段数量。数值越高,预期被召回的文本分段数量越多。
-* **Score 阈值**
+### 元数据筛选
- 用于设置文本片段筛选的相似度阈值。向量检索的相似度分数需要超过设置的分数后才会被召回,数值越高,预期被召回的文本数量越少。
+#### Chatflow/工作流
-### 使用元数据筛选知识
+**知识检索** 节点允许你使用元数据字段筛选文档。
-#### 聊天流/工作流
+#### 配置步骤
-在 **聊天流/工作流** 的 **知识检索** 节点中,你可以使用 **元数据筛选** 功能精确检索文档。该功能有助于你根据文档的元数据字段(如标签、类别或访问权限)优化检索结果。
+1. 选择筛选模式:
+ - **禁用(默认)**:不使用元数据筛选。
-##### 配置步骤
+ - **自动**:系统会根据 **知识检索** 节点中的查询变量自动配置筛选条件。
-1. 选择筛选模式
+ > 注意:自动模式需要选择模型以执行文档检索。
- - **禁用模式**(默认):禁用 **元数据筛选** 功能,不配置任何筛选条件。
+ 
- - **自动模式**:系统会根据传输给该 **知识检索** 节点的 **查询变量** 自动配置筛选条件,适用于简单的筛选需求。
+ - **手动**:手动配置筛选条件。
- > 启用自动模式后,你依然需要在 **模型** 栏中选择合适的大模型以执行文档检索任务。
+
- 
+2. 如果你选择了手动模式,请参照以下步骤配置:
- - **手动模式**:用户可以手动配置筛选条件,自由设置筛选规则,适用于复杂的筛选需求。
+ 1. 点击 **条件** 打开配置面板。
-
+ 
-2. 如果你选择了 **手动模式**,请参照以下步骤配置筛选条件:
+ 2. 点击 **+添加条件**:
+ - 从下拉列表中选择已选知识库内的元数据字段。
+ > 注意:当选择了多个知识库时,列表中只会显示这些知识库共有的元数据字段。
+ - 使用搜索框查找特定字段。
- 1. 点击 **条件** 按钮,弹出配置框。
-
- 
+ 
- 2. 点击配置框中的 **+添加条件** 按钮:
+ 3. 点击 **+添加条件** 添加更多字段。
- - 可以从下拉列表中选择一个已选中知识库内的元数据字段,添加到筛选条件列表中。
+ 
- > 如果你同时选择了多个知识库,下拉列表只会显示这些知识库共有的元数据字段。
+ 4. 配置筛选条件:
- - 可以在 **搜索元数据** 搜索框中搜索你需要的字段,添加到筛选条件列表中。
+ | 字段类型 | 筛选条件 | 筛选条件说明与示例 |
+ | --- | --- | --- |
+ | 字符串 | is | 需要完全匹配。例如:`is "Published"` 只返回标记为 "Published" 的文档。 |
+ | | is not | 排除完全匹配项。例如:`is not "Draft"` 返回所有未标记为 "Draft" 的文档。 |
+ | | is empty | 返回该字段无值的文档。 |
+ | | is not empty | 返回该字段有任意值的文档。 |
+ | | contains | 匹配部分文本。例如:`contains "Report"` 返回 "Monthly Report"、"Annual Report" 等。 |
+ | | not contains | 排除包含指定文本的文档。例如:`not contains "Draft"` 返回字段中不含 "Draft" 的文档。 |
+ | | starts with | 匹配以指定文本开头的内容。例如:`starts with "Doc"` 返回 "Doc1"、"Document" 等。 |
+ | | ends with | 匹配以指定文本结尾的内容。例如:`ends with "2024"` 返回 "Report 2024"、"Summary 2024" 等。 |
+ | 数字 | = | 精确匹配数字。例如:`= 10` 返回标记为 10 的文档。 |
+ | | ≠ | 排除特定数字。例如:`≠ 5` 返回所有未标记为 5 的文档。 |
+ | | > | 大于。例如:`> 100` 返回值大于 100 的文档。 |
+ | | < | 小于。例如:`< 50` 返回值小于 50 的文档。 |
+ | | ≥ | 大于或等于。例如:`≥ 20` 返回值大于或等于 20 的文档。 |
+ | | ≤ | 小于或等于。例如:`≤ 200` 返回值小于或等于 200 的文档。 |
+ | | is empty | 字段未设置值。例如:`is empty` 返回该字段未标记数字的所有文档。 |
+ | | is not empty | 字段已设置值。例如:`is not empty` 返回该字段已标记数字的所有文档。 |
+ | 时间 | is | 精确匹配时间。例如:`is "2024-01-01"` 返回标记为 2024 年 1 月 1 日的文档。 |
+ | | before | 早于指定时间。例如:`before "2024-01-01"` 返回 2024 年 1 月 1 日之前的文档。 |
+ | | after | 晚于指定时间。例如:`after "2024-01-01"` 返回 2024 年 1 月 1 日之后的文档。 |
+ | | is empty | 返回无时间值的文档。 |
+ | | is not empty | 返回有任意时间值的文档。 |
- 
+ 5. 添加筛选值:
- 3. 如果需要添加多条字段,可以重复点击 **+添加条件** 按钮。
+ - **变量**:从现有的 **Chatflow/工作流** 变量中选择。
- 
+ 
- 4. 配置字段类型的筛选条件:
+ - **常量**:输入特定值。
- | 字段类型 | 筛选条件 | 筛选条件说明与示例 |
- | --- | --- | --- |
- | 字符串 | is | 字段的值必须与你输入的值完全匹配。例如,如果你设置筛选条件为 `is "Published"`,则只会返回标记为 "Published" 的文档。 |
- | | is not | 字段的值不能与你输入的值匹配。例如,如果你设置筛选条件为 `is not "Draft"`,则会返回所有未标记为 "Draft" 的文档。 |
- | | is empty | 字段的值为空。如果你配置了此条件,可以检索到未标记该字符串的文档。 |
- | | is not empty | 字段的值不为空。如果你配置了此条件,可以检索到标记了该字符串的文档。 |
- | | contains | 字段的值包含你输入的文本。例如,如果你设置筛选条件为 `contains "Report"`,则会返回所有包含"Report"的文档,如"Monthly Report" 或 "Annual Report"。 |
- | | not contains | 字段的值不包含你输入的文本。例如,如果你设置筛选条件为 `not contains "Draft"`,则会返回所有不包含 "Draft" 的文档。 |
- | | starts with | 字段的值以你输入的文本开头。例如,如果你设置筛选条件为 `starts with "Doc"`,则会返回所有以"Doc"开头的文档,如 "Doc1"、"Document"等。 |
- | | ends with | 字段的值以你输入的文本结尾。例如,如果你设置筛选条件为 `ends with "2024"`,则会返回所有以"2024"结尾的文档,如"Report 2024"、"Summary 2024"等。 |
- | 数字 | = | 字段的值必须等于你输入的数字。例如,`= 10` 会匹配所有数字标记为 10 的文档。 |
- | | ≠ | 字段的值不能等于你输入的数字。例如,`≠ 5` 会返回所有数字未标记为 5 的文档。 |
- | | > | 字段的值必须大于你输入的数字。例如,`100` 会返回所有数字标记为大于 100 的文档。 |
- | | < | 字段的值必须小于你输入的数字。例如,`< 50` 会返回所有数字标记为小于 50 的文档。 |
- | | ≥ | 字段的值必须大于或等于你输入的数字。例如,`≥ 20` 会返回所有数字标记为大于或等于 20 的文档。 |
- | | ≤ | 字段的值必须小于或等于你输入的数字。例如,`≤ 200` 会返回所有数字标记为小于或等于 200 的文档。 |
- | | is empty | 字段未设置值。例如,`is empty` 会返回所有该字段未标记数字的文档。 |
- | | is not empty | 字段已设置值。例如,`is not empty` 会返回所有该字段已标记数字的文档。 |
- | 时间 | is | 字段的时间值必须与你选择的时间完全匹配。例如,`is "2024-01-01"` 只会返回标记为 2024 年 1 月 1 日的文档。 |
- | | before | 字段的时间值必须早于你选择的时间。例如,`before "2024-01-01"` 会返回所有标记为 2024 年 1 月 1 日之前的文档。 |
- | | after | 字段的时间值必须晚于你选择的时间。例如,`after "2024-01-01"` 会返回所有标记为 2024 年 1 月 1 日之后的文档。 |
- | | is empty | 字段的时间值为空。如果你配置了此条件,可以检索到未标记该时间信息的文档。 |
- | | is not empty | 字段的时间值不为空。如果你配置了此条件,可以检索到标记了该时间信息的文档。 |
-
- 5. 选择并添加元数据筛选值:
- - **变量**:选择 **变量(Variable)**,并选择该**聊天流/工作流**中需要用于筛选文档的变量。
-
- 
-
- - **常量**:选择 **常量(Constant)**,并手动输入你需要的常量值。
-
- > **时间** 字段类型仅支持使用常量筛选文档。如果你选用时间字段筛选文档,系统会弹出时间选择器,供你选择具体的时间节点。
-
- 
-
-
- 当你输入常量筛选值时,该筛选值必须与该元数据字段值的文本完全一致,系统才能返回该文档。例如,当你设置筛选条件为 `starts with "App"` 或 `contains "App"` 时,系统会返回标记为 “Apple” 的文档,但不会返回标记为 “apple” 或 “APPLE” 的文档。
-
-
- 6. 配置筛选条件之间的逻辑关系 `AND` 或 `OR`。
- - `AND`:当一个文档满足所有筛选条件时,才能检索到该文档。
- - `OR`:只要一个文档满足其中任意一个筛选条件,就可以检索到该文档。
-
- 
-
- 7. 关闭弹窗,系统将自动保存你的选择。
+ > 时间类型字段只能使用常量筛选。时间选择器用于时间类型字段。
+
+ 
+
+
+筛选值区分大小写,需要精确匹配。例如:筛选条件 `starts with "App"` 或 `contains "App"` 会匹配 "Apple",但不会匹配 "apple" 或 "APPLE"。
+
+
+6. 设置逻辑运算符:
+ - `AND`:匹配所有条件
+ - `OR`:匹配任意条件
+
+
+
+7. 点击面板外部保存设置。
#### 聊天助手
-在**聊天助手**中,**元数据筛选** 功能位于界面左下方的 **上下文** 板块下方,配置方法与**聊天流/工作流**中的操作一致。你可以按照相同的步骤配置元数据筛选条件。
+在 **知识库** 下方(左下角)访问 **元数据筛选**。配置步骤与 **Chatflow/工作流** 中的操作一致。

@@ -177,30 +169,33 @@ Dify 目前支持多个 Rerank 模型,进入 “模型供应商” 页填入 R
知识库将会在左侧信息栏中显示已关联的应用数量。将鼠标悬停至圆形信息图标时将显示所有已关联的 Apps 列表,点击右侧的跳转按钮即可快速查看对应的应用。
-
+
### 常见问题
-1. **如何选择多路召回中的 Rerank 设置?**
+11. **如何选择多路召回中的 Rerank 设置?**
-如果用户知道确切的信息或术语,可以通过关键词检索精确发挥匹配结果,那么请将 “权重设置” 中的**关键词设置为 1**。
+如果用户知道确切的信息或术语,可以通过关键词检索精确匹配。在这种情况下,请将权重设置中的 **"关键词"设置为 1**。
-如果知识库内并未出现确切词汇,或者存在跨语言查询的情况,那么推荐使用 “权重设置” 中的**语义设置为 1**。
+如果知识库内并未出现确切词汇,或者存在跨语言查询的情况,推荐将权重设置中的 **"语义"设置为 1**。
-如果业务人员对于用户的实际提问场景比较熟悉,想要主动调整语义或关键词的比值,那么推荐自行调整 “权重设置” 里的比值。
+如果你熟悉用户的实际提问场景,想要调整语义或关键词的比值,可以在 **权重设置** 中手动调整比例。
-如果知识库内容较为复杂,无法通过语义或关键词等简单条件进行匹配,同时要求较为精准的回答,愿意支付额外的费用,那么推荐使用 **Rerank 模型** 进行内容检索。
+如果知识库内容较为复杂,无法通过简单的语义或关键词匹配满足需求,同时需要高精度的回答且愿意支付额外费用,推荐使用 **Rerank 模型** 进行内容检索。
-2. **为什么会出现找不到 “权重设置” 或要求必须配置 Rerank 模型等情况,应该如何处理?**
+2. **为什么会出现找不到 "权重设置" 或要求必须配置 Rerank 模型等情况,应该如何处理?**
-以下是知识库检索方式对文本召回的影响情况:
+以下是知识库检索方式对多路召回的影响情况:
-
+
-3. **引用多个知识库时,无法调整 “权重设置”,提示错误应如何处理?**
+3. **引用多个知识库时,无法调整 "权重设置",提示错误应如何处理?**
-出现此问题是因为上下文内所引用的多个知识库内所使用的嵌入模型(Embedding)不一致,为避免检索内容冲突而出现此提示。推荐设置在“模型供应商”内设置并启用 Rerank 模型,或者统一知识库的检索设置。
+出现此问题是因为上下文内所引用的多个知识库内所使用的嵌入模型不一致,为避免检索内容冲突而出现此提示。推荐在"模型供应商"内设置并启用 Rerank 模型,或者统一知识库的检索设置。
-4. **为什么在多路召回模式下找不到“权重设置”选项,只能看到 Rerank 模型?**
+4. **为什么在多路召回模式下找不到"权重设置"选项,只能看到 Rerank 模型?**
-请检查你的知识库是否使用了“经济”型索引模式。如果是,那么将其切换为“高质量”索引模式。
+请检查你的知识库是否使用了"经济"索引模式。如果是,请将其切换为"高质量"索引模式。
\ No newline at end of file