AI and software solutions
AI

What is RAG? AI that answers from your company documents, with sources

What is RAG and how does it work? An AI assistant that answers from company documents and shows its sources: set-up steps, limits, data protection and cost.

Muhammed Göktuğ Temiz · 7 min read
Contents (9)
  1. What is RAG?
  2. How it works in 4 steps
  3. RAG vs fine-tuning vs a general chat assistant
  4. Where it pays off
  5. What a good RAG set-up needs
  6. Data security
  7. What drives the cost?
  8. Where to start
  9. Frequently asked questions

A new employee looks for the returns procedure, a salesperson for a product spec, a manager for a clause in last year's contract. The knowledge exists, but it is scattered across folders, email and shared drives. Asking a general chat assistant does not help either: it does not know your documents and, when it does not know, it may confidently make something up. RAG is the method used to solve both problems at once.

#What is RAG?

RAG stands for Retrieval-Augmented Generation. When the assistant receives a question, it first finds the relevant passages among your documents, then gives only those passages to the language model to write the answer. Below the answer it shows which document and section each statement came from, so the user can open and read the source.

The key point: the model does not “memorise” your knowledge. Documents sit in a separate index and are searched for every question. When a procedure changes, the index is updated and the next answer uses the new text; no retraining is needed.

#How it works in 4 steps

  1. Documents are prepared. PDFs, Word and Excel files, wiki pages or help-centre articles are read and split into meaningful passages by heading and section. Each passage carries its document name, date and access permissions.
  2. An index is built. Passages are indexed for both keyword and meaning-based search, so the right passage is found even when the user does not use the document's exact words.
  3. A question triggers a search. The most relevant passages are found among the documents the user is allowed to see. If none is relevant enough, the assistant does not answer and says so.
  4. The answer is written with sources. The language model writes a short answer based only on the passages found and cites where each piece of information came from.

#RAG vs fine-tuning vs a general chat assistant

General chat assistantFine-tuningRAG
Knows your company information?NoAs far as it was trained, without sourcesYes, searches your documents every time
When information changes—Retraining neededIndex updated, reflected immediately
Shows sources?NoNoYes, document and section
Access controlNoneHardSearches only what the user may see
Best forGeneral writing and ideasTeaching a style or formatQ&A grounded in company knowledge

#Where it pays off

  • Internal knowledge assistant: procedures, quality documents, HR policies, product catalogues and technical specifications.
  • Sales and quotes: product features, price-list notes, standard clauses from past quotes.
  • Customer service: sourced answers from the help centre and FAQs, for agents or directly for customers.
  • Contracts and paperwork: answering “what were the payment terms with this supplier?” by showing the clause.
  • Field and service teams: quick phone access to error codes, installation guides and maintenance instructions.

#What a good RAG set-up needs

  • Correct, current documents: the assistant is only as good as its documents. If three versions of the same procedure are indexed, answers get mixed. Valid documents are chosen and old versions removed before set-up.
  • Permission-aware search: sales should not see accounting files, and not everyone should see HR records. Search follows the user's existing access rights.
  • Saying “I don't know”: when no source is found, the assistant does not guess; it says who knows or which team to ask.
  • Measurement: a test set is built from real questions; the rate of finding the right source and answer accuracy are measured with it and re-checked after every change.
  • Feedback: users can flag wrong or incomplete answers; flags are used to fill document gaps and tune search.

#Data security

Documents are indexed on your server or one we manage. Only a few passages relevant to the question are sent to the language model; documents containing personal data are either excluded or masked. Which service processes the data, in which country and for how long is written down; where appropriate, a set-up with an on-premise model can be chosen.

#What drives the cost?

Set-up cost depends on document types and volume, the sources to connect (shared drives, email, wiki, help centre), the permission structure and the interface (web, Teams, WhatsApp). Our knowledge assistant set-up starts from 19,900 TRY, with optional monthly monitoring and maintenance from 2,990 TRY/month (excl. VAT); model usage is billed separately by number of questions. The final price is written in the scope document.

#Where to start

  1. List the 30–50 most frequent questions and which document holds each answer.
  2. Collect the current versions of those documents in one place.
  3. Run a pilot with one team and one document group; measure it with the test set.
  4. If the results are good, expand document groups and users step by step.

At Averis Soft we set up the internal AI knowledge assistant as a pilot with one team and one document group, and we do not allow answers without sources. For where AI fits in business processes in general, see what is AI automation.

Let's talk about your project

Tell us briefly what you need and we'll get back to you the same day.

The discovery call is free. Same-day reply on weekdays 09:00–18:00 (GMT+3), otherwise within 24 hours. · See the service

Frequently asked questions

What is RAG?

Retrieval-Augmented Generation: the language model searches company documents before answering and answers only from the passages it found, showing the source.

Do we need to train a model for RAG?

No. Ready-made language models are used; company knowledge is not taught to the model but kept in a separate index and searched for every question. When a document changes, the index is updated.

What if the assistant answers wrongly?

Every answer shows its source, so users can verify it. When no source is found, the assistant does not answer. Answers flagged as wrong are reviewed to fix documents and search settings.

Which document types can be used?

Any text-based content: PDF, Word, Excel, presentations, wiki and help-centre pages, email archives. Scanned documents are converted to text first.

Does our data leave the company?

Documents are indexed on your server or one we manage; only short passages relevant to the question go to the model. Personal data is masked or excluded; where appropriate, the model can also run on-premise.

  • what is rag
  • retrieval augmented generation
  • internal ai assistant
  • company knowledge assistant
  • chat with documents
  • ai document search
AuthorMuhammed Göktuğ Temiz

Founder, Averis Soft

About usLinkedInGitHub
Blog

AI and more articles

All articles

How to set up automated reporting: a guide to automating Excel reports

Automating the Excel report someone builds by hand every week: data sources, code doing the maths, scheduling, distribution, alerts and an AI-written summary.

Invoice OCR: extracting data from documents with AI

Reading invoices and documents with OCR and AI: when structured e-invoices need no OCR, paper and PDF documents, field extraction, validation by code and accuracy.

What is an AI agent? When it helps a business, and when it is risky

What is an AI agent and how does it differ from a workflow? Where agents help businesses, the risks, and the permission, approval and logging rules for a safe set-up.
Contact

Which task, report or process would you like to automate?

Describe it briefly; we reply within 24 hours. The discovery call is free.

Or leave your number and we'll call you
Your number is used only to call you back. Privacy notice
WhatsApp