Build a secure RAG API
Ship a RAG API where every answer respects who is asking with evals that catch regressions.
- 5 lessons
- Beginner
14 matches in articles, tutorials, lessons, book chapters, AI Lab experiments and projects.
14 results
Ship a RAG API where every answer respects who is asking with evals that catch regressions.
The backend and AI layer of a procurement SaaS: Supabase edge functions that run Claude-powered RFPs, vendor comparisons, readiness assessments, research and email workflows.
When an LLM goes from saying things to doing things, the worst case changes from a bad answer to a bad action. Here is where guardrails actually have to live, and why they make agents more useful, not less.
The secure RAG tutorial's isolation design, on a shared pgvector index of 30 tenants with real embeddings. Post-filtering found 4% of a tenant's answers; iterative scans found 98.5-100%. Each isolation layer caught the other's bugs.
Point an OpenAPI-to-MCP generator at an orders service and you get tools that guess at PATCH bodies, chain several calls to do one task, and run with the service's own credential. This piece sets out three tests for agent tool design: task shape, errors the model can act on, and server-side enforcement. It also covers which gateway practices carry over and when a thin wrapper is still fine.
24 indirect prompt injections, five defences, two Claude models, 1,328 support-agent runs. No attack worked, even with no defence. The damage came from somewhere else.
I'm always happy to help! Get in touch if you have a specific topic in mind.
Contact MeThe more you learn, the more you create opportunities for yourself and others.

Bishal SahaLet's build together
Tell me about the problem. You'll get a clear, honest view of the best way forward.