-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
External knowledge base succedded in "Retrieval Testing" but failed after attach it to an agent #9448
Comments
@nicklhy Hello there! I'm here to assist you with any bugs, questions, or contributions you might have. Let's work together to solve this issue! I found a similar closed issue that might be relevant to your problem: Knowledge Retrieval with external knowledge base. This issue was resolved by a pull request titled Fix/agent external knowledge retrieval on October 11, 2024 [1]. In your case, since the "Retrieval Testing" works but the agent fails, it could be related to how the agent is configured to interact with the external knowledge base. Here are a few steps you might consider:
If these steps do not resolve the issue, reviewing the changes made in the pull request that fixed the similar issue might provide additional insights. |
PS, the external RAGFlow knowledge base was connected with the latest RAGFlow. RAGFlow's dify compatible api was defined here. Since the "Retrieval Testing" succeeded after adding this external knowledge base in dify, I guess the problem might be in the dify side ? |
@nicklhy hi nicklhy, would you pls provide some log info and pls try it in basic-chat app or workflow ? |
thanks for your feedback @nicklhy , it's the gitbook document rendering error, |
OK, I mentioned what we discussed here in RAGFlow's corresponding PR. Hope they can repair this problem soon. |
We have corrected the help documentation, thanks for the correction. |
Self Checks
Dify version
0.9.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The test in "Retrieval Testing" works well like below.
![Screenshot from 2024-10-17 17-28-16](https://private-user-images.githubusercontent.com/1146226/377402765-80548d2c-fc9c-4f48-b6bd-a63bbe48e3c5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjIxNjMsIm5iZiI6MTczOTQyMTg2MywicGF0aCI6Ii8xMTQ2MjI2LzM3NzQwMjc2NS04MDU0OGQyYy1mYzljLTRmNDgtYjZiZC1hNjNiYmU0OGUzYzUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDQ0NDIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2JjYWUwOGU3NTE0YjU2YjdlZTY2OWY5MGRiZWE3NmNhNTliYjJiNjNmNTUyNzM4YjQwYmIwYzBiOGZiZDcyOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.zUyBGjTVL-KLmoS62-HEDieiTxSop5yQgG6l-kh1MpI)
But after attach it to an agent, it failed even with the exactly same query.
![Screenshot from 2024-10-17 17-29-28](https://private-user-images.githubusercontent.com/1146226/377403253-61949611-cabc-4178-af4b-5856e193680d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjIxNjMsIm5iZiI6MTczOTQyMTg2MywicGF0aCI6Ii8xMTQ2MjI2LzM3NzQwMzI1My02MTk0OTYxMS1jYWJjLTQxNzgtYWY0Yi01ODU2ZTE5MzY4MGQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDQ0NDIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTlmYjlkNGFhYzEyMDAzMDkxZWUzMWIwODU3ZDUxMTVlZTRkNjVmMzcxMjQ4ZmI3Y2ZmMmEwYmQ4ZjcwZDc1NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ZjF1AeTAKBf1uMgj4gIUFfTRhwy0ePn2rVtN3jR1Q-k)
✔️ Expected Behavior
The agent should works well with an external knowledge base.
❌ Actual Behavior
The agent failed to retrieve info from the external knowledge base.
The text was updated successfully, but these errors were encountered: