AI Engineering
RAG Development and LLM Applications That Answer From Your Own Data
Retrieval-augmented generation (RAG) lets an LLM answer from your documents and data instead of from memory. A basic version takes an afternoon. A version people can trust takes careful work on ingestion, retrieval and evaluation, and that is where I spend my time.
Who this is for
- Companies whose knowledge is spread across PDFs, wikis, tickets and databases
- SaaS products adding a search or assistant feature over customer data
- Support teams that want answers drawn from approved documentation, with citations
- Teams with a RAG prototype that gives confident wrong answers
What I can do for you
Document ingestion
Parsing PDFs, tables and messy exports, keeping document structure and metadata, and handling updates and deletions as sources change.
Embeddings and chunking
Choosing chunking based on how your documents are organised, and testing embedding models on your own queries.
Vector databases
pgvector when PostgreSQL is already in place and scale allows, or a dedicated vector store when the numbers justify running one.
Retrieval pipelines
Hybrid search that combines keywords and vectors, metadata filters, query rewriting and reranking, with permissions enforced at retrieval time.
Context management
Deciding what the model sees and in what order, keeping prompts within budget, and citing sources so answers can be checked.
Evaluation and deployment
Measuring retrieval and answer quality separately, tracing every step in production, and feeding real failures back into the test set.
What separates a production RAG system from a demo
When a RAG system gives a bad answer, the cause is usually retrieval rather than the model: the right passage was never found. So I evaluate retrieval on its own, using real questions from your users. It is also why pure vector search is seldom enough. Product codes, names and exact terms are where keyword search is strong, and combining the two usually does better than either alone.
Access control has to be designed in from the first day. If one customer’s documents can reach another customer’s prompt, the system is broken no matter how good its answers are. Filters are applied during retrieval, not after generation. My guide on building production-ready RAG applications covers this in more detail.
Do you need RAG, or something simpler?
If your source material fits comfortably in a prompt, you may not need retrieval at all. If people need exact records, such as an order status or a figure from a table, a structured database query will beat semantic search. RAG is the right tool for answering natural-language questions over a large body of changing text.
RAG and fine-tuning solve different problems. RAG gives a model access to knowledge, while fine-tuning changes its behaviour or style. When your information changes regularly, or answers must point to a source, RAG is normally the right starting point.
Technologies I typically use
Related project experience
AgTech SaaS
Pasture.io
Long-running SaaS engineering with AI added to a live product, not a standalone demo.
Read the Pasture.io case study
Frequently asked questions
Which vector database should we use?
If you already run PostgreSQL, pgvector is often the simplest place to start, because you avoid operating another system and keep vectors next to your data and permissions. A dedicated store makes sense when scale or search features outgrow it.
How do you stop a RAG system from making things up?
No method removes this risk entirely, but it can be reduced a lot: better retrieval, instructions to answer only from the supplied context, visible citations, the ability to say “I don’t know”, and evaluations that catch regressions.
Can RAG work with private or regulated data?
Yes, with care. Options include region-specific or self-hosted models, strict access filtering and limited retention. The right design depends on your specific obligations, so we would review those with your compliance team early on.
Field notes
- pgvector adds vector similarity search to PostgreSQL with HNSW and IVFFlat indexes, so retrieval can live in the same database, transactions and backups as your application data. pgvector (GitHub) (opens in a new tab)
Facts verified against the linked sources; page maintained by Hendra Nicholas. Last updated .
Related services
AI Engineering
LLM features and AI automation added to real products, with evaluation, cost control and security built in.
AI Agent Development
Agents and multi-agent workflows with scoped tools, human approval steps and full monitoring.
Python, Django & FastAPI
Production Django and FastAPI backends, and the Python services that connect your product to AI.
Further reading: What Does an AI Feature Cost? Real Budget Ranges for 2026, Mastering API Versioning: Build Backward‑Compatible Services That Scale, Building Production-Ready RAG Applications
Have a project in mind?
Tell me what you're building and where you need help. I'll tell you honestly whether I'm the right person for it.