Skip to content
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

[Bug]: Can't connect Dify #4449

Open
1 task done
quchenchen opened this issue Jan 12, 2025 · 5 comments
Open
1 task done

[Bug]: Can't connect Dify #4449

quchenchen opened this issue Jan 12, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@quchenchen
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

2914

RAGFlow image version

0.15.0 full

Other environment information

Ragflow:v0.15.0 full
Dify:0.15.0

Actual behavior

在dify的External Knowledge API中增加ragflow知识库,api分别使用mysite.com/api/v1/datasets mysite.com/api/v1 mysite.com/api/v1 /api/v1/retrieval 等 api接口都是通的,但是在dify中进行Retrieval Test,结果为空,在ragflow中日志提示:
2025-01-12 20:56:34,615 INFO 197 172.19.0.2 - - [12/Jan/2025 20:56:34] "POST /api/v1/retrieval HTTP/1.1" 200 -
2025-01-12 20:56:56,912 INFO 19 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-01-12T20:56:56.910604", "boot_at": "2025-01-12T16:05:42.311285", "pending": 0, "lag": 0, "done": 1, "failed": 0, "current": null}
01-12 20:57:45,953 INFO 197 172.19.0.2 - - [12/Jan/2025 20:57:45] "POST /api/v1/datasets/retrieval HTTP/1.1" 200 -
2025-01-12 20:57:56,956 INFO 19 task_consumer_0 reported heartbeat: {"name": "task_consumer_0", "now": "2025-01-12T20:57:56.954931", "boot_at": "2025-01-12T16:05:42.311285", "pending": 0, "lag": 0, "done": 1, "failed": 0, "current": null}

Expected behavior

希望可以在dify中对接ragflow知识库

Steps to reproduce

dify中增加外部知识库
按ragflow api增加 知识库连接
dify中创建知识库

Additional information

No response

@quchenchen quchenchen added the bug Something isn't working label Jan 12, 2025
@JinHai-CN JinHai-CN changed the title [Bug]: dify中对接ragflow知识库失败 [Bug]: Can't connect Dify Jan 13, 2025
@JinHai-CN
Copy link
Contributor

We intend to create an international community, so we encourage using English for communication.

@JinHai-CN
Copy link
Contributor

  1. Use latest version, such as Nighly.
  2. RAGFlow already support Dify, please check: Feat:Compatible with Dify's External Knowledge API #2848
  3. Have you check API doc of retrieval test?

@quchenchen
Copy link
Author

Thank you for the reminder. I will go through the guidelines and check everything again. Thank you.

@quchenchen
Copy link
Author

In Dify (0.14.2), I can retrieve and hit the knowledge base using /api/v1/dify, but in Dify (0.15.0), the same method triggers a Dify error: Application error: a client-side exception has occurred (see the browser console for more information).

  1. Use latest version, such as Nighly.
  2. RAGFlow already support Dify, please check: Feat:Compatible with Dify's External Knowledge API #2848
  3. Have you check API doc of retrieval test?

@JinHai-CN JinHai-CN reopened this Jan 14, 2025
@JinHai-CN
Copy link
Contributor

In fact, this API is used by Dify. You can try to access the API used by cURL or postman to check if the response is correct and aligned with Dify's requirement. If not, please let us know to fix the issue. Otherwise, please check with Dify team for reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants