Skip to content
mentoor

Topic 1 of 5 · 4 min read

Uploading a file and asking questions

Goal: Write a first message for an uploaded file that states its meaning, the question and the expected output, and confirms the columns were read correctly.

Before you ask anything about an uploaded file, tell the assistant what the file is, what each column means and what you want back, then make it describe the data so you can check it read the file correctly.

Check yourself · 1 of 3

You upload a CSV where each row is one order. What is the most useful first sentence to add to your message?

Choose one answer

Why it matters

ChatGPT, Claude and Gemini can open spreadsheets and CSV files and run code on them. But they only see rows and headers. A column called amt could be dollars, euros or units. A column called status might hold 1, 2 and 3 with no label. The assistant will not stop to ask. It picks the most likely meaning and builds the whole answer on it.

How to do it

  1. Say what the file is. One sentence: where it came from, what one row stands for, what period it covers. "One row per order, exported from our shop on 1 December 2026, covering January to November."
  2. Define the columns that are not obvious. Units, codes, date formats, and what an empty cell means. "amt is in euros before tax. status 1 is paid, 2 is refunded, 3 is cancelled."
  3. State the question and the output. What decision is this for, and what should come back: one number, a table, a chart, a short note.
  4. Ask for a description first. Before any analysis, ask for the number of rows and columns, the column names with their types, the date range, and how many cells are empty in each column.
  5. Compare with what you know. If you exported 4,812 orders and the assistant reports 4,812 rows, good. If it reports 1,000, the file was cut off. Do not continue until the numbers match.

Before and after

Before: Here is my sales file. What are the trends?

The assistant does not know what a row is, which money column matters, or what "trends" means to you. It will plot something and write confident text.

After: This file has one row per order from our online shop, January to November 2026. amt is in euros before tax. status 1 is paid, 2 is refunded, 3 is cancelled. I want to know whether monthly revenue from paid orders grew, as a small table with one row per month. First, tell me how many rows and columns you see, the date range, and any empty cells per column. Then wait for me to confirm.

What goes wrong

  • Unlabeled codes. The assistant treats refunds as sales because nobody said what status 2 means.
  • Hidden sheets and merged cells. A file with several sheets or a title above the headers can be read wrongly. Say which sheet to use and where the header row is.
  • Skipping the check. People read the first answer and never compare the row count. A wrong read at step one spoils every later answer.
  • Private data. Remove names, emails and anything your policy forbids before you upload. Check what your plan does with uploaded files.

Official help pages for ChatGPT and Claude list the file types and size limits. Read them once, because a file over the limit may be read only in part.

Examples

A first message that sets up the file

You: This file has one row per support ticket from our help desk, 1 to 30 November 2026. opened and closed are dates in day/month/year order. An empty closed means the ticket is still open. team is the team that handled it. I want the median days to close per team. Before you calculate anything, tell me the number of rows, the first and last opened dates, and how many tickets have an empty closed.

This message gives the meaning of a row, the date order, the meaning of an empty cell, the question and the checks to run first.

Catching a truncated read

You exported 6,240 tickets. The assistant says it sees 1,000 rows. Do not go on. Reply: "I exported 6,240 rows. You report 1,000. Check whether the file was truncated and tell me how you read it." Only continue when the counts match.

Key points

  • An assistant sees only rows and headers, so you must say what one row is and what each unclear column means.
  • Codes such as status 1, 2 and 3 need labels, or the assistant will guess what they mean.
  • State the question and the shape of the answer, such as one number or a table with one row per month.
  • Ask for a description of the data first: row count, columns, date range and empty cells.
  • Compare the reported row count with the count you know; a mismatch means the file was cut off or misread.

Common mistakes

  • Uploading the file and asking an open question such as "what are the trends?".
  • Leaving codes and abbreviations unexplained and trusting the assistant's guess.
  • Never comparing the assistant's row count with the count in the original file.
  • Uploading personal data without checking your organisation's rules first.

Check yourself · 2 of 3

Your file has a status column holding 1, 2 and 3. What should you do before asking for total sales?

Choose one answer

Check yourself · 3 of 3

You exported 4,812 orders. After upload, the assistant says the file has 1,000 rows. What is the best reply?

Choose one answer

Practice items, not counted towards your mastery.

Start here