Problem. Buyers of an "AI chatbot on your documents" have no way to judge how it behaves before paying. A demo that cites sources, admits uncertainty and resists misuse shows that.
What I built. Ask Zyktech, a Next.js (App Router) app. Every answer shows the source note it came from. A question the notes do not cover gets a separate "I'm not sure" reply that points the visitor to contact Zyktech. Off-topic questions and prompt-injection attempts ("ignore previous instructions", prompt-extraction, requests for code or general tasks) get a short guardrail message with clickable on-topic questions. The model is never called for the clearest refusals.
Abuse protection includes per-IP rate limiting, a maximum message length and a configurable daily request or spend cap. The model and embeddings provider is set by environment variables (OpenAI or Azure OpenAI). The vector store is Supabase pgvector, with an in-memory fallback so it runs and tests with no external account. It includes an ingest script and a SQL migration.
Stack. Next.js, TypeScript, retrieval-augmented generation, Supabase pgvector, OpenAI or Azure OpenAI.
Outcome. It is a demo, not a client system, and it says so on the page. No usage figures exist. Verified in the build: production build succeeds and 25 automated tests pass (retrieval, off-topic, injection, prompt extraction, the on-topic-but-unknown path, and the length, per-IP and daily caps). Nothing here has been used by a client.



0 likes · 0 views · Dec 3, 2026
A working AI knowledge-agent demo. It answers only from Zyktech Soluções notes, names the note it used, and says "I'm not sure" or declines when it should.