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

Agent-chat can't retrival data from ‘Knowledge’ #4481

Closed
4 tasks done
sanmmm opened this issue May 17, 2024 · 2 comments
Closed
4 tasks done

Agent-chat can't retrival data from ‘Knowledge’ #4481

sanmmm opened this issue May 17, 2024 · 2 comments
Labels
🐞 bug Something isn't working 🤖 feat:agent Agent related topics

Comments

@sanmmm
Copy link

sanmmm commented May 17, 2024

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.8

Cloud or Self Hosted

Cloud

Steps to reproduce

I created an agent chat. Then I added the Knowledge I had prepared and turned on 'Citations and Attributions'. But after I asked some questions, the corresponding answer was irrelevant, 'Citations' did not come up

✔️ Expected Behavior

After I asked, the answers returned were retrieved from the knowledge, and 'Citations' appear successfully

❌ Actual Behavior

After I asked some questions, the corresponding answer was irrelevant, 'Citations' did not come up

Copy link

dosubot bot commented May 17, 2024

To address the issue with the agent chat not retrieving data correctly from the 'Knowledge' section and missing 'Citations' in Dify version 0.6.8, follow these targeted steps:

  1. Verify Knowledge Base Integration: Ensure your knowledge base is correctly integrated so the agent can access the necessary information. This step is crucial for the agent to generate relevant answers and citations.

  2. Optimize Instructions: Make sure the instructions provided to the agent are clear and detailed. This helps in guiding the agent to utilize the knowledge base more effectively.

  3. Check Configuration of Tools and Plugins: Confirm that all required tools and plugins are correctly added and configured. This includes ensuring that any external plugins like Google Search or Wikipedia are properly set up with the correct API keys if required.

  4. Adjust Agent Settings: Review the agent settings to ensure the model is correctly configured for optimal use. This involves selecting the right inference mode and ensuring the model is set up to effectively use the knowledge base.

  5. Utilize Debugging and Preview Features: Use the debugging and preview tools to test the agent's performance in retrieving data and generating citations. This can help identify any setup or integration issues.

For further assistance, consider checking the Dify documentation on Agent Assistant and Chat, as well as keeping an eye on similar discussions and issues in the Dify repository for any updates or solutions shared by the community.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added 🐞 bug Something isn't working 🤖 feat:agent Agent related topics labels May 17, 2024
@crazywoola
Copy link
Member

crazywoola commented May 18, 2024

The agent will choose to use the 'knowledge' based on the description of the 'knowledge', so you should refine that to make sure the agent will be able to use that. Basically, it's the same with tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🤖 feat:agent Agent related topics
Projects
None yet
Development

No branches or pull requests

2 participants