Skip to content

TechnicalAI glossary

Prefix cache

Providers charge significantly less for a request prefix that has already been seen. If the same long preamble is sent with every call, always place it at the start and keep it identical: it will be cached. Moving it by even one character cancels the benefit.

In other words

The morning coffee always ordered the same: the waiter no longer needs to listen to the order.

Alyriaz articles that mention it

Go further at the Academy

More in this family: Technical

Find it in the full glossary →All the terms