Lattice
Skip to content

7 symptoms

Start from what is wrong.

Nobody opens a directory because they want a vector database. They open it because answers are wrong, or slow, or the bill doubled. Pick the symptom; each one is an ordered checklist through the stack, cheapest check first, with the tools worth reaching for at each step and when to skip them.

Band I · Compute— “too slow, too expensive”

Band II · State— “wrong answers”

Band III · Control— “unreliable, unmeasured”

Rules of thumb

  • Check the cheapest cause first. Most slow, costly or wrong AI apps are fixed by a trace and a prompt change, not a migration.
  • Name the symptom before the layer. 'Too slow' is a measurement; 'we need a new runtime' is a guess.
  • Change one thing at a time and re-run the eval. Two changes at once teach you nothing.

Quick answers

Why is my LLM app slow?
Most often long prompts, sequential calls that could run in parallel, or no streaming. Trace a slow request end to end before changing the model or runtime.
Why is my LLM app expensive?
Usually oversized prompts, an oversized model for easy requests, or missing caching. Measure tokens per request by route before switching providers.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.