Look at the running session, not only the model card

Start your chosen local model, send a small prompt, then run this in another Terminal window while it is still loaded:

ollama ps

Record the exact model name, CONTEXT and PROCESSOR values. A downloaded model that is not currently loaded may not appear. The official context guide explains how to inspect allocated context and change the app's context setting. Increasing the allocation requires more memory; do not simply select the largest possible number.

Record your current setting before changing it so you can restore the starting point. If using the interactive terminal session, the FAQ also documents /set parameter num_ctx followed by a number. Choose a value supported by the model and your available memory. Send a fresh request and check the loaded allocation again.

Check the context used by a local API request

If an app is connecting to Ollama rather than using the Ollama chat window, test one short request directly before changing the app or the model. In ollama list, copy the exact name of a model you already installed. Replace YOUR_LOCAL_MODEL below. The example requests a context of 4,096 tokens for this call only; it is a test value, not a recommendation for every Mac or model.

curl --fail-with-body --silent --show-error http://127.0.0.1:11434/api/generate \
  -H 'Content-Type: application/json' \
  -d '{"model":"YOUR_LOCAL_MODEL","prompt":"Reply with the word READY.","stream":false,"options":{"num_ctx":4096}}'
ollama ps

Check that the response finished, then match the exact model row in ollama ps and write down CONTEXT and PROCESSOR. The API response’s prompt_eval_count counts the prompt tokens evaluated on that request; it is not the allocated context. A short successful reply checks the route and configuration, not long-input recall.

If the direct request works but the client still misses details, check which model and server the client uses and whether it sends a context override or trims the input. The Ollama FAQ shows where num_ctx belongs, and the context guide explains the running allocation and memory trade-off.

Separate three different problems

  1. The app did not send the material. A document shown in an interface is not evidence that all its text reached the model. Check the app's file extraction or retrieval behavior.
  2. The request did not fit. History, instructions and supplied text compete for the available context. A truncation warning or explicit context error is useful evidence; do not ignore it.
  3. The model received the material but answered badly. Missing a detail does not prove it was removed from the prompt. A smaller, clearer task can help distinguish this from an input-size problem.

Keep original notes outside the chat. Do not use the model's summary as your only surviving record of facts that matter.

Try a synthetic three-marker check

Create a harmless test note rather than sending private client material. Begin with just these lines:

START marker: Cedar-17
MIDDLE marker: Lantern-42
END marker: Harbor-93
Return the three marker values under START, MIDDLE and END.
If a value is absent, write NOT FOUND instead of inventing it.

Verify the short answer against the three values. Next, put ordinary filler text between the marker lines to approximate the length of the task that fails. Keep the exact same marker values and request. Compare the answers after changing only the input length.

If the short case works and the longer one does not, that narrows your investigation; it does not by itself prove truncation. Record any context error or warning and the allocated context. If you increase the allocation, repeat with the same test note rather than changing the model, prompt and context together. Successful marker recall is a spot check, not proof that every part of a long document was understood.

Reduce the task when a larger allocation is not useful

Split a long document at meaningful section boundaries. Ask for specific facts from one section at a time and retain the section reference with each answer. For decisions spanning multiple sections, bring only the relevant excerpts into a fresh request and check the resulting claims against those excerpts. This preserves an audit trail without assuming the conversation will remember everything indefinitely.

Model / Ollama version:
Allocated context / processor:
Short test: three markers correct?
Long test: missing or wrong values?
Warning or error observed:
One setting changed / original value:
Retest result and next action:

For initial setup, see Run a local AI model on Mac. If the answer is correct but slow, measure loading and generation separately rather than treating context and speed as the same issue.

Write down four different limits before changing one

The model's supported maximum belongs to the exact checkpoint and packaging. It is the first number you will see in many model descriptions. Record its source and keep it beside the package name. Treat it as a capability boundary for that artifact. The memory available to the currently loaded runtime may support a smaller working setting.

The running allocation is the context the serving process is actually using. Check ollama ps while the same model is loaded. If your client asks for its own context size, compare its request with this observation. The server default, the desktop slider, an interactive session and an API override are different places to express a setting. Change the one relevant to your request, then verify the allocation again instead of applying several fixes at once.

