To make a distinction, knowledge bases independent of the Dify platform are collectively referred to as “external knowledge bases” in this article.
For developers with advanced content retrieval requirements, the built-in knowledge base functionality and text retrieval mechanisms of the Dify platform may have limitations, particularly in terms of customizing recall results.
Due to the requirement of higher accuracy of text retrieval and recall, as well as the need to manage internal materials, some developer teams choose to independently develop RAG algorithms and independently maintain text retrieval systems, or uniformly host content to cloud vendors’ knowledge base services (such as AWS Bedrock).
As a neutral platform for LLM application development, Dify is committed to providing developers with a wider range of options.
The Connect to External Knowledge Base feature enables integration between the Dify platform and external knowledge bases. Through API services, AI applications can access a broader range of information sources. This capability offers two key advantages:
Principle of external knowledge base connection
How to connect with AWS Bedrock Knowledge Base
Dify provides an official LlamaCloud plugin that helps you quickly connect to LlamaCloud knowledge bases.
LlamaCloud
With the LlamaCloud plugin, you can directly use LlamaCloud’s powerful retrieval capabilities in the Dify platform without writing custom APIs.
For more information about how it works, please refer to the plugin’s GitHub repository.
The following video demonstrates in detail how to use the LlamaCloud plugin to connect to external knowledge bases:
How to Fix the Errors Occurring When Connecting to External Knowledge API?
Solutions corresponding to each error code in the return information:
Error Code | Result | Solutions |
---|---|---|
1001 | Invalid Authorization header format | Please check the Authorization header format of the request |
1002 | Authorization failed | Please check whether the API Key you entered is correct. |
2001 | The knowledge is not exist | Please check the external repository |
Edit this page | Report an issue