Working with Context

What an AI assistant “knows” in a conversation is mostly what you give it. Learn how much it can hold, how to feed it files and long documents, how memory and projects work, and what to keep out.

A teacher uploads a 90-page curriculum document and asks the assistant which learning outcomes cover data handling. The answer is confident, neatly formatted — and misses two outcomes buried in an appendix. Was the model “wrong”? Partly. But the teacher could have asked differently: find the sections first, quote them, then answer. Working well with AI is largely about managing what is in front of it, and how you ask it to use that material.

What the model can see

The model itself does not remember your previous chats — any memory comes from a separate product feature, which some assistants switch on by default — and it cannot look into your files or email unless a tool explicitly connects them. In any single conversation it works from four things:

Everything except its training has to fit in its working space: the context window. Giving the model the right material is the most reliable way to improve its answers — this is grounding in its everyday form.

Tokens and the context window, in plain words

Models read text in pieces called tokens — often a whole short word, sometimes part of a longer one. In English, a token is on average about three-quarters of a word, so 1,000 tokens is roughly 750 words. Watch how a sentence breaks up:

Other languages are often split into more tokens for the same meaning. A 2023 study found large differences between languages in how many tokens the same content needs, with many non-Latin scripts split much more finely than English. In practice, a Bahasa Melayu, Chinese or Tamil document may use up the window faster — and cost more on paid plans — than its English equivalent.

The context window is the maximum number of tokens the model can consider at once, counting your files, the whole conversation and its own replies. Leading models now support windows of hundreds of thousands of tokens, and some advertise a million or more As of 2026 — enough for several long reports. The chat apps do not always give you the full window: free tiers, and some paid plans, get much less, so check your plan. When a conversation outgrows the window, older material is dropped or compressed, and the model may quietly “forget” instructions from the start.

Bigger is not the same as better

Consensus Models do not use every part of a long input equally well. A widely cited 2023 study found accuracy dropped when the relevant fact sat in the middle of a long context rather than near the beginning or end. Newer models have improved, but the practical lesson holds: point the model at what matters rather than trusting it to find it.

Bringing in files: PDFs, spreadsheets and images

Most assistants accept uploaded files As of 2026. How well they handle them depends on the file.

PDFPDFs and documentsUsually good — with caveats

Text-based PDFs and Word files are read well. Scanned PDFs (photos of pages) need text recognition, which can garble tables, footnotes and small print. Complex layouts — two columns, tables split over pages — are where errors creep in. If a table matters, check the model’s reading of it against the original, or paste that table separately.

XLSSpreadsheetsAsk it to calculate, not estimate

Some assistants analyse spreadsheets by running small programs behind the scenes, which makes sums reliable; others simply read the cells as text and may miscount. Ask the assistant to say how it computed a figure, and spot-check a few totals. Clean headers and one table per sheet help enormously. More in AI for Data and Spreadsheets.

IMGImages and screenshotsHandy, but read carefully

Multimodal models can describe photos, read a whiteboard, interpret a chart or explain an error message in a screenshot. They can misread small text and numbers, and they may confidently describe details that are not there. Crop to the part you care about and ask for a transcription before any interpretation.

Check the reading before the analysis
Before answering anything, list the section headings you can see in the attached document and tell me if any pages, tables or images could not be read clearly. Then wait for my question.

Strategies for long documents

For anything long, choose a strategy instead of asking one big question. Each has its place.

Best for: precise questions where accuracy matters — policies, contracts, regulations. Ask the model to extract the exact passages first, then answer only from them. Anthropic’s guidance recommends this for long documents, and it gives you something to check.

Quote-first prompt
Using only the attached handbook: first, copy word for word every passage that deals with overtime claims, with its section number. Then, using only those quotes, answer: who must approve overtime, and what is the deadline for claims? If the quotes do not answer the question, say so.

Instructions that stick: custom instructions, projects and memory

Retyping “I’m a secondary-school science teacher in Malaysia; use British spelling” every time gets old. Assistants offer three kinds of persistence, with different names in different products As of 2026:

Sample custom instructions
I work in operations at a mid-sized company in Malaysia. Use British spelling and Malaysian context (ringgit, local public holidays) where relevant. Be concise: lead with the answer, then the reasoning. When you are unsure of a fact, say so plainly rather than guessing. Do not use emojis.

Memory is convenient but cuts both ways: it can carry an outdated assumption into a new task, or surface something you mentioned in a personal chat during a work one. Review what is stored now and then, and use a temporary chat for one-off sensitive topics.

Privacy of uploads

Anything you upload or paste leaves your device and is processed by the provider. Depending on the product, plan and settings, it may be stored, reviewed by staff for safety, or used to improve future models. Business and enterprise plans typically promise not to train on your data; consumer plans vary, and the defaults change from time to time As of 2026.

Before you upload

Never upload personal, confidential or financial information — identity card numbers, customer records, medical details, unpublished results, passwords — to a tool your organisation has not approved for it. Remove or replace names and identifiers when you can. In Malaysia, organisations that handle personal data are bound by the Personal Data Protection Act 2010; your employer’s rules will reflect that. See AI in the Workplace.

Garbage in, garbage out

The oldest rule in computing still applies. An outdated policy file produces outdated answers; a half-finished spreadsheet produces confident nonsense; notes full of internal abbreviations produce misreadings. A few minutes of preparation pays off:

Quick check

Roughly how many English words fit in 1,000 tokens?

A token is on average about three-quarters of an English word. Other languages often need more tokens.

You need an exact answer from a 120-page policy. Which approach is safest?

Quote-first makes the model ground its answer and gives you the passages to check.

Your conversation has been going for hours and the assistant ignores an instruction you gave at the start. The likeliest reason?

Long chats can overflow the window. Start a fresh chat with a short recap, or put standing rules in custom instructions.

Which is a sound habit with memory features?

Memory is useful but can carry stale or private details into unrelated tasks. Never share passwords with any assistant.

// Pause and reflect

  1. What standing facts about you and your work would make good custom instructions? Which details should stay out of them?
  2. Which long document do you deal with regularly, and which of the four strategies would suit it best?
  3. Do you know whether the assistant you use most is allowed to train on your chats? Where would you check?

Your notes are saved privately in this browser.

Try this

Download a long public document — an annual report from a listed company, or a government policy paper. Ask the same factual question twice in separate chats: once directly, once with the quote-first prompt above. Check both answers against the document. Which one could you verify faster, and was either one wrong?

Key terms on this page

Sources & further reading