RAG is a technique that retrieves relevant passages from a document repository and gives them to the model together with the question, without changing the model.
In a RAG system, company documents are indexed in a search repository. When a question arrives, the system looks for the most relevant passages and inserts them into the prompt. The model answers on the basis of those texts and can show where the information comes from.
Compared with fine-tuning, RAG has an important advantage for data protection: the documents stay in your repository and can be updated or deleted at any time. Permissions must be managed, though: an employee must not obtain through the chatbot documents they could not open directly.
Practical tips: apply to the repository the same access rights as the original files, anonymise before indexing whatever is not needed in clear text, and always ask the system to show the source, so that human review is faster.
See also: Fine-tuning, Hallucination, Context or context window
General information, not legal or tax advice on your specific case.