Git Product home page Git Product logo

Comments (4)

HenryHengZJ avatar HenryHengZJ commented on September 27, 2024 1

Some other community member bumped into this issue as well. In short, gpt-4o doesnt quite follow the function calling input.

Here's the solution:
"Tool Agent + gpt4o, where it would sometimes use "query" as input key, where the system expects "input" as input key. The solution for me was adding: Please ensure that when calling this tool, the input key MUST always be "input". to each tool description and adding When calling any tool, the input key MUST always be "input". to the priming instructions on Tool Agent. Hope this helps for you as well."

from flowise.

chungyau97 avatar chungyau97 commented on September 27, 2024

Hi @AlehandroL, I don't really understand the problem you're facing and I can't replicate it.

  • In LangSmith our code 9 months ago we already using "inputs".
  • In Retriever Tool our code 4 months ago we already using "inputs".

This is my chatflow:

These are my sample data:

Results:
image
image

Could you share your custom tool to me? so I can debug further.

from flowise.

AlehandroL avatar AlehandroL commented on September 27, 2024

Some other community member bumped into this issue as well. In short, gpt-4o doesnt quite follow the function calling input.

This is the problem I tried (poorly) to describe.

The solution on the side of descriptions seems to work in many cases, but I think you could catch this error and try to look for the “query” parameter in the output of the LLM. I know it’s not ideal, but considering that GPT-4o today is (arguably) the most popular model, it’s worth considering a solution for this issue.

@HenryHengZJ

from flowise.

HenryHengZJ avatar HenryHengZJ commented on September 27, 2024

added a potential fix - #2679, closing for now

from flowise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.