Back to home // RESOURCES · RAG

What is RAG and what is it for in a business?

The technique that lets an AI answer using a company’s own documents, not just what it learned during training.

Polaris AI Team ·

RAG (retrieval-augmented generation)

RAG, short for retrieval-augmented generation, is a technique that lets an AI model answer using an organization’s specific documents. Before answering, the system searches the archive for the passages relevant to the question and passes them to the model along with it, so the answer is grounded in that information and can cite where it comes from.

The problem it solves

A language model knows what it learned during training: general knowledge, up to a certain date. It does not know a company’s contracts, invoices, internal procedures, or what was discussed with a client last week. Ask it about those and it either does not know or, worse, makes something up that sounds convincing.

Retraining the model on each company’s documents is expensive, slow, and has to be repeated whenever something changes. RAG solves the problem another way: it does not change what the model knows, but what it has in front of it when it answers.

How it works, step by step

What it is for in a business

Limits

On-premise RAG versus cloud RAG

Cloud RAG sends the documents — or at least the retrieved passages and the question — to a provider’s servers so the model can generate the answer. With on-premise RAG, the index and the model sit on the company’s own servers and none of it leaves the network.

For an archive of contracts, medical records, or client files, that difference decides whether it can be used at all. It is the same logic as on-premise AI in general.

Where Polaris AI stands

Today Polaris already answers plain-language questions about the documents it has classified — "which supplier invoices are unpaid?" — but under the hood those queries are resolved with rules and database queries, not with full RAG over the whole archive.

Semantic search across the entire document archive is in development, and is listed as such in the product status section. We say so because it is the difference between what you can get today and what is coming.

Related

Frequently asked questions

No. Training (or fine-tuning) a model changes what the model knows, is costly, and has to be repeated when documents change. RAG leaves the model untouched: it puts the relevant passages in front of it at the moment of answering. Adding a new document means adding it to the index.
Far less than a model with no access to the documents, because it answers from specific text. But if the search does not find the right passage, it can give an incomplete answer. That is why it matters that the system shows which document each piece of information comes from.
Yes. Both the index and the model can run on the company’s own servers. That is what is called on-premise RAG.

How much time goes into searching for information that is already archived? It is one of the items the calculator measures.

Calculate my savings

Is your archive a good candidate?

It depends on which documents you have, how they are stored, and who needs to query them. We will look at it with you.

Talk to Polaris AI on WhatsApp