Lattice
Skip to content

One call, maybe a system prompt

A ai chatbot stack.

AI chatbot · 100,000 req/mo. At the default case — 100k requests a month, no further constraints — drawn from the 112 tools already in the index. Each pick is a tool whose own skip-when is stated, because a stack built on tools it does not know how to overcommit to is a guess. Describe your case to change it.

The picks

  • Routing and prompt optimisation tuned on your own traffic.

    Watch out: Self-hosting or auditability is a requirement.

    Consider Portkey instead when a managed gateway with guardrails and analytics already bundled

  • Local generation with a UI tuned for interactive, long-form use.

    Watch out: You need headless serving at scale.

    Consider llama.cpp instead when the constraint is hardware, not throughput: no GPU, or an edge box

  • Schema-validated extraction with typed retry and partial streaming.

    Watch out: You need a hard token-level guarantee rather than validation.

    Consider Agenta instead when open-source prompt management with a playground and versioning

  • Validators that check output against a schema you define.

    Watch out: You need free-form moderation rather than structural checks.

    Consider Llama Guard instead when one classifier covering both prompt and response moderation

  • Self-hostable tracing, prompts and evals in one place.

    Watch out: You want a fully managed product with a support contract.

    Consider Arize Phoenix instead when openTelemetry-native evaluation you can run yourself

The costs and the risks

Estimated cost
$40–$238
per month
A heuristic band from query volume, not a vendor quote.
Confidence
87%
Lower when constraints narrow the field, higher when the workload has a well-worn default.

Cost driversNot Diamond

Biggest risk at the default case: Prompt changes without evals are guesses. Version prompts and measure before routing or self-hosting.

Rules of thumb

  • Route on measured quality, not on price alone. A cheaper model that fails your eval set is not cheaper.
  • Benchmark at your concurrency, not at batch size one. A runtime that wins a single-stream demo can lose badly at fifty concurrent users.
  • Prompt changes without evals are guesses. Version prompts and measure before you ship a wording change.
  • A guardrail without an eval is a guess about which failures matter. Write the eval that found the failure, then the guardrail that blocks it.

Quick answers

What should you run for the AI chatbot stack?
Routing: Not Diamond. Inference: KoboldCpp. Prompts: Instructor. Guardrails: Guardrails AI. Evals: Langfuse. Prompt changes without evals are guesses. Version prompts and measure before routing or self-hosting.
What should you use for routing in the AI chatbot stack?
Not Diamond: routing and prompt optimisation tuned on your own traffic. Watch out: self-hosting or auditability is a requirement. Consider Portkey instead when a managed gateway with guardrails and analytics already bundled.
What should you use for inference in the AI chatbot stack?
KoboldCpp: local generation with a UI tuned for interactive, long-form use. Watch out: you need headless serving at scale. Consider llama.cpp instead when the constraint is hardware, not throughput: no GPU, or an edge box.
What should you use for prompts in the AI chatbot stack?
Instructor: schema-validated extraction with typed retry and partial streaming. Watch out: you need a hard token-level guarantee rather than validation. Consider Agenta instead when open-source prompt management with a playground and versioning.
What should you use for guardrails in the AI chatbot stack?
Guardrails AI: validators that check output against a schema you define. Watch out: you need free-form moderation rather than structural checks. Consider Llama Guard instead when one classifier covering both prompt and response moderation.
What should you use for evals in the AI chatbot stack?
Langfuse: self-hostable tracing, prompts and evals in one place. Watch out: you want a fully managed product with a support contract. Consider Arize Phoenix instead when openTelemetry-native evaluation you can run yourself.
What does the AI chatbot stack cost per month?
$40–$238 a month at the default case: a heuristic band from query volume, not a vendor quote. Cost drivers: Not Diamond.

Ask an AI about this page

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

A starting point, not a prescription. The recommendation at the default case is what the engine would tell a stranger with your workload; the recommendation at your case is what it tells you once it knows the constraints. The Stack Builder holds both — the builder link preselects this workload and starts with your volumes from here.