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

feat: support for tools in OllamaChatGenerator #106

Merged
merged 15 commits into from
Oct 2, 2024
Merged

feat: support for tools in OllamaChatGenerator #106

merged 15 commits into from
Oct 2, 2024

Conversation

anakin87
Copy link
Member

@anakin87 anakin87 commented Sep 26, 2024

Related Issues

Proposed Changes:

I'm adding support for tools in OllamaChatGenerator. Similar to OpenAI PR #57.

I'm trying to respect a balance between introducing new things and being compatible with existing code.

How did you test it?

CI, new tests.

Notes for the reviewer

I manually tested the Chat Generator using our notebook.
The implementation generally works well.

The simple use case and processing tool results with the Chat Generator are fully reproducible.

Reproducing the multi-tool chat application (with human in the loop) is not always stable with llama3.2:3b/llama3.1:8b.
The model tends to produce tool calls (even if not needed) and sometimes hallucinates tools.
Also, Ollama support for tools is not fully polished yet. (ollama/ollama#6127)

Checklist

@coveralls
Copy link

coveralls commented Sep 27, 2024

Pull Request Test Coverage Report for Build 11144705556

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 88.807%

Totals Coverage Status
Change from base Build 11128990544: 0.2%
Covered Lines: 1571
Relevant Lines: 1769

💛 - Coveralls

@anakin87 anakin87 changed the title Ollama tools feat: support for tools in OllamaChatGenerator Sep 27, 2024
@anakin87 anakin87 marked this pull request as ready for review September 27, 2024 13:24
@anakin87 anakin87 requested a review from a team as a code owner September 27, 2024 13:24
@anakin87 anakin87 requested review from vblagoje and shadeMe and removed request for a team September 27, 2024 13:24
Copy link
Member

@vblagoje vblagoje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anakin87 I did only a rough pass first to provide some feedback, hopefully useful :-) I'll do another after this one.

Copy link
Member

@vblagoje vblagoje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me, small suggestions here and there. Let's see what @shadeMe says as well

@anakin87 anakin87 requested a review from a team as a code owner October 2, 2024 13:26
@anakin87 anakin87 removed the request for review from a team October 2, 2024 13:26
@anakin87 anakin87 requested a review from dfokina October 2, 2024 13:26
@anakin87 anakin87 merged commit 5e78544 into main Oct 2, 2024
10 checks passed
@anakin87 anakin87 deleted the ollama-tools branch October 2, 2024 13:35
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

Successfully merging this pull request may close these issues.

🧪 Tools: support for tools in OllamaChatGenerator
4 participants