mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
feat: summary index for knowledge. (#670)
* feat: summary index for knowledge. * feat: summary index for knowledge. * align terminology * add zh and ja translation --------- Co-authored-by: Riskey <riskey47@dify.ai>
This commit is contained in:
@@ -330,7 +330,7 @@
|
||||
"data": {
|
||||
"type": "string",
|
||||
"description": "ドキュメントメタデータと処理ルールを含むJSON文字列。詳細は`CreateDocumentByFileRequestData`スキーマを参照してください。",
|
||||
"example": "{\"indexing_technique\":\"high_quality\",\"process_rule\":{\"mode\":\"custom\", \"rules\": { \"segmentation\":{\"separator\":\"###\", \"max_tokens\":500}}}}"
|
||||
"example": "{\"indexing_technique\":\"high_quality\",\"process_rule\":{\"mode\":\"custom\", \"rules\": { \"segmentation\":{\"separator\":\"###\", \"max_tokens\":500}}},\"summary_index_setting\":{\"enable\":true,\"model_name\":\"qwen-vl-plus\",\"model_provider_name\":\"langgenius/tongyi/tongyi\",\"summary_prompt\":\"summarize the text\"}}"
|
||||
},
|
||||
"file": {
|
||||
"type": "string",
|
||||
@@ -1410,7 +1410,9 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["name"],
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
@@ -1471,7 +1473,10 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["tag_id", "name"],
|
||||
"required": [
|
||||
"tag_id",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"tag_id": {
|
||||
"type": "string",
|
||||
@@ -1514,7 +1519,9 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["tag_id"],
|
||||
"required": [
|
||||
"tag_id"
|
||||
],
|
||||
"properties": {
|
||||
"tag_id": {
|
||||
"type": "string",
|
||||
@@ -1547,7 +1554,10 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["target_id", "tag_ids"],
|
||||
"required": [
|
||||
"target_id",
|
||||
"tag_ids"
|
||||
],
|
||||
"properties": {
|
||||
"target_id": {
|
||||
"type": "string",
|
||||
@@ -1588,7 +1598,10 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["target_id", "tag_id"],
|
||||
"required": [
|
||||
"target_id",
|
||||
"tag_id"
|
||||
],
|
||||
"properties": {
|
||||
"target_id": {
|
||||
"type": "string",
|
||||
@@ -1645,8 +1658,13 @@
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": { "type": "string", "format": "uuid" },
|
||||
"name": { "type": "string" }
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1815,6 +1833,31 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"SummaryIndexSetting": {
|
||||
"type": "object",
|
||||
"description": "要約自動生成の設定。",
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean",
|
||||
"description": "要約自動生成を有効にするかどうか。"
|
||||
},
|
||||
"model_name": {
|
||||
"type": "string",
|
||||
"description": "要約生成に使用するモデル名。"
|
||||
},
|
||||
"model_provider_name": {
|
||||
"type": "string",
|
||||
"description": "要約モデルのプロバイダー。"
|
||||
},
|
||||
"summary_prompt": {
|
||||
"type": "string",
|
||||
"description": "要約生成に使用するプロンプトテンプレート。"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"enable"
|
||||
]
|
||||
},
|
||||
"PreprocessingRule": {
|
||||
"type": "object",
|
||||
"description": "ドキュメントコンテンツの前処理ルール。",
|
||||
@@ -1957,6 +2000,10 @@
|
||||
"embedding_model_provider": {
|
||||
"type": "string",
|
||||
"description": "埋め込みモデルのプロバイダー。"
|
||||
},
|
||||
"summary_index_setting": {
|
||||
"$ref": "#/components/schemas/SummaryIndexSetting",
|
||||
"description": "要約自動生成の設定。"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1999,6 +2046,10 @@
|
||||
},
|
||||
"embedding_model_provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"summary_index_setting": {
|
||||
"$ref": "#/components/schemas/SummaryIndexSetting",
|
||||
"description": "要約自動生成の設定。"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2175,6 +2226,10 @@
|
||||
},
|
||||
"retrieval_model": {
|
||||
"$ref": "#/components/schemas/RetrievalModel"
|
||||
},
|
||||
"summary_index_setting": {
|
||||
"$ref": "#/components/schemas/SummaryIndexSetting",
|
||||
"description": "要約自動生成の設定。"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2242,6 +2297,11 @@
|
||||
"embedding_available": {
|
||||
"type": "boolean",
|
||||
"nullable": true
|
||||
},
|
||||
"summary_index_setting": {
|
||||
"$ref": "#/components/schemas/SummaryIndexSetting",
|
||||
"description": "このデータセットの要約自動生成設定。",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2343,6 +2403,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"summary_index_setting": {
|
||||
"$ref": "#/components/schemas/SummaryIndexSetting",
|
||||
"description": "要約自動生成の設定。"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2552,6 +2616,10 @@
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"nullable": true
|
||||
},
|
||||
"summary": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2870,25 +2938,64 @@
|
||||
"type": "object",
|
||||
"description": "階層セグメント化における子チャンクを表します。",
|
||||
"properties": {
|
||||
"id": { "type": "string", "format": "uuid" },
|
||||
"segment_id": { "type": "string", "format": "uuid" },
|
||||
"content": { "type": "string" },
|
||||
"word_count": { "type": "integer" },
|
||||
"tokens": { "type": "integer" },
|
||||
"index_node_id": { "type": "string" },
|
||||
"index_node_hash": { "type": "string" },
|
||||
"status": { "type": "string" },
|
||||
"created_by": { "type": "string", "format": "uuid" },
|
||||
"created_at": { "type": "integer", "format": "int64" },
|
||||
"indexing_at": { "type": "integer", "format": "int64" },
|
||||
"completed_at": { "type": "integer", "format": "int64" },
|
||||
"error": { "type": "string", "nullable": true },
|
||||
"stopped_at": { "type": "integer", "format": "int64", "nullable": true }
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"segment_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"word_count": {
|
||||
"type": "integer"
|
||||
},
|
||||
"tokens": {
|
||||
"type": "integer"
|
||||
},
|
||||
"index_node_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"index_node_hash": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"created_by": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"indexing_at": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"completed_at": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"error": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"stopped_at": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"CreateChildChunkRequest": {
|
||||
"type": "object",
|
||||
"required": ["content"],
|
||||
"required": [
|
||||
"content"
|
||||
],
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
@@ -2898,7 +3005,9 @@
|
||||
},
|
||||
"UpdateChildChunkRequest": {
|
||||
"type": "object",
|
||||
"required": ["content"],
|
||||
"required": [
|
||||
"content"
|
||||
],
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
@@ -2923,33 +3032,76 @@
|
||||
"$ref": "#/components/schemas/ChildChunk"
|
||||
}
|
||||
},
|
||||
"total": { "type": "integer" },
|
||||
"total_pages": { "type": "integer" },
|
||||
"page": { "type": "integer" },
|
||||
"limit": { "type": "integer" }
|
||||
"total": {
|
||||
"type": "integer"
|
||||
},
|
||||
"total_pages": {
|
||||
"type": "integer"
|
||||
},
|
||||
"page": {
|
||||
"type": "integer"
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"UploadFileResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": { "type": "string", "format": "uuid" },
|
||||
"name": { "type": "string" },
|
||||
"size": { "type": "integer" },
|
||||
"extension": { "type": "string" },
|
||||
"url": { "type": "string", "format": "uri", "description": "ファイルのプレビューURL。" },
|
||||
"download_url": { "type": "string", "format": "uri", "description": "ファイルのダウンロードURL。" },
|
||||
"mime_type": { "type": "string" },
|
||||
"created_by": { "type": "string", "format": "uuid" },
|
||||
"created_at": { "type": "integer", "format": "int64" }
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"size": {
|
||||
"type": "integer"
|
||||
},
|
||||
"extension": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
"description": "ファイルのプレビューURL。"
|
||||
},
|
||||
"download_url": {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
"description": "ファイルのダウンロードURL。"
|
||||
},
|
||||
"mime_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"created_by": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Tag": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": { "type": "string", "format": "uuid" },
|
||||
"name": { "type": "string" },
|
||||
"type": { "type": "string", "example": "knowledge" },
|
||||
"binding_count": { "type": "integer" }
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"example": "knowledge"
|
||||
},
|
||||
"binding_count": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user