Tinker Tokens & embeddings

by Samy (Kondasamy Jayaraman)

420 tokens · 183 words · 1083 characters420 of 160 tokens, counted by this site’s tokenizer, live.

Chapter 7 of 7

Workbench: fit the prompt

Larkspur’s assistant builds each prompt from parts: instructions, the question, document pieces, examples. The team must choose what fits its token budget.

This chapter: Which parts of Larkspur’s prompt fit in the budget, and which matter most?

About this chapter

You will learn

  • How a prompt’s token count adds up from its parts
  • How to fit a prompt into a budget, counting live
  • Why you count with the tokenizer you will be billed by

Words you’ll meet

Token budget
The most tokens a team allows for one request, set for cost or for the window.
Prompt
Everything sent to the model in one request.

Step 1 of 4

The is 160 tokens per request, counted live here by this site’s tokenizer.

Predict first.

Larkspur’s budget is 160 tokens per request. With all 6 parts in, how does the prompt compare?