How do I make AI answer only from my own file instead of the web?
Attach the document to the chat, or add it to a project knowledge folder, then instruct the assistant to answer only from that file and quote the exact passage it used. Without a file, most assistants fill gaps from general knowledge or web search; with the quote, you can verify the answer against the source in seconds.
How to do it
- Pick the one document that holds the answerUse the actual file, such as the lease, contract or policy, not a summary or a copy-pasted excerpt. One focused document gives cleaner answers than a folder of loosely related files.
- Attach it to the chat or add it to a project knowledge folderUpload the file directly for a one-off question. For a document you will query again, a project or knowledge folder keeps it available across chats.
- Tell the assistant to answer only from that filePaste: "Answer only from this file. Quote the exact passage." This tells the model not to fill gaps with general knowledge or web results.
- Check the quoted passage against the documentOpen the page it cites and confirm the wording matches. If you can't find the quote in the file, treat the answer as unverified.
Questions that come up
What if the answer isn't in my file?
Add a line to the prompt: "If the file doesn't cover it, say so." Without that instruction, some assistants still fill the gap from general knowledge and present the result with the same confidence as a sourced answer.
Can the AI still get it wrong with the file attached?
Yes. Grounding reduces invented answers but doesn't eliminate them. Models can misread tables, miss a clause in a long document, or quote the right passage and still summarize it wrong. That is why the quote matters: it is your fast way to check the answer.
Does this work with scanned PDFs?
Only if the assistant can read the text. Scanned pages without a text layer may be read poorly or not at all. If quotes come back garbled or missing, run the file through OCR first or upload a text-based version.
Is it safe to upload a contract?
It depends on the service's data settings. Check whether uploads can be used for training and whether you can turn that off. Consider redacting account numbers or personal details the question doesn't need.
Full transcript
Attach your file. Make the AI quote it. Drop the PDF into the chat or a project. Add: answer only from this file, quote the passage. Without the file: usually 30 days, a guess. With it: 60 days, page four.