RAG & Knowledge Retrieval Systems

Retrieval-augmented generation over your documents, with cited answers, hybrid search on pgvector and Meilisearch, and evaluation sets for every change.

Get a Quote for This Service

What a RAG system means at SoftBuildLab

A RAG system (retrieval-augmented generation) answers questions from your own documents instead of from a model's general training. The user asks in plain language, the system retrieves the most relevant passages from your contracts, manuals, tickets or wiki, and the model writes an answer that cites those passages. The sources are visible, so every answer can be checked.

The quality of a RAG system is decided by retrieval, not by the model. We spend most of the effort on ingestion, chunking, metadata and search: hybrid retrieval combines vector similarity in pgvector with keyword search in Meilisearch, a reranking step orders the candidates, and permission filters make sure a user only sees passages they are allowed to read. Generation runs on Anthropic Claude, OpenAI and Google Gemini APIs behind a common interface, so you can switch providers without rebuilding the pipeline. A RAG system is the retrieval layer behind chatbots, support automation and internal knowledge base systems.

What we deliver

  • Ingestion pipeline for PDF, Word, HTML, email and database content, with re-indexing on change
  • Chunking and metadata strategy tuned to your document types
  • Hybrid retrieval with pgvector and Meilisearch plus reranking
  • Answers with inline citations and links back to the source passage
  • Permission-aware retrieval that respects your existing roles and access rules
  • Evaluation set of golden questions with expected sources, run before and after every change
  • Admin view of unanswered questions and low-confidence answers

How we work

Discovery covers where your documents live, who may read what, and which questions matter most. You receive a free technical proposal within 3 to 5 business days. We build the retrieval layer first and measure it against the golden question set, add generation once retrieval is right, launch to a pilot group and keep extending the corpus and the evaluation set after launch.

When it makes sense

RAG makes sense when staff spend time searching for answers that exist somewhere in your documents, when a chatbot must answer from a large and changing corpus, or when you need auditable answers with sources for legal, technical or compliance material. Pair it with AI evaluation and guardrails to keep quality measurable. Describe your document base through the quote form.

Key Benefits

  • Every answer cites the source passage, so staff can verify it in seconds
  • Hybrid retrieval with pgvector and Meilisearch finds both meaning and exact terms
  • Permission-aware search: users only see what they are already allowed to read
  • Golden question set measures quality before and after every change
  • Provider-independent generation on Anthropic Claude, OpenAI and Google Gemini APIs

Technologies Used

pgvectorMeilisearchPostgreSQLLaravelPythonAnthropic ClaudeOpenAI

Interested in this service?

Get a free technical proposal tailored to your project.

Get a Free Quote

Frequently asked questions

Is RAG better than fine-tuning a model on our documents?

For factual questions over documents that change, yes. RAG reads the current version of a document at question time and can cite it, while a fine-tuned model memorises a snapshot and cannot show its source. Fine-tuning helps with tone and format; retrieval helps with facts. Many systems combine both, with retrieval as the base.

Can the system respect our document permissions?

Yes. Each chunk is stored with the roles, groups or users allowed to read it, taken from your existing system such as SharePoint, Google Drive or your own application. Retrieval filters on those permissions before the model sees anything, so a user cannot extract a passage from a document they could not open themselves.

How long does a RAG project take and what does it cost?

Timelines depend on the size and tidiness of your corpus and on how many systems hold the documents. Every project is quoted individually and we publish no prices. Share a description of your document sources and typical questions through the quote form and you will receive a free technical proposal within 3 to 5 business days.

Last updated: 2026-11-09