Skip to content

Guide

How to get AI answers from your own documents, with sources

Give the AI your documents, have it search them before it answers, and make every answer name the passage it used. This is called retrieval. Build it yourself with open-source tools, or let an app do it; either way, the test is the same: open the source and check the answer against it.

Written by the AssistClue team. Last reviewed .

Why does a general chatbot not answer from my documents?

A general chatbot answers from what it learned in training, which does not include your notes, your files or your code. It can sound sure of an answer it does not have, and it rarely shows where a sentence came from.

Pasting a document into a chat helps for one conversation, but the document is only part of what the model draws on, so its own knowledge can blend into the answer without warning. For answers you need to rely on, you want the documents searched first and the source shown. Our comparison with chat assistants sets the two side by side.

How does an AI answer from your documents?

It searches first and writes second. The usual name is retrieval-augmented generation, and it has four steps:

  1. Split: each document is cut into passages of a few paragraphs.
  2. Index: each passage is stored so it can be found by meaning, not only by exact words.
  3. Retrieve: when you ask a question, the passages that best match it are found.
  4. Answer: the answer is written from those passages, or a passage is shown on its own, with the document it came from.

Everything depends on step three. If the right passage is not found, no model can write the right answer from it, which is why a good system says so when nothing matches instead of guessing.

How can I tell whether a source-cited answer is trustworthy?

Check that you can open the source and find the answer in it. A citation you cannot follow is decoration. Five things to look for in any tool:

  • Each answer names the document and lets you read the passage it used.
  • When your documents have nothing, it says so plainly.
  • An answer from general knowledge is labeled as such, never mixed in silently.
  • It tells you what left your computer and what did not.
  • Old and new versions of a document do not both answer: you can remove the outdated one.

AssistClue is built around these. Each answer names its document and says whether it left your computer; in Ask you can open the source. When your material has no answer, a Cloud AI answer follows, labeled as general knowledge, and in a Private session it says "Not in your documents" instead. How it works shows the real screens.

Can AI answers stay private, on my own computer?

Yes. The index, the search and even the answer can stay on your computer, so the documents are never uploaded. What differs between tools is how much stays local and whether you can check it.

In AssistClue, folders you add on the desktop app are indexed on your computer and never uploaded. Cloud AI reads from a kept folder only if you turn that on for it, and it starts off. Without it, answers from that folder are passages found there, quoted with their file. In a Private session, answers come from your computer only, and afterwards the Privacy receipt shows what left it and why. You still need the internet to sign in. Details on storage and privacy are on the privacy and security page.

Documents you upload instead are stored in your account, so they work in the browser and on your phone, and Cloud AI can write an answer from their passages. You choose which way each document goes when you add it.

Should I build it myself or use an app?

Build it if you want to learn how retrieval works or need a custom pipeline; use an app if you want answers from your documents without maintaining one. Both are reasonable, and the choice is about time.

  • Building it: open-source libraries and tutorials cover each step, and you control every part. You also own the upkeep: file formats, scanned pages, updates and a way to show sources.
  • Using an app: file reading, search, sources and privacy controls come ready, at the cost of the app's choices. Check the five points above before you trust it with documents that matter.

Can I ask questions about a PDF with AI for free?

Yes. Many tools let you upload a PDF and ask questions on a free plan, usually with a limit on pages, file size or the number of questions. In AssistClue, adding your material, searching it and asking about it are free to start, with no card at sign-up; the facts page lists exactly what is free.

  • Does the answer show the passage and the file it came from, or only a summary?
  • Is the file uploaded to a server, or kept on your own machine?
  • Are Word, PowerPoint and scanned pages read too, or only typed PDFs?
  • What happens when the document has no answer: does it say so, or guess?

How do I prepare documents so the answers are good?

Clear, current, well-titled documents give better answers than a large pile. Retrieval finds passages, so a passage has to make sense on its own.

  • One subject per file, with a title that says what it is: "Project Atlas, design decisions" beats "notes3".
  • Headings inside long documents, so each passage keeps its context.
  • Numbers and dates written out where you would say them, not only in a chart.
  • Remove outdated versions, or the old figure may be the one that is found.
  • Typed or printed text reads best. AssistClue reads PDF, Word, PowerPoint, Excel, CSV, HTML, RTF, Markdown and plain text, up to 50 MB each; scans and photos of pages are read too, though a table in a scan can lose some cells.

Asking your own documents: a worked example

Say you keep a folder of notes for a project on your laptop, including a decisions file, and you add it on the desktop app. Three questions show the three kinds of answer.

In your notes
"What retry limit did we agree for the payment service?" The answer is the passage from your decisions file that records three retries with a doubling delay, with the file named under it.
Not in your notes
"What is exponential backoff?" Your notes do not define it. In a session that may use Cloud AI, a Cloud AI answer follows, labeled as general knowledge.
Private session
The same question shows "Not in your documents", and nothing is sent to a cloud model.

Each answer tells you where it came from, so you know which one to rely on and which to check. For students revising from notes, the students page shows the same idea applied to study.

What to gather first

  • The documents you already trust: notes, write-ups, decks, runbooks or code.
  • A decision for each: stays on your computer, or uploaded to your account.
  • Outdated versions removed, and clear titles on what remains.
  • Three questions you know the answer to, to test the setup before you rely on it.

What AssistClue does not do with your documents yet

  • It does not work without an internet connection: signing in and checking your plan need one, even for a Private session.
  • Handwriting may not be read, and scans in folders kept on your computer are not read yet.
  • It works on one person's own material today; a shared team library is planned, not available yet.

Try it on your own notes

Add a few documents, ask a question you know the answer to, and open the source.