Walid Sadfi Web and AI engineer

private enterprise RAG

Private RAG for companies: query your documents without exposing them

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

You may be in one of these cases

  • « 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

What I actually do

  • Inventory of sources and access rights before anything is indexed.
  • Document ingestion that keeps headings, for readable citations.
  • Hybrid search (keywords and meaning) in PostgreSQL with pgvector.
  • Cited answers, checked after generation, and refusal when sources are missing.
  • An evaluation set built on your own questions, replayed at every change.
  • Deployment on your infrastructure, API protected by a token.

Proof

The code and the projects that prove it

  • 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-kit
  • aws-rag-infra

    Terraform 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-infra
  • Client reference

    Integrating two AI agents in a company in the medical sector

    Lead handling agent, on-demand writing over a private index; confidential data never leaves the perimeter.

Method

How it works

  1. We talk

    30 min, free

    You explain the problem; I tell you what I would do, the price and the timeline.

  2. I scope

    2 to 5 days, fixed price

    I write down what we do, what we do not do, and how success is measured.

  3. I deliver in stages

    2 to 8 weeks

    You see the result every week, for real, on your data.

  4. I stay

    Maintenance or training

    Your teams know how to use it, everything is documented, and I am reachable.

Questions

The questions I get asked

Where is the data hosted?

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.

Which document formats?

PDF, DOCX, HTML, Markdown and plain text. Headings are kept so each citation points to its original section.

How do you check that answers are right?

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.

What volume of documents?

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.

How much does a document assistant cost?

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.

How long until a first assistant?

A 4-week pilot, on your real documents, with metrics agreed in advance.

Who owns the index and the code?

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

30 minutes to see if I can help

Pick a slot. You leave with an opinion, a price range and a timeline, even if we do not work together.

  • 30 minutes, by video or phone
  • With me, not with a salesperson
  • Free, no commitment
Prefer to write?

Your data is used only to reply to you. No newsletter, no resale. Details in the legal notice.

Book 30 minutes

Free · Malt 5/5