-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example Response of External Knowledge API #312
Labels
bug
Something isn't working
Comments
To fix the issue with the Change the "records": {
"type": "array",
"items": {
"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."
}
},
"required": ["content", "score", "title"]
},
"title": "A list of records from querying the knowledge base."
} This change will ensure that the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://docs.dify.ai/guides/knowledge-base/external-knowledge-api-documentation
en\guides\knowledge-base\external-knowledge-api-documentation.md
There is an issue with the JSON response generated by Swagger.
The
records
should be an array, but it is represented with{ }
. If implemented as is, it will result in a "500 Internal Server Error: 'str' object has no attribute 'get'" during the hit test in/app/api/controllers/console/datasets/external.py
.Fix:
Can you modify
en\.gitbook\assets\Dify-test.openapi.json
to fix it?The text was updated successfully, but these errors were encountered: