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

Update tutorial 40 after 2.9 updates #380

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Update tutorial 40 after 2.9 updates #380

merged 2 commits into from
Jan 30, 2025

Conversation

bilgeyucel
Copy link
Contributor

Fixes #379

@bilgeyucel bilgeyucel requested a review from anakin87 January 29, 2025 12:50
@bilgeyucel bilgeyucel self-assigned this Jan 29, 2025
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -6,15 +6,13 @@
"id": "HJsHqaTksDHt"
Copy link
Member

@anakin87 anakin87 Jan 29, 2025

Choose a reason for hiding this comment

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

If so, you need to call the corresponding tool with the provided arguments and send the tool response back to OpenAI

This step is only needed if you want the LM to rephrase the tool call result.


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I agree but it's usually the case. e.g the tool call result coming from the weather tool is

{"weather": "sunny", "temperature": 21.8, "unit": "fahrenheit"}

@anakin87 anakin87 self-requested a review January 29, 2025 14:33
Copy link
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

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

Looks very good in general.

Please take into account the comment above and maybe also mention somewhere that the unified Tool abstraction allows using function calling/tool calling in the same way with several others Chat Generators in Haystack (all Chat Generators in future).

@bilgeyucel bilgeyucel merged commit aabc327 into main Jan 30, 2025
4 checks passed
@bilgeyucel bilgeyucel deleted the update-tut-40 branch January 30, 2025 12:55
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.

Tutorial 40: Update it after 2.9
2 participants