private-rag-kit
Self-hosted private RAG: hybrid BM25 + vector search, verified citations, refusal when the sources do not hold the answer, evaluation loop.
View the code › private-rag-kitprivate enterprise RAG
A private RAG lets you query your internal documents in plain language, with cited answers, without sending your data to a third-party service. I deploy it on your infrastructure (OVH, AWS, on-premise) with hybrid search and evaluations.
Your situation
« Our teams waste time searching our documents. »
« We want an assistant on our documents, without sending them just anywhere. »
« We tried a chatbot, and it makes answers up. »
What I do
Proof
Self-hosted private RAG: hybrid BM25 + vector search, verified citations, refusal when the sources do not hold the answer, evaluation loop.
View the code › private-rag-kitTerraform module for a private RAG API on AWS: VPC with endpoints, TLS ALB, ECS Fargate, RDS PostgreSQL with pgvector, secrets and CloudWatch alarms.
View the code › aws-rag-infraClient reference
Lead handling agent, on-demand writing over a private index; confidential data never leaves the perimeter.
Method
30 min, free
You explain the problem; I tell you what I would do, the price and the timeline.
2 to 5 days, fixed price
I write down what we do, what we do not do, and how success is measured.
2 to 8 weeks
You see the result every week, for real, on your data.
Maintenance or training
Your teams know how to use it, everything is documented, and I am reachable.
Questions
On your infrastructure, with a host of your choice (OVH for example), in your AWS account or on your servers. The index lives in PostgreSQL; with a self-hosted model, nothing leaves the perimeter.
PDF, DOCX, HTML, Markdown and plain text. Headings are kept so each citation points to its original section.
Every sentence must cite a source, and citations are checked after generation; an invalid citation leads to a refusal rather than a guess. An evaluation set measures retrieval relevance, accuracy, citation rate and refusal quality.
For a small corpus, an in-memory index is enough. For production volumes, PostgreSQL with pgvector and suitable indexes takes over. Sizing happens during scoping, on your real documents.
The one-hour diagnosis is free. The 4-week pilot costs €6,000 excl. VAT, at a fixed price, and the rollout is quoted once the results are measured.
A 4-week pilot, on your real documents, with metrics agreed in advance.
You do, from day one. The code, the index, the evaluation sets and the access are in your name; you can leave with all of it.
Next step
Pick a slot. You leave with an opinion, a price range and a timeline, even if we do not work together.
Free · Malt 5/5