Re:Native JSON Output from GPT-4
by adultSwim on Wednesday June 14, 2023 @03:59PM
(#36331713)
Running an LLM every time someone clicks on a button is expensive and slow in production, but probably still ~10x cheaper to produce than code.
[ Parent
| on HN ]
New techniques like semantic caching will help. This is the modern era's version of building a performant social graph.
What's semantic caching?
With LLMs, the inputs are highly variable so exact match caching is generally less useful. Semantic caching groups similar inputs and returns relevant results accordingly. So {"dish":"spaghetti bolognese"} and {"dish":"spaghetti with meat sauce"} could return the same cached result.