01
Caching Simple And Semantic
Evaluates Portkey's Simple & Semantic across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's AI Gateway eval coverage.
Mapped capabilities
9 scenarios
- cache.mode=simple exact match
- cache.mode=semantic similarity_threshold
- cache hit verification via headers
Public sample case
- Input
- Config cache={mode:'simple', max_age:3600}. Caller sends two requests with identical messages[] and model; one has temperature=0, the other temperature=0.1.
- Expected behavior
- Simple cache keys on the full request payload — different temperature values are different keys and miss. Verify with x-portkey-cache-status: MISS on both requests. To collapse them, normalize the request body client-side before sending.
- Check
- Pass / fail check