The evaluated input includes whatever reached the running model, such as the system instruction, user text, tools or previous messages. The response's prompt_eval_count counts input tokens and can help you notice big differences between requests. The server does not tell you from that count alone which source paragraphs were included. Inspect the actual text or the client's retrieval and extraction view if those details are available.

The output allowance determines how much the model can generate. The Ollama parameter reference describes num_ctx and num_predict. Leave room for the answer, any reasoning the model generates and app-added instructions. If you require several quoted lines, a limit suitable for one-word replies may stop the result before it reaches the required fields. Check completed text and any stop reason when you compare the settings.

Use the values as a planning budget. For an illustrative 4,096-token allocation, if you reserve 384 tokens for generation and expect about 700 for instructions and prior turns, the remaining planning budget is about 3,012 tokens for the current material. Actual message templates and tokenization can change the count. Watch the returned numbers and the output, and leave room for unexpected overhead. Adding space to the allocation brings a memory cost, so test on the size of document you intend to use.

Turn a missing detail into a controlled comparison

Start with the three-marker task above. Save the short source and the answer key in separate files. Use a fresh conversation with the same model, version, instructions and output allowance. The correct reply contains Cedar-17 at the start, Lantern-42 in the middle and Harbor-93 at the end. Move only ordinary filler text between the markers for the longer version. Keep the prompt asking for each marked value exactly the same.

Run the short case before adding filler. If it fails immediately, reduce the question to one marker and check the wording and the raw output. A typo, different case or invented code should remain visible in your log. If the short response prints the correct names and the long one omits the middle value, check each phase before setting a higher limit. The two responses show a repeatable difference for those inputs.

Look for an error or truncation warning and record it when present. Check which text reached the server. If a document client only retrieved small parts of the document, ask it to include the section containing Lantern-42 explicitly. If a direct request containing that section works and the client request fails, investigate the client route. If the full direct input is known and a higher verified allocation restores the middle value, repeat the same pair so you can distinguish the change from ordinary variation.

Try one negative case as well. Remove the middle marker while leaving the header and two other markers intact. The expected result is NOT FOUND for the middle value. A fabricated value fails the task even if the model completes quickly. Keep that control free of the original answer by starting a separate conversation. This helps you verify the case where a real document omits a detail entirely.

Use the error to decide what to change

A whole section is missing from the input

Open the document in a viewer and find text you can select, then check that your app can find the same phrase. A scan may contain only a picture or a partial text layer. If your app can show passages it added to the prompt, inspect those first. Try pasting the missing paragraph by itself with the same question. A correct direct answer supports a fix to extraction or retrieval. Use documented options for the app and run the earlier comparison again afterwards.

The model omits an item that appears in its input

Ask for one item per question or ask for a short quotation from the source before requesting a summary. Recheck the marker instead of relying on the model's claim that it read everything. For a document comparison, keep the section identifier and a sentence that supports each check. If the model gives the wrong answer when the correct sentence is on its own, it may be a poor match for the task even when more tokens fit.

The response stops before all fields

Look at the final lines, check the response's done reason when available and record the output-token count. A partially formatted list may be an output-budget issue. Try a shorter requested format or a larger supported output allowance as a separate trial. Keep the same input and verify it is still in context after the change. If you ask a model to return just three short values, there should be room for the whole answer.

A larger allocation loads slowly or drives up memory use

Return to the recorded starting value and try smaller chunks. Group material by decision or source rather than cutting at an arbitrary character count. Keep the header and source together with each excerpt. Test two short pieces individually before adding a second document or more conversation history. A small context that answers each well-formed task can be more useful than a large session you cannot reliably complete. Compare wait and answer correctness under the same workload.

Leave enough evidence to repeat the fix

For each version, save the request as sent or the best available description of it, the original setting, the allocation you observed, any error, the full result and the pass count for the three markers. Keep input length, model and context changes in distinct rows. A setup that retrieves the correct three values from your simulated note is ready for a controlled trial with a similar real document. Begin with one document and verify the citations or extracted lines before acting on a conclusion. The record lets you find which condition changed if an app update makes the problem return.