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] Conversational Agent Unable To Determine What Tool To Use ? #1206

Closed
DebajitKumarPhukan opened this issue Nov 10, 2023 · 2 comments
Closed

Comments

@DebajitKumarPhukan
Copy link

Describe the bug
I tried a Local LLM (LLama2) as the LLM backing the Conversational Agent. The Conversational Agent has 2 tools attached: Retrieval QA Chain Tool and a Serper. I asked for today's date to the agent for which it failed miserably and returned some old date. When I specifically asked to use Server then it managed to search the internet to find the date but failed in json parsing.

The above behavior is reproducible in any local LLM or hugging face LLM.

To Reproduce
Steps to reproduce the behavior:

  1. Load the attached Chatflow.
  2. Run any local LLM and use the API as base URL.
  3. Set Up your free Serper account and configure the API key in the ChatFlow.
  4. Ask What is today's date ?
  5. See error

Expected behavior

  1. The conversational agent shouldn't respond back with any "parse error".
  2. There should be a provision to describe about the "Serper" tool so that we can provide the description to the conversational agent to better understand when to use.

Screenshots
image

Flow
If applicable, add exported flow in order to help replicating the problem.
Local LLM Chatflow - Issues.json

Setup

  • Installation [yarn start]
  • Flowise Version [1.4.1]
  • OS: [Windows]
  • Browser [chrome]

Additional context
Please find attached logs for your reference which will help you to find the areas when the error is thrown.
Local LLM Error Logs.log

@DebajitKumarPhukan
Copy link
Author

DebajitKumarPhukan commented Nov 20, 2023

@HenryHengZJ Please merge this PR when you get sometime which will resolve this issue (default older version of Langchain had issues).
https://github.com/FlowiseAI/Flowise/pull/1255

@HenryHengZJ
Copy link
Contributor

should be resolved after langchain version upgrade - #1281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants