Prompt caching

Providers charge less for tokens at the start of a prompt they have already seen. When two calls share the same opening text, the second one can reuse that prefix from cache instead of paying full price for it.

Weflayr looks at each feature’s real calls, measures how much of that achievable caching you already capture, and proposes two kinds of improvements to capture the rest:

Open a feature from the Optimisation engine front page to see its analysis.

Details on prompts

View details on prompts on a finding shows the real calls it applies to, each as it ran versus with the fix, highlighting the tokens that would move into cache.

Per-example view comparing a prompt as it ran and with the caching fix applied