All Questions
Llm Gateway Cost And Caching easy

Your semantic cache uses a loose similarity threshold. Users asking "How do I cancel my order?" sometimes get the cached answer for "How do I cancel my subscription?". What should you change?

  1. A Raise the similarity threshold so only very close queries count as cache hits.
  2. B Lower the similarity threshold so the cache considers more candidate matches.
  3. C Increase the cache TTL so the stored answers stay valid for a longer period.
  4. D Use a larger embedding dimension but keep the same similarity match threshold.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions