dify icon indicating copy to clipboard operation
dify copied to clipboard

V1.0.0 chat type can support a contextual knowledge base, but the agent type does not support this feature with the same model

Open cheng-jiru opened this issue 9 months ago • 5 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

v1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

V1.0.0 chat type can support a contextual knowledge base, but the agent type does not support this feature with the same model,the model is deepseek 14B

✔️ Expected Behavior

for the same model,the agent type and chat model can support contextual knowledge base

❌ Actual Behavior

Image Image

cheng-jiru avatar Mar 04 '25 08:03 cheng-jiru

sorry ,another picture is this

Image

cheng-jiru avatar Mar 04 '25 08:03 cheng-jiru

@cheng-jiru 你好! 我是Dosu,一个可以帮助你解决问题、回答疑问并成为贡献者的机器人。在等待人类维护者的期间,我可以帮到你。🤖

The issue you're experiencing seems to be related to the lack of support for contextual knowledge bases in the agent type when using the deepseek 14B model in Dify v1.0.0. Unfortunately, I couldn't find specific information in the repository about why the agent type doesn't support this feature or any configuration settings that might enable it.

However, the error message with status code 400 suggests an API request failure, possibly due to unsupported plugins or tools. Dify has several error handling mechanisms for such cases, including specific errors for unsupported models, file types, and plugin-related issues [1][2][3][4].

To address this, you might want to check if there are any specific configuration settings or dependencies that could be affecting the agent type's ability to use contextual knowledge bases. Additionally, reviewing the error handling mechanisms in place might provide further insights into resolving the API request failure.

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

dosubot[bot] avatar Mar 04 '25 08:03 dosubot[bot]

是这样的,目前agent好像在调用知识库和插件时就是会出现问题,聊天助手和工作流暂时还没有发现这种问题

mu-dan avatar Mar 05 '25 02:03 mu-dan

Image 同样的问题,在 agent 中调用知识库会报错

Leo-WL avatar Mar 09 '25 14:03 Leo-WL

deepseek 7B & V1.0.1 the same issue

GitHubJly avatar Mar 17 '25 06:03 GitHubJly

https://github.com/langgenius/dify/issues/14878#issuecomment-2708883517 This has already been fixed. @Leo-WL — this isn’t the same issue.

As for DeepSeek, it doesn’t support function calling — it’s clearly stated in their official documentation. In Dify, if you don’t configure it for function call mode, it will automatically fall back to the ReACT mode.

So do not select function call when you add deekseek-r1 in Ollama.

crazywoola avatar Apr 16 '25 11:04 crazywoola