by kurokobo ยท v0.0.4
Small tools for working with Dify Knowledge API.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Small tools for working with Dify Knowledge API:
The DSL file of the demo app for this plugin is available on GitHub.
After installing the plugin, navigate to the Tools or Plugins page and then click on the Knowledge Toolbox plugin to configure it.
By clicking on the API Key Authorization Configuration button, you can set following fields to use this plugin in your app.
Authorization Name
Workspace A @ Dify Cloud, Workspace B @ Self-Hosted Dify, etc.Dify Knowledge API Base URL
/v1.https://api.dify.ai/v1 for Dify Cloud, or http://api:5001/v1 for Docker-based self-hosted Dify.Dify Knowledge API Key
Knowledge > API Access > API Key in the Dify Console.You can add multiple authorizations for different Dify Knowledge APIs, and can select one of them when using the tools in your app.
This is a tool to retrieve the full doc by concatenating all the chunks of the specified document in Knowledge. With this tool, for example, you can force the LLM node to always refer to the entire content of a specific document, which is quite useful.
knowledge_id
/datasets/<knowledge_id>).document_id
/datasets/<knowledge_id>/documents/<document_id>).delimiter
As text output variable, you can get the full doc of the specified document as a single (big, long) string by concatenating all of its chunks using the specified delimiter.
โ ๏ธ USE WITH CAUTION โ ๏ธ
/upload-file endpoint of the Dify Knowledge API, which this tool relies on, has been removed (see here).This is a tool to retrieve the download URLs for files included in the results of the Knowledge Retrieval node. With this tool, you can provide the download URLs of the files in the workflow results.
context
format
contextYou can input the result of the Knowledge Retrieval node to the context parameter as follows:
result (Array[Object]) as the arg1 of the Template node.output (String) of the Template node as the context of the Add File URL to Citations node.You can choose the output format:
full
download_url field.download_url field", you can show users the actual document instead of just chunks.minimal_json
minimal_markdown
chunks_markdown
โ ๏ธ USE WITH CAUTION โ ๏ธ
/upload-file endpoint of the Dify Knowledge API, which this tool relies on, has been removed (see here).This is a tool to retrieve the uploaded file in Knowledge.
With this tool, you can use Knowledge like a simple file server. This is useful when you want to retrieve specific files or their contents within your workflow and use them as templates, for example.
If you want to retrieve the contents of a file that isn't plain text, the โ Get Full Doc tool might be appropriate.
knowledge_id
/datasets/<knowledge_id>).document_id
/datasets/<knowledge_id>/documents/<document_id>).format
You can choose the output format of the file:
json
text output variable./datasets/{dataset_id}/documents/{document_id}/upload-file (GET).url
text output variable.link
text output variable.file
files output variable.content
text output variable.See the CHANGELOG.md on GitHub for the latest updates and changes to this plugin.
See the PRIVACY.md on GitHub for details on how we handle user data and privacy.
If you have any questions, suggestions, or issues regarding this plugin, please feel free to reach out to us through the following channels: