Menu

1 / 10

Code Mode Was 18x Faster Than Tool Calling at 100 Items, and 120x Cheaper

#towardsdatascience#science#code#tool#model
Long article (4054 words) — no AI summary yet.
Reading 0:00
15s threshold

Table of contents

1. The problem with current agent behavior What you will get from this article

2. What tool calling is — and where the cost comes from

3. Code Mode: moving the work out of the context window

4. The three flavors of Code Mode

5. Experiment Four conditions

Task templates

Ground truth

Limitation

6. Results 6.1 Axis 1 — The single-step lookup and chain tasks

6.2 Axis 2 — fan-out tasks

6.3 Success rate results

7. The numbers tested on small models

8. When to use Code Mode

9. Code Mode limitations 9.1 Runtime failures

9.2 Security

9.3 Final words

10. References

1. The problem with current agent behavior

LLM context windows keep getting longer. But it has been shown that model performance drops as the input context grows longer ( Liu et al., 2023 ), and it is better to keep the context window a decent size. The problem is that in the real world, the agent must load the context of the task, skills, and all the tool descriptions in the system.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.