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

Better support for Tools #7674

Open
anakin87 opened this issue May 9, 2024 · 2 comments
Open

Better support for Tools #7674

anakin87 opened this issue May 9, 2024 · 2 comments

Comments

@anakin87
Copy link
Member

anakin87 commented May 9, 2024

In the past, only OpenAI provided support for function calling.
Today, many Language Model providers/libraries support this feature, using Tools specification or similar.

Also in the context of the upcoming work for Agents, we should:

  • review/update the ChatMessage abstraction to support Tools
  • make function calling work in a unified way for different Generators, based on the ChatMessage abstraction

Resources:

@vblagoje @julian-risch @mrm1001

@vblagoje
Copy link
Member

@anakin87 thanks for this write up; while at it, it would be nice to have a discussion about:

  • allowing ChatMessage content payload to be of type different than string
  • use our own components/pipelines as tools automatically (e.g. we generate function definitions for them so they can be used as tools)

@CarlosFerLo
Copy link
Contributor

It will also be cool if we could use like a response parser component that worked with any generator and enriched responses, for example to use function calling or to extract keywords or something. This way we could both support OpenAIs models but also open source ones that may have different ways of function calling.

Specially as making the model say, for example:

Thought: $ Some text $
Action: $ Tool key $
Action Input: $ Input to the tool $

as in the ReAct Paper might be beneficial for model generation as it is more natural than writing json objects or similar. This way everyone can customize the parsing to their specific use case and model, asi if I am writting now an example to implement Chameleon on haystack and the Parser might be really different from the one at a normal React or with OpenAI functions.

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

3 participants