How to Measure Prompt Cache Hit Rate to See How Much Repeated Work the Cache Actually Saves
Record cache read and write tokens from each response, divide read tokens by total input tokens, and move the breakpoint when the…
THE FIELD GUIDE
Understand model formats, context windows, quantization, embeddings, and sampling before choosing settings for a real task.
Record cache read and write tokens from each response, divide read tokens by total input tokens, and move the breakpoint when the…
Validate the called name against your function registry before running anything, return a clear error to the model, and ask it to…
List every field the function cannot run without in required, test with a missing field, and reject the call when one is…
Define the outer object, nest an object or a list of objects inside it, mark the required fields, and validate a sample…
List the allowed values in an enum in the schema, test with a value outside the list, and confirm the model returns…
Use frequency penalty to cut words the model repeats often, presence penalty to push it toward new topics, and test each one…
Raise the repetition penalty above 1.0 in small steps, check the loop breaks, and stop before the penalty damages normal repetition.
Pass the same seed with the same model and parameters, record the seed with the output, and treat the result as a…
Change one setting at a time, keep the other at its default, and compare the outputs on the same prompts before combining…
Decide in advance what to drop when a request overflows, truncate the oldest turns or summarize the middle, and never silently cut…