PHP2Shell PHP2Shell alert: check if your website needs the emergency PHP patch Check it →

Private RAG search

Private RAG in Barcelona: your AI answers from your documents

Ask your documents as you would ask an expert colleague. The AI answers citing the document and page, and respects who can see what.

A private RAG is an AI search tool that answers from your internal documents and cites the source, without them leaving your server. For law firms, clinics and manufacturers with a lot of documentation. It is up and running in 3 to 5 weeks, with group permissions and quality testing before handover, in Spanish, Catalan and English.

Timeline
3 to 5 weeks

Who it is for

  • Law firms and advisory firms with thousands of briefs, contracts and rulings
  • Clinics and healthcare centres with protocols, guidelines and internal procedures
  • Manufacturers and engineering firms with technical manuals, standards and product data sheets
  • Public bodies and educational organisations with regulations and documentation that keep changing
  • Teams that waste hours looking for "that document where it said..."

What is included

  • Analysis of the sources: folders, document management system, email or intranet
  • Ingestion of PDF, Word, spreadsheets and scanned documents (with OCR)
  • Vector index in Qdrant with local embeddings and reranker
  • Question interface with citations to the document and page
  • Group permissions: each person only sees what they are allowed to see
  • Automatic updates when documents are added or changed
  • Set of reference questions to measure answer quality

What you get

  • Private search running on your documentation
  • Quality report with the reference questions and their accuracy rate
  • Procedure for adding new sources
  • Technical and permissions documentation

The problem: the knowledge is there, but nobody can find it

Contracts, briefs, protocols, manuals, minutes, internal regulations. Any business with a few years of history builds up thousands of documents and, when someone needs an answer, they search by hand or ask the colleague who knows. The temptation is to upload everything to a cloud ChatGPT, but those are exactly the documents that shouldn’t leave: personal data protected by the GDPR, client information under professional secrecy, industrial know-how or case files. And if you then offer that assistant to your clients, the EU AI Act (Art. 50) also requires you to tell them they are talking to an AI.

A private RAG solves both problems: the AI answers from your documents, cites the source and everything lives on your server. In practice, it is a private company ChatGPT that knows your archive.

How we do it, step by step

  1. Source inventory. Which folders, which document management system, which formats and who can see what. If you are in Barcelona, we do this at your office.
  2. Reference questions. Together we define 30 to 50 real questions with their correct answers. They are the yardstick for the whole project.
  3. Ingestion. We extract the text (including scanned documents), split it into meaningful chunks and record which document and page each one comes from.
  4. Indexing and tuning. We test combinations of chunking, embeddings and reranker until the reference questions come out right.
  5. Interface and permissions. The search is built into the company’s private chat, with access groups.
  6. Handover with metrics. We show you the accuracy rate, the remaining errors and how to reduce them.

The technology, in plain words

  • Embeddings: a small model turns each chunk into a numerical “fingerprint” that captures its meaning. That way it finds “termination” even if you ask about “breaking the contract”.
  • Qdrant: the database where those fingerprints are stored, inside your server.
  • Reranker: a second model that sorts the results by relevance before passing them to the AI.
  • The language model: runs locally with vLLM or Ollama and writes the answer, citing the sources.
  • The interface: Open WebUI or a custom page, connected through the LiteLLM gateway, which logs who asks what.

If you don’t have a server yet, we start with local AI for business and the RAG is built on top.

When we DON’T recommend it

If you have a few dozen documents, a good folder structure and your system’s built-in search are enough. If your documents already live in a tool with a good search of its own, you may only need to connect it. If they are public (for example, legislation published in Spain’s Official State Gazette, the BOE), a cloud service can handle it with no risk to your data. And if the documentation is disorganised, out of date or contradictory, the AI will inherit that mess: sometimes the first step is to put things in order, and we’ll tell you so.

We use it every day

Our own agents, in our Barcelona lab, store and retrieve information with Qdrant, embeddings and a reranker running on our GPUs, without touching the cloud. The agent that manages a family estate in the Penedès also keeps its memory in Qdrant. It is the same component we install in your business, proven in daily use and not just in a demo.

Where it is used most

Law firms and advisors

An assistant that knows your case files and templates, runs inside the firm and never exposes a single piece of client data.

  • Drafts based on your templates
  • Firm-wide search with citations
  • Case file summaries and due diligence
Learn more →

Clinics and healthcare

Less time typing and more time with the patient: transcription and summaries that stay inside the clinic.

  • Consultation transcription
  • Medical record summary
  • Protocol search
Learn more →

Industry and engineering

Your technical know-how, searchable in seconds and without leaving the company network.

  • Technical search with citations
  • Quotes and technical documentation
  • Quality and incidents
Learn more →

Education

Tutors and assistants that teach with your method and your syllabus, without sending student data to the cloud.

  • A tutor that uses your syllabus
  • Preparing materials
  • A model that learns your method
Learn more →

Public sector

AI in Catalan for administrative work, installed inside your security perimeter.

  • Draft reports and resolutions
  • Regulation and case file search
  • Transcription of plenary sessions and meetings
Learn more →

Frequently asked questions

How long does it take to get a private RAG up and running?

Between 3 and 5 weeks, depending on the volume of documents, the number of sources and whether group permissions need to be managed. If you don’t have local AI installed yet, we set up the server first and the RAG goes on top.

What exactly is a RAG?

It is a technique that, before answering, searches your documents for the relevant passages and passes them to the model as context. That way the answer is based on your information rather than on what the model remembers, and you can check the source.

Does it make up answers?

It can get things wrong, but far less often than a generic chatbot, because it answers from real passages and cites where they come from. We configure it to say it can’t find the answer when there is no supporting document, and we measure accuracy before handover.

Does it work with documents in Catalan?

Yes. We use multilingual embedding models that work well in Spanish, Catalan and English, and you can ask in one language about documents written in another, which is very common in Barcelona businesses.

Free assessment

A private RAG is an AI search tool that answers from your internal documents and cites the source, without them leaving your server. For law firms, clinics and manufacturers with a lot of documentation. It is up and running in 3 to 5 weeks, with group permissions and quality testing before handover, in Spanish, Catalan and English.