Skip to content
The Revotech
Service 12

RAG development services: answers from your own documents, with sources

Most poor RAG answers are retrieval failures, not model failures: the right passage was never found, was cut in half when the document was split, or was outranked by an older version. We treat retrieval as the main engineering problem (how documents are parsed, chunked, embedded, filtered and ranked) and measure it separately from the answers it feeds.

Stacks of paper documents and file folders
Photo: Unsplash

What is rag development?

We build retrieval-augmented generation (RAG) systems that answer from your own documents, tickets and databases, cite their sources and respect who is allowed to see what, for knowledge base chatbots, enterprise search and customer-facing assistants.

Most poor RAG answers are retrieval failures, not model failures: the right passage was never found, was cut in half when the document was split, or was outranked by an older version. We treat retrieval as the main engineering problem (how documents are parsed, chunked, embedded, filtered and ranked) and measure it separately from the answers it feeds.

Capabilities

Everything this service covers

What we do on the left, what actually lands in your hands on the right.

Capabilities

  • Knowledge base chatbots for staff and customers
  • Enterprise search with LLM-generated answers
  • Document parsing for PDFs, Office files, tables and scans
  • Chunking, embedding and metadata design
  • Vector database integration
  • Hybrid search and reranking
  • Permission-aware retrieval
  • Incremental indexing and freshness checks

Deliverables

  • A source inventory with owners, update frequency and access rules
  • An ingestion pipeline that keeps the index in step with your sources
  • A retrieval and answer service that cites its sources
  • A chat or search interface, or an API for your own front end
  • A retrieval and answer evaluation suite
  • Monitoring of unanswered and low-confidence questions
PythonTypeScriptPostgreSQLpgvectorElasticsearchOpenAI APIAnthropic APIAWSAzure

Not sure which of these you actually need?

Talk to our team
How it works

Our approach on this service

01

Parse and chunk by structure

Documents are split along headings, sections and table boundaries rather than at a fixed length, with the title and metadata carried onto every chunk. Tables, scans and slides get their own handling, because a parser that flattens them produces chunks nobody can retrieve.

02

Hybrid retrieval, then reranking

Keyword search catches exact terms such as product codes and clause numbers that embeddings miss; vector search catches paraphrase. We combine the two, then rerank the candidates with a reranking model before anything reaches the LLM, so the context it receives is short and relevant.

03

Permission-aware from the index up

Each chunk carries the access rules of its source document, and retrieval filters on the requesting user's identity before ranking. The model never sees what that user could not open themselves, which is a far stronger control than instructing it not to repeat things.

04

Measure retrieval and answers separately

An evaluation set of real questions, each paired with the passages that answer it, scores retrieval on its own, then the faithfulness and citation accuracy of the generated answer. When an answer goes wrong, the trace shows which stage failed.

Technology

The stack we build and maintain on

Frontend to data layer. We pick what fits the requirement rather than defaulting to one house stack for every project.

Frontend

The interface layer — what your customers actually touch.

Is it right for you?

When rag development is the right call

  • Your answers live in documents such as policies, manuals, contracts and past tickets, and people spend time hunting through them.
  • Different staff may see different documents, and search has to respect that.
  • You need answers that cite a source someone can check.

When to look elsewhere

  • – Your content is a public website and a few documents; Chatagentive puts an assistant on it without a custom build.
  • – The answers you need are live figures in a database; that calls for a query or reporting tool, or an agent with database access, not document retrieval.
Cost

What moves the price

Document variety and quality
Clean text documents index easily. Scans, complex tables and slide decks need extra parsing work and testing.
Access control model
A single shared library is simple. Mirroring per-user permissions from SharePoint, Google Drive or a document system adds integration and testing.
Corpus size and rate of change
Large collections that change daily need incremental indexing and freshness checks that a small, stable set does not.
Languages
Each additional language, Arabic in particular, needs its own evaluation questions and may need a different embedding model.

Fees are quoted per project and agreed in writing before development starts. Published monthly plans are on the pricing page.

FAQs

RAG development — questions we get asked

  • Do we need RAG, or can we fine-tune a model on our documents?

    For answering from documents that change, RAG. Fine-tuning shapes how a model writes and behaves, but it is a poor way to store facts: updating them means retraining, and the model cannot point to where an answer came from. RAG keeps the facts in an index you can update and audit. If your content is small enough to fit in the prompt, sending all of it with prompt caching can be simpler than either.

  • How is our data protected?

    Documents and embeddings sit in a database you control, in the cloud region you choose. Only the passages retrieved for a question are sent to the language model, and that model can be a hosted API under no-training terms, a model deployed in your own cloud account or an open-weight model you host. Access rules are enforced at retrieval, so the assistant cannot surface a document the user is not entitled to.

  • Will it still give wrong answers?

    Less often, but sometimes. The model is instructed to answer only from the retrieved passages and to say when they do not contain the answer, and each claim carries a citation a reader can check. How often answers are unsupported by their sources is tracked as part of the evaluation, and low-confidence questions can be routed to a person where the stakes justify it.

  • Which vector database and embedding model will you use?

    If you already run PostgreSQL, pgvector is often enough and avoids another system to operate. A dedicated vector database earns its place at larger scale or where filtering is heavy. Embedding models are chosen by testing them on your own documents and languages, including Arabic, where quality varies between models, and the pipeline is built so the index can be re-embedded when a better model appears.

  • What maintenance does a RAG system need, and who owns it?

    The index has to keep pace with your documents, so ingestion runs on a schedule or on change, and deleted documents must actually leave the index. Beyond that, it means reviewing the questions the system could not answer, which often points to missing content rather than a technical fault, and retesting whenever an embedding or language model changes. The pipeline, index and code are yours, so your team can take this over if you prefer.

Start here

Have a rag development project in mind?

Tell us what you are trying to achieve and what you already have. The first consultation is free and we will come back with a clear scope.