Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fa/.gitbook/assets/%E7%94%BB%E6%9D%BF_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fa/.gitbook/assets/000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fa/.gitbook/assets/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fa/.gitbook/assets/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fa/.gitbook/assets/API Access.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fa/.gitbook/assets/Access to the Prompt Log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fa/.gitbook/assets/Context parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
192 changes: 192 additions & 0 deletions fa/.gitbook/assets/Dify-test.openapi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
{
"openapi": "3.0.1",
"info": { "title": "Dify-test", "description": "", "version": "1.0.0" },
"tags": [],
"paths": {
"/retrieval": {
"post": {
"summary": "Knowledge Retrieval API",
"deprecated": false,
"description": "This API is used to connect to a knowledge base that is independent of the Dify and maintained by developers. For more details, please refer to [Connecting to an External Knowledge Base](https://docs.dify.ai/guides/knowledge-base/connect-external-knowledge-base). You can use API-Key in the Authorization HTTP Header to verify permissions, the authentication logic is defined by you in the retrieval API, as shown below:\n\n```text\nAuthorization: Bearer {API_KEY}\n```",
"tags": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"knowledge_id": {
"type": "string",
"description": "Your knowledge's unique ID"
},
"query": { "type": "string", "description": "User's query" },
"retrival_setting": {
"type": "object",
"properties": {
"top_k": {
"type": "integer",
"description": "Maximum number of retrieved results"
},
"score_threshold": {
"type": "number",
"description": "The score limit of relevance of the result to the query, scope: 0~1",
"format": "float",
"minimum": 0,
"maximum": 1
}
},
"description": "Knowledge's retrieval parameters ",
"required": ["top_k", "score_threshold"]
}
},
"required": ["knowledge_id", "query", "retrival_setting"]
},
"example": {
"knowledge_id": "your-knowledge-id",
"query": "your question",
"retrival_setting": { "top_k": 2, "score_threshold": 0.5 }
}
}
}
},
"responses": {
"200": {
"description": "If the action is successful, the service sends back an HTTP 200 response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"records": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "Contains a chunk of text from a data source in the knowledge base."
},
"score": {
"type": "number",
"format": "float",
"description": "The score of relevance of the result to the query, scope: 0~1"
},
"title": {
"type": "string",
"description": "Document title"
},
"metadata": {
"type": "string",
"description": "Contains metadata attributes and their values for the document in the data source."
}
},
"title": "A list of records from querying the knowledge base.",
"required": ["content", "score", "title"]
}
},
"required": ["records"]
},
"examples": {
"1": {
"summary": "Success",
"value": {
"records": [
{
"metadata": {
"path": "s3://dify/knowledge.txt",
"description": "dify knowledge document"
},
"score": 0.98,
"title": "knowledge.txt",
"content": "This is the document for external knowledge."
},
{
"metadata": {
"path": "s3://dify/introduce.txt",
"description": "dify introduce"
},
"score": 0.66,
"title": "introduce.txt",
"content": "The Innovation Engine for GenAI Applications"
}
]
}
}
}
}
},
"headers": {}
},
"403": {
"description": "The request is denied because of missing access permissions. Check your permissions and retry your request.",
"content": {
"application/json": {
"schema": {
"title": "",
"type": "object",
"properties": {
"error_code": {
"type": "integer",
"description": "error code"
},
"error_msg": {
"type": "string",
"description": "The description of api exception"
}
},
"required": ["error_code", "error_msg"]
},
"examples": {
"1": {
"summary": "Erros",
"value": {
"error_code": 1001,
"error_msg": "Invalid Authorization header format. Expected 'Bearer <api-key>' format."
}
}
}
}
},
"headers": {}
},
"500": {
"description": "An internal server error occurred. Retry your request.",
"content": {
"application/json": {
"schema": {
"title": "",
"type": "object",
"properties": {
"error_code": {
"type": "integer",
"description": "error code"
},
"error_msg": {
"type": "string",
"description": "The description of api exception"
}
},
"required": ["error_code", "error_msg"]
},
"examples": {
"1": {
"summary": "Erros",
"value": {
"error_code": 1001,
"error_msg": "Invalid Authorization header format. Expected 'Bearer <api-key>' format."
}
}
}
}
},
"headers": {}
}
},
"security": [{ "bearer": [] }]
}
}
},
"components": {
"schemas": {},
"securitySchemes": { "bearer": { "type": "http", "scheme": "bearer" } }
},
"servers": [{ "url": "your-endpoint", "description": "测试环境" }]
}
Binary file added fa/.gitbook/assets/Feb 4, 2024 (1).png
Binary file added fa/.gitbook/assets/Feb 4, 2024.png
Binary file added fa/.gitbook/assets/Feb 4,2.png
Binary file added fa/.gitbook/assets/Q&A-pair.png
Binary file added fa/.gitbook/assets/QUERY.png
Binary file added fa/.gitbook/assets/Retrieval-testing-setting.png
Binary file added fa/.gitbook/assets/Retrieval-testing.png
Binary file added fa/.gitbook/assets/Weather_search_tool (1).jpeg
Binary file added fa/.gitbook/assets/Weather_search_tool.jpeg
Binary file added fa/.gitbook/assets/WechatIMG157.jpg
Binary file added fa/.gitbook/assets/WechatIMG158.jpg
Binary file added fa/.gitbook/assets/WechatIMG160.jpg
Binary file added fa/.gitbook/assets/WechatIMG38.jpg
Binary file added fa/.gitbook/assets/add-a-chunk.png
Binary file added fa/.gitbook/assets/add-annotation-reply.png
Binary file added fa/.gitbook/assets/add-new-segment.png
Binary file added fa/.gitbook/assets/adjust-model-parameters.png
Binary file added fa/.gitbook/assets/agent-dalle3.png
Binary file added fa/.gitbook/assets/ai-chatbot-embedded.png
Binary file added fa/.gitbook/assets/ai-chatbot-knowledge-base.png
Binary file added fa/.gitbook/assets/annotaiton-reply.png
Binary file added fa/.gitbook/assets/annotated-replies-initial.png
Binary file added fa/.gitbook/assets/annotated-replies.png
Binary file added fa/.gitbook/assets/answer-img-1.png
Binary file added fa/.gitbook/assets/answer-img-2.png
Binary file added fa/.gitbook/assets/answer-plain-text.png
Binary file added fa/.gitbook/assets/api-reference.png
Binary file added fa/.gitbook/assets/api_based (1).png
Binary file added fa/.gitbook/assets/api_based.png
Binary file added fa/.gitbook/assets/api_based_extension1 (1).png
Binary file added fa/.gitbook/assets/api_based_extension1.png
Binary file added fa/.gitbook/assets/api_extension_edit (1).png
Binary file added fa/.gitbook/assets/api_extension_edit.png
Binary file added fa/.gitbook/assets/app-log.png
Binary file added fa/.gitbook/assets/app-logs-ann.png
Binary file added fa/.gitbook/assets/app-url.png
Binary file added fa/.gitbook/assets/app-variables.png
Binary file added fa/.gitbook/assets/app_toolkits_moderation4.png
Binary file added fa/.gitbook/assets/app_tools_edit (1).png
Binary file added fa/.gitbook/assets/app_tools_edit.png
Binary file added fa/.gitbook/assets/batch-run.png
Binary file added fa/.gitbook/assets/best-practice-wix-2.png
Binary file added fa/.gitbook/assets/best-practice-wix-3.png
Binary file added fa/.gitbook/assets/binding-notion (1).png
Binary file added fa/.gitbook/assets/binding-notion.png
Binary file added fa/.gitbook/assets/bulk-add-custom-segment.png
Binary file added fa/.gitbook/assets/bulk-export-annotations.png
Binary file added fa/.gitbook/assets/bulk-import-annotated.png
Binary file added fa/.gitbook/assets/chat-app.png
Binary file added fa/.gitbook/assets/check-hosted-api.png
Binary file added fa/.gitbook/assets/checklist.png
Binary file added fa/.gitbook/assets/choice-model-in-app (1).png
Binary file added fa/.gitbook/assets/choice-model-in-app.png
Binary file added fa/.gitbook/assets/citation-and-attribution.png
Binary file added fa/.gitbook/assets/compose-the-app.png
Binary file added fa/.gitbook/assets/config-langfuse.png
Binary file added fa/.gitbook/assets/config-langsmith.png
Binary file added fa/.gitbook/assets/connect-with-notion-1.png
Binary file added fa/.gitbook/assets/connect-with-notion-2.png
Binary file added fa/.gitbook/assets/connect-with-notion-3.png
Binary file added fa/.gitbook/assets/connect-with-notion-4.png
Binary file added fa/.gitbook/assets/content-moderation.png
Binary file added fa/.gitbook/assets/content_moderation (1).png
Binary file added fa/.gitbook/assets/content_moderation.png
Binary file added fa/.gitbook/assets/conversation-chatbot-2.png
Binary file added fa/.gitbook/assets/conversation-chatbot.png
Binary file added fa/.gitbook/assets/conversation-follow-up.png
Binary file added fa/.gitbook/assets/conversation-logs.png
Binary file added fa/.gitbook/assets/conversation-opener.png
Binary file added fa/.gitbook/assets/conversation-options.png
Binary file added fa/.gitbook/assets/conversation-remarkers.png
Binary file added fa/.gitbook/assets/conversation-var.png
Binary file added fa/.gitbook/assets/convert-chapter-content.png
Binary file added fa/.gitbook/assets/create a new App.png
Binary file added fa/.gitbook/assets/create-an-app.png
Binary file added fa/.gitbook/assets/create-app (1).png
Binary file added fa/.gitbook/assets/create-app (2).png
Binary file added fa/.gitbook/assets/create-app (3).png
Binary file added fa/.gitbook/assets/create-app-1.png
Binary file added fa/.gitbook/assets/create-app-2.png
Binary file added fa/.gitbook/assets/create-app-5.png
Binary file added fa/.gitbook/assets/create-app.png
Binary file added fa/.gitbook/assets/create-from-blank.png
Binary file added fa/.gitbook/assets/create-knowledge-2.png
Binary file added fa/.gitbook/assets/create-knowledge-base-2.png
Binary file added fa/.gitbook/assets/create-knowledge.png
Binary file added fa/.gitbook/assets/create-model.png
Binary file added fa/.gitbook/assets/custom-chunk-settings.png
Binary file added fa/.gitbook/assets/customizable-model.png
Binary file added fa/.gitbook/assets/dataset-api-token (1).png
Binary file added fa/.gitbook/assets/dataset-api-token.png
Binary file added fa/.gitbook/assets/debug-ai-chatbot-publish.png
Binary file added fa/.gitbook/assets/debug-app-in-dify.png
Binary file added fa/.gitbook/assets/debug.png
Binary file added fa/.gitbook/assets/deploy-model.png
Binary file added fa/.gitbook/assets/docs-1.png
Binary file added fa/.gitbook/assets/docs-10.png
Binary file added fa/.gitbook/assets/docs-2.png
Binary file added fa/.gitbook/assets/docs-3.png
Binary file added fa/.gitbook/assets/docs-4.png
Binary file added fa/.gitbook/assets/docs-5.png
Binary file added fa/.gitbook/assets/docs-6.png
Binary file added fa/.gitbook/assets/docs-8.png
Binary file added fa/.gitbook/assets/docs-9.png
Binary file added fa/.gitbook/assets/docs-contribution.png
Binary file added fa/.gitbook/assets/edit-segment (1).png
Binary file added fa/.gitbook/assets/edit-segment.png
Binary file added fa/.gitbook/assets/editing-annotated-replies.png
Binary file added fa/.gitbook/assets/en-env-variable.png
Binary file added fa/.gitbook/assets/en-import-dsl-file-via-url.png
Binary file added fa/.gitbook/assets/en-import-dsl-file.png
Binary file added fa/.gitbook/assets/en-knowledge-add-document.png
Binary file added fa/.gitbook/assets/en-n-to-1.png
Binary file added fa/.gitbook/assets/en-prompt-generator.png
Binary file added fa/.gitbook/assets/en-public-web-app.png
Binary file added fa/.gitbook/assets/en-rag-multiple.png
Binary file added fa/.gitbook/assets/en-rerank-cohere.png
Binary file added fa/.gitbook/assets/en-rerank-explore.png
Binary file added fa/.gitbook/assets/en-rerank-model-api.png
Binary file added fa/.gitbook/assets/en-rerank-setting.png
Binary file added fa/.gitbook/assets/en-variables.png
Binary file added fa/.gitbook/assets/en-web-app-settings.png
Binary file added fa/.gitbook/assets/end-answer.png
Binary file added fa/.gitbook/assets/endpoint-url-2.png
Binary file added fa/.gitbook/assets/endpoint-url.png
Binary file added fa/.gitbook/assets/explore-apps-by-dify.png
Binary file added fa/.gitbook/assets/export-dsl-secret.png
Binary file added fa/.gitbook/assets/export-dsl.png
Binary file added fa/.gitbook/assets/first-party-tools.png
Binary file added fa/.gitbook/assets/full-text-search.png
Binary file added fa/.gitbook/assets/get-model-name.png
Loading