> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gistr.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Can Gistr handle very long books and documents?

> How Gistr splits a long book or document into sections, reads only the parts each question needs, and tells you the expected credits before it reads more.

Yes. When you add a source, Gistr splits it into sections and writes a short title, summary and key terms for each one. For a very long source, such as a book of several hundred pages, Gistr AI uses this map like a table of contents. It opens only the sections your question needs, instead of reading the whole book every time.

## How Gistr reads a long source

**1. Gistr maps the source**

After the source finishes processing, Gistr cuts it into sections. Where the document has its own chapters, the sections follow them. Where it does not, Gistr makes even parts. A short source is one section.

**2. The AI checks the map**

When you ask a question, Gistr AI looks at the map first: how long the source is, what each section covers, and where the answer is likely to be.

**3. It reads only what it needs**

The AI opens the sections, pages or time ranges that matter for your question. Each answer reads a limited amount of text, so one question cannot work through an entire book at once.

The map is built once for each source and saved. Later questions, and other people who use the same source, reuse it.

> [!NOTE]
>
> To confirm: building the map uses credits, charged to the person who added the source, on paid plans too. The outline says source processing on paid plans never uses credits. Engineering should confirm which is intended before this page and the [credits](https://docs.gistr.so/account/credits.md) page go live.

## You see the cost before it reads more

If an answer stops before the AI has read all it needs, a suggestion appears under the answer:

**Continue reading** followed by the source title, where it will pick up, and the expected cost in credits.

Click it to send it as your next question. The AI picks up where it stopped. If you do not need the rest, ask about a specific part instead.

## If you do not have enough credits

Before Gistr AI starts on a very large source, it estimates the most the answer could cost. If you have fewer credits left than that, it does not start and shows a message like this:

> This source is very large (about \[number] tokens). Working through it may use up to about \[number] credits, and you have \[number] left. Ask about a specific part of it, select fewer sources, or add credits to continue.

The numbers depend on the source, your model and your plan. Buttons under the message, such as **Buy more credits** or **Change plan**, take you to the next step. See [How credits work](https://docs.gistr.so/account/credits.md) and [Plans and passes](https://docs.gistr.so/account/plans.md).

> [!NOTE]
>
> To confirm: the outline says the cost is shown first for long sources. In the code, Gistr shows the estimate only in the "Continue reading" suggestion and in the message above when credits are too low. There is no confirmation step before the first answer.

## Get better answers from long sources

* Name the chapter, section, page or time range you care about, for example "Summarise chapter 4" or "What does page 120 say about pricing?"
* Select only the source you need for that question. See [Ask Gistr AI about your sources](https://docs.gistr.so/ask-ai/ask-about-sources.md).
* For the big picture, start with the [Source guide](https://docs.gistr.so/ask-ai/smart-guide.md), which summarises the whole source.

## Try it

Add a long PDF, such as a textbook, to a thread and ask "Summarise chapter 2". Then click a **Page** citation in the answer to see where it read.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.