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

Toolhouse tool use cookbook #12

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

orliesaurus
Copy link

@orliesaurus orliesaurus commented Nov 11, 2024

Tool use is really important for any LLM model that allows it.

This colab adds an introductory overview and use-case to tool calling with LLaMa 3.1 hosted on Together.
It tries to mimic a real world application: scraping data from a specific social media network and creating an artistic output image.

I've added as many details to make it newcomer proof and I appreciate any insight you might find to improve this work during review.

This commit adds a new cookbook that shows the user how to use tools with a model hosted on TogetherAI
Added a CTA button for Colab for better DX
Renamed notebook to be more explanatory at first glance
Deleted old notebook
Clean up and refinements
@orliesaurus orliesaurus marked this pull request as ready for review November 11, 2024 21:17
@orliesaurus
Copy link
Author

@zainhas

The Colab button URL was wrong, I updated it to point to Tool_use_with_Toolhouse.ipynb
Colab URL fix to point to source
"outputs": [],
"source": [
"from google.colab import userdata\n",
"client = OpenAI(base_url = \"https://api.together.xyz/v1\", api_key=userdata.get(\"TOGETHER_API_KEY\"))\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use the together python API here.

Details in docs here - https://docs.together.ai/docs/quickstart#3-run-your-first-query-against-a-model

Copy link
Collaborator

@zainhas zainhas left a comment

Choose a reason for hiding this comment

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

Added some comments - looks good overall - can we run all the code cells and then should be good to merge.

@orliesaurus
Copy link
Author

Updated as requested - running all code cells. @zainhas

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.

2 participants