Chatbots, Assistants and Devices

How Chatbots Handle Files You Upload, and What to Check First

What happens to a PDF, spreadsheet or photo you attach to a chatbot, where reading errors creep in, and the checks to run before and after.

Key takeaways

  • A chatbot works from a converted version of your file, and scans, tables, footnotes and images are where content gets lost or scrambled.
  • Long files may be searched for relevant pieces instead of read in full, so a missing answer does not prove the information is absent.
  • Remove personal and confidential material you do not need, including hidden sheets, comments and photo metadata.
  • Verify quotations, totals and names against the original before you rely on them.

When you attach a file to a chatbot, the service converts it into something the model can work with: extracted text, page images, table data, or code that opens the file and calculates. The model then answers from whatever made it through that conversion, which may be less than what you see when you open the file yourself.

Before uploading, check that you are allowed to share the file and that it contains nothing it should not. After uploading, check that the assistant actually read the parts you care about. Both checks take a few minutes and prevent most of the trouble.

What happens after you press attach

Different file types take different routes. A text document or a PDF created by a word processor usually contains selectable text, which is straightforward to extract. A scanned page is only a picture, so the system must recognize the characters or have the model read the image.

Spreadsheets may be flattened into text, or, in products with a code tool, opened by a short program that can filter and total the data. Photos go to a model that can interpret images. Audio and video, where accepted, are often transcribed first.

The product rarely shows you the converted version. You can probe it by asking: "List the section headings you can see," or "How many rows are in the second sheet?" Then compare with the file.

Reading all of it, or only some

A model has a limited context window, the amount of text it can consider at once. A short file can be placed in it whole. For a long one or a large collection, many products instead split the material into chunks, search for those that seem related to your question and give only those to the model. This approach is called retrieval.

Retrieval is efficient but selective. A question like "does this ever mention pets?" can fail if the relevant passage uses the word "animals" and the search misses it. Questions that need the whole document, such as counting every instance or finding contradictions, are the riskiest. See why very long documents trip up AI readers.

The path of an uploaded file
1 Upload The file is sent to the provider's servers 2 Convert Text, images or table data are pulled out 3 Select All of it, or only chunks that seem relevant 4 Answer The model writes from what it received 5 Verify You compare key points with the original Upload The file is sent to the provider's servers 1 Convert Text, images or table data are pulled out 2 Select All of it, or only chunks that seem relevant 3 Answer The model writes from what it received 4 Verify You compare key points with the original 5

Where reading errors tend to hide

Content Typical problem A quick check
Scanned pages Misread characters, skipped faint text Ask for a transcription of one hard page
Tables Values shifted into the wrong column Spot-check several cells, including edges
Multi-column layouts Sentences merged across columns Ask it to quote a passage that spans a column
Footnotes and fine print Ignored or detached from the claim Ask what the footnotes qualify
Charts Values estimated by eye Request the underlying data instead
Handwriting Guesses presented as readings Ask it to mark unclear words

Images of text deserve particular suspicion with numbers, where one digit changes the meaning. How AI reads charts, screenshots and handwriting goes further.

Spreadsheets and calculations

Numbers are where it pays to know which route your file took. If the assistant only reads a spreadsheet as text, it is estimating sums and averages the way it generates any other words, and long columns invite mistakes. If it writes and runs code against the file, the arithmetic itself is usually reliable, though the code may answer the wrong question.

Look for signs of which happened. Many products show a code or "analysis" step you can expand. If you see none, ask it to calculate with code, or treat totals as unverified.

Then check the assumptions. Did it treat blank cells as zero or skip them? Did it count a subtotal row as another entry? Did it read dates in month-first or day-first order? Did it notice that one column mixes currencies or units? A short instruction such as "before calculating, describe each column and list anything odd" surfaces many of these.

Check before you upload

Run through this list while the file is still on your device.

  1. Permission. Is it yours to share? Employer, client, school and medical documents often have rules.
  2. Need. Could you paste the two relevant paragraphs instead?
  3. Personal data. Remove names, addresses, account and identification numbers that the task does not require.
  4. Hidden content. Look for hidden spreadsheet tabs, hidden columns, comments, tracked changes and speaker notes.
  5. Metadata. Photos and documents can carry location, author name and dates.
  6. Redaction. A black box drawn over text may leave the text underneath. Delete the content, then export a fresh copy and try to select or search for the removed words.
  7. Trust. If the file came from a stranger, treat it as potentially hostile.

Instructions hidden in files

A document can contain text aimed at the assistant instead of at you, sometimes in tiny or invisible type. The model may follow it, for example by praising a weak proposal or pushing a link. This is prompt injection, and no product should be assumed immune.

The danger grows when the assistant can act, such as by sending messages or reading other files. With documents from outside your circle, keep those connections off and be skeptical of any answer that urges an action you did not ask about.

Where the file goes

Uploading means the content leaves your device. The provider's terms decide how long it is kept, who may review it and whether it can be used to improve models. These can differ between free, paid, business and education accounts.

Look specifically for the following: whether deleting the chat deletes the file, whether project libraries keep files until you remove them, and whether shared chat links expose attachments or quotations from them. Reading the data terms of an AI service helps. For regulated material such as patient records, a general consumer chatbot is usually the wrong place.

Check after it answers

Start with a coverage question: "What are the main parts of this document, in order?" If a whole section is missing, stop and fix the file or send that section separately.

For specific claims, ask for the exact quotation and its page, then search the original. For totals, ask it to show which rows were included, and recalculate a sample yourself. Suppose a hypothetical expense sheet has three entries of 40, 25 and 35. The total is 40 + 25 + 35 = 100. If the reply says 65, a row was dropped, and the same fault could be hiding in a sheet with a thousand rows.

Summaries need a different test, since the error is often omission. Skim the original's conclusions, exceptions and conditions, and see whether they survived. See when AI summaries drop or distort the original.

Making files easier to read

A little preparation raises accuracy. Export documents as text-based PDFs instead of photographing pages. Give spreadsheet columns clear header names, one table per sheet, with no merged cells. Split huge files by chapter. Rename files descriptively so you can refer to them. State which version is current if you attach more than one.

Then tell the assistant what the files are and which to trust when they disagree.

Comparing two versions

People often upload an old and a new draft and ask what changed. This is a hard job for a model that reads for meaning: small edits such as a deleted "not," a changed figure or a moved deadline are easy to overlook.

Use a document comparison tool for the mechanical differences, which most word processors include. Then give the assistant the list of changes and ask what each one means in practice and which deserve a closer look. Each tool does the part it handles well, and you keep a complete record of the edits.

A first-time routine

For a file that matters, try a short rehearsal. Ask a question you already know the answer to, choosing a fact from the middle or end of the document. Ask about something you know is not in it. A correct first answer and an honest "I do not find that" to the second are encouraging signs. A confident invention for the second tells you to check every claim, or to paste the relevant pages directly.

Common questions

Why does it say it cannot read my file?

Common causes include a password, an unsupported format, a size limit, a damaged file or a scan without recognizable text. Exporting to a simpler format often helps.

Can it edit the file and give it back?

Some products can produce a revised or new file. Layout and formulas may not survive. Keep the original and compare the two before replacing anything.

Is a deleted upload gone immediately?

Not necessarily. Retention periods and backups apply. Read the current policy for your account type.

Written for 4ArtificialIntelligence with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 49 articles in Chatbots, Assistants and Devices →

Latest news on this topic