System Design Patterns: From Fundamentals to Real Systems
Vote

0% completed

​

Semantic Caching

1. The Incident

The store's support assistant costs about $2,000/day in inference, which means running the model to produce answers. An analysis of one week of queries finds the cause. 40% of all questions are rephrasings of the same 200 or so questions.

"What's your return policy?" appears in a thousand phrasings: "can I send this back," "how do returns work," "do you take returns." Each one costs the full generation price, about $0.002 and 2.5 seconds. Each one also produces an answer that the model servers (the fleet) have already written thousands of times today.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content