Answers
Questions I get asked, answered properly
The useful version of what I would tell you on a call, written to be read, quoted and checked. Nothing here is gated.
Retrieval & RAG
What is retrieval-augmented generation (RAG)?
RAG combines a search step over your own documents with a language model that generates an answer from what it retrieved. It gives models access to private and current information without retraining, and makes every answer traceable to a source.
Should we use RAG or fine-tuning?
RAG adds knowledge; fine-tuning changes behaviour. Choose RAG for private or changing information, fine-tuning for format, tone or narrow tasks. They are complementary, not alternatives, and most teams should try RAG first.
Which vector database should we use for RAG?
Under about a million chunks with PostgreSQL already in your stack, pgvector is usually the right answer. Dedicated vector databases earn their place at large scale, tight latency budgets or complex filtering, not by having better recall.
How should we chunk documents for RAG?
Split on document structure, not fixed character counts. Target 400–800 tokens with 10–15% overlap for prose, prepend title and heading context to each chunk, keep tables intact, and benchmark against a labelled set rather than guessing.
Evaluation & quality
How do you evaluate a RAG system?
Split evaluation into retrieval metrics (recall@k, MRR, nDCG against known-correct passages) and generation metrics (groundedness, citation accuracy, task completion). 150–300 curated cases in CI catches real regressions.
How do you reduce hallucinations in an LLM system?
Fix retrieval before prompts: most hallucinations are the model answering from context that never contained the answer. Then constrain generation with citations and refusal, verify claims for high-stakes output, and gate on measured groundedness.
Governance & regulation
Is a RAG system GDPR compliant?
RAG is generally more GDPR-tractable than fine-tuning because personal data stays deletable and access-controlled in an index rather than baked into weights. You still need a lawful basis, a DPA with your model provider, a valid transfer mechanism, and usually a DPIA.
Is our AI system high-risk under the EU AI Act?
Risk tier follows the use case, not the technology. Annex III lists the high-risk categories: employment, credit, essential services, law enforcement and others. Internal knowledge tools are usually limited risk with transparency duties only.
Platform & delivery
How long does it take to build a production LLM application?
Prototype in 2–3 weeks, production in 8–16. The gap is parsing, evaluation, access control and observability. Late discovery of poor document quality is the most common cause of overrun.
Should we build or buy an AI solution?
Buy generic horizontal tools, and build where proprietary data, specific workflow or domain judgement is involved. Most organisations end up hybrid. Testing feasibility on real data first usually settles the argument.
Cost & economics
How much does it cost to build a RAG system?
Expect €60k–€180k to build a production RAG system and €500–€4,000 per month to run one. Document quality and source system count drive the build cost; query volume drives the running cost, and it is usually the smaller number.
How can we reduce our LLM API costs?
Caching, model routing, context trimming and prompt-prefix reuse together typically cut LLM inference bills 60–80%. Each needs evaluation backing, because cheaper routing degrades some task types invisibly.
Not on the list?
If you have a question that is not written up here, ask it. I answer questions from people who are not clients, and it is how most engagements start.
No NDA needed to talk. EU and UK hours in full, with afternoons overlapping US Eastern and Central.