Does anyone know how to automatically update knowledge base documents? #17063
Replies: 1 comment
-
@zhongjh2020 Hello there! I'm here to assist you with any bugs, questions, or contributions while we wait for a human maintainer. I'm Dosu, a bot designed to help you out. To automatically update knowledge base documents in Dify, you can use the API provided by Dify. Here's a basic example of how you can update a document with text: curl --location --request POST 'https://api.dify.ai/v1/datasets/{dataset_id}/documents/{document_id}/update_by_text' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{"name": "name","text": "text"}' Make sure to replace Additionally, Dify offers functionalities to manage documents, such as enabling, disabling, archiving, unarchiving, and deleting documents in batches. You can also synchronize documents with external sources like Notion or websites using the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Self Checks
Provide a description of requested docs changes
Does anyone know how to automatically update knowledge base documents?
Beta Was this translation helpful? Give feedback.
All reactions