Artificial intelligence

AI assistant for company documents: how it works, explained simply

How an AI assistant that answers about company documents works: searching sources, answers with references, permissions, privacy, limits and costs.

Fabio Folgori6 min read

Wooden shelves with books in a library
Photo by Peter Herrmann on Unsplash

Contracts, manuals, procedures, minutes, price lists, archives going back years: every company accumulates documents, and finding the right information at the right moment is increasingly hard. Keyword search helps only up to a point: you have to know what the file is called and which word is written inside.

An assistant based on artificial intelligence changes the approach: you ask a question in plain language and it answers, pointing to where it found the information. In this guide I explain how it works, what it is for and what attention it needs.

What it does, in concrete terms

Imagine asking: "What is the termination clause in the contract with supplier X?" or "How do we handle an out-of-warranty return according to our procedure?". The assistant searches the documents, finds the relevant passages and answers, indicating the document and paragraph the information comes from, with a link to verify.

The difference from an ordinary chatbot is decisive: it does not answer from memory, but from your documents.

How it works, step by step

You do not need to go into technical details, but understanding the logic helps in judging what to expect.

  1. The documents are read and split into parts small enough (paragraphs, sections).
  2. Each part is "indexed": its meaning is recorded, so it can be found again even with words different from those written.
  3. A question arrives. The system looks for the most relevant parts.
  4. The assistant words the answer using only those parts, and cites the sources.
  5. If it finds nothing relevant, it says so, instead of making something up.

This technique is often called RAG (retrieval-augmented generation) and is the basis of most serious company assistants.

What it is really for

The cases where it pays off most:

  • Searching large archives: contracts, minutes, internal rules, technical documentation.
  • Internal support: colleagues find the right procedure on their own, instead of asking whoever remembers it.
  • Customer support: answers about manuals and price lists, with the exact source. (For the assistant on the site, read AI chatbot for your website.)
  • Training newcomers: a quick way to get oriented in procedures and rules.
  • Preparing drafts from existing documents, to be reviewed.

What it needs to work well

The quality of the assistant depends almost entirely on the documents.

  • Up-to-date, consistent documents: if two versions say different things, the answers will be confused. It helps to know which one is valid.
  • Legible text: scanned files need character recognition, and quality matters.
  • Clear structure: headings and sections help find the right passages again.
  • Names and dates: knowing when a document is from avoids answers based on superseded rules.
  • An owner: someone who decides what goes in and what comes out.

Permissions and confidentiality

An assistant that reads everything is useful, but also risky. Some points to define from the start.

  • Who can ask what: access is by roles and permissions, and the assistant must show each person only what they can see.
  • Where data is processed and whether the service uses it to train models. Services that do not are chosen.
  • What is stored of the questions and for how long.
  • Personal data and GDPR: notices, legal bases, minimisation. It is worth involving a competent adviser here.
  • Access log, to know who consulted what.

The limits to know

A good project does not hide them.

  • It can still get things wrong: misunderstanding a question or a passage. That is why sources are always shown.
  • It does not replace judgement on important decisions: legal, financial, medical.
  • It depends on document quality: garbage in, garbage out.
  • It does not "know" what is not written: if information is not in the documents, it does not find it.
  • It has a running cost that grows with requests, kept under control with limits and monitoring.

How it is built

An orderly path avoids surprises.

  1. A small scope is chosen: for example internal procedures or one department's contracts.
  2. Documents are gathered and cleaned.
  3. A prototype is built in a few days, on the real documents.
  4. It is tested with real questions from the team, including tricky and out-of-scope ones.
  5. Quality and costs are measured, and it is decided whether to extend.
  6. Updating is planned: new documents enter automatically and superseded ones leave.

Questions to ask before starting

  • Which documents go in, and who updates them?
  • Who can see what?
  • Where is the data processed and stored?
  • How are sources shown?
  • What does the assistant do when it cannot answer?
  • How much will it cost to use when requests grow?
  • Can I try a prototype on my documents before committing?

If you want the broader picture, read Artificial intelligence in business: 5 concrete use cases.

An example of a conversation

Question: "How many days' notice are needed to terminate the supply contract with the Rossi company?"

Assistant's answer: "The contract provides for sixty days' notice, to be given in writing. Source: Rossi supply contract, art. 12, paragraph 2."

If the clause does not exist in the documents, the correct answer is "I did not find this information in the available documents", not an invented reply. It is this behaviour, more than skill in speaking, that sets a reliable assistant apart.

Why entrust it to me

I have been programming since 1999, with more than 300 projects delivered and about 30 agencies as an external developer. I build intelligent document search that understands questions in plain language and answers pointing to the exact source, with access by roles and permissions and automatic updating with new documents. I build a prototype in a few days on your real data, so you see the result before deciding, and I handle privacy and GDPR from the design stage. I work from Rome and remotely.

If you have archives that are hard to navigate, write to me: a chat of about 20 minutes, no strings attached, then a written, free proposal. The service is in AI integration and automation.

Frequently asked questions

It is a technique in which the assistant, before answering, looks for the relevant passages in your documents and uses them to word the answer, citing the sources. That is why it answers from your content and not just from what it "knows" in general.

It depends on the service chosen. You pick services that do not train their models on company data and limit what the assistant can see. It is a point to check carefully before uploading any document.

Yes, if the text is recognised correctly (with a character-recognition step). Scan quality matters: poorly legible documents give less reliable answers.

By always showing the source, so the reader can verify; by making it decline questions the documents do not answer; and by checking quality on a sample. For important decisions a person's judgement remains.

  • #ai for documents
  • #document search
  • #rag
  • #company assistant
  • #privacy

More articles

Shall we talk about your project?

A 20-minute chat, no strings attached: we'll figure out together where to start.