A quick guide to tool-calling in large language models

United Kingdom News News

A quick guide to tool-calling in large language models
United Kingdom Latest News,United Kingdom Headlines
  • 📰 TheRegister
  • ⏱ Reading Time:
  • 70 sec. here
  • 3 min. at publisher
  • 📊 Quality Score:
  • News: 31%
  • Publisher: 61%

A few lines of Python is all it takes to get a model to use a calculator or even automate your hypervisor

Let's say you're tasked with solving a math problem like 4,242 x 1,977. Some of you might be able to do this in your head, but most of us would probably be reaching for a calculator right about now, not only because it's faster, but also to minimize the potential for error.

And so in this hands on, we'll be exploring some of the ways tool-calling can be used to augment the capabilities and address the limitations of LLMs.A system capable of running modest LLMs at 4-bit quantization. Any modern Nvidia graphics card or an AMD 7000-series GPU with at least 6GB of vRAM should do the trick. For Apple Silicon Macs, we recommend at least 16GB of memory.This guide also assumes that you already have the Ollama model runner installed.

By default, Open WebUI will populate the field with an example script that adds a variety of useful tools, including:Finally, give it a name like"BasicTools" and a brief description and click save.To put our tools to use, select your model and start a new chat, then press the"+" icon to the left of the message box and enable BasicTools. This will tell the model to use these tools wherever appropriate for the duration of your conversation.

The second element here is actually the docstring directly under the primary function. This doesn't just tell us what the function does, but it also provides the LLM instructions on what to do with the code.If you're struggling with your model being too conservative in its use of tools, we found it can be helpful to expand your docstrings with instructions on how, when, and in what format the model should utilize the tool.

We have summarized this news so that you can read it quickly. If you are interested in the news, you can read the full text here. Read more:

TheRegister /  🏆 67. in UK

United Kingdom Latest News, United Kingdom Headlines

Similar News:You can also read news stories similar to this one that we have collected from other news sources.

Pet python found after escape into Banchory art galleryPet python found after escape into Banchory art galleryThe 3m snake slithered through a vent and entered the gallery in Banchory, Aberdeenshire.
Read more »

Python sneaks into Scots art gallery causing chaos for over two hoursPython sneaks into Scots art gallery causing chaos for over two hoursBodhi, a female pet reticulated python, was discovered in charity-run art gallery and shop Studio 1 in Banchory, Aberdeenshire.
Read more »

The First Descendant how to get Python and best buildThe First Descendant how to get Python and best buildPython is an SMG in The First Descendant that's made to shred bosses, but you need to know how to get it first and the best build to use.
Read more »

Anaconda's Python-for-Excel escapes Azure Cloud, heads for your PCAnaconda's Python-for-Excel escapes Azure Cloud, heads for your PCBadger, badger, badger your CIO to let you use this, perhaps
Read more »

Core Python developer suspended for three monthsCore Python developer suspended for three monthsCode of Conduct violations include allegations that posts created 'atmosphere of FUD'
Read more »

Missing python found by Birmingham family on blackberry huntMissing python found by Birmingham family on blackberry huntThought to be a ball python, the reptile had been missing for a week before Tom Gallant spotted it.
Read more »



Render Time: 2025-02-22 17:00:42