Sample Co — Knowledge Base AI

Demo platform: Next.js + TypeScript, Postgres + pgvector retrieval, local embeddings, and real model routing. Answers cite the chunks they used.

DEMO — sample dataEntra ID SSO: OIDC-ready, activates with your tenant

Session…

Routing log — every decision, recorded

The router classifies each query as a simple lookup or a multi-source synthesis, picks a generation leg, and logs the decision here with its latency. Generation legs: (a) grounded extractive composer — local, runs today with no API key; (b) Claude API leg — wired in code and auto-activates when ANTHROPIC_API_KEY is set for this service; currently key-gated, so leg (a) composes answers.

WhenQueryRouteModel / legLatencySources
11/25/2026, 6:16:21 AMWhat is the Sample Co refund policy?synthesis (4 distinct sources retrieved)extractive-composer (local, no key)64 ms4
11/25/2026, 6:14:40 AMWhat is the Sample Co refund policy?synthesis (4 distinct sources retrieved)extractive-composer (local, no key)33 ms4
11/25/2026, 6:09:06 AMHow do I bake chocolate chip cookies?no-matchnone7 ms0
11/25/2026, 6:09:06 AMWhat are the SLA response times for a Priority 1 incident?synthesis (4 distinct sources retrieved)extractive-composer (local, no key)37 ms4
11/25/2026, 6:09:06 AMCompare the Starter and Growth plans and explain how refunds worksynthesis (synthesis signal "compare")extractive-composer (local, no key)11 ms3
11/25/2026, 6:09:05 AMWhat is Sample Co refund policy?synthesis (4 distinct sources retrieved)extractive-composer (local, no key)13 ms4
11/25/2026, 6:09:05 AMWhat does a home warranty cover?synthesis (3 distinct sources retrieved)extractive-composer (local, no key)456 ms3