You can try document chat offline in LM Studio after downloading a suitable model. Use a short document with one answer you know before trusting the setup with a long draft. The first test should establish that the app can answer offline and that it uses the right passage.

Set up a document you can verify

Create a local text file with two sections. In Section A, write that a shared room closes at 6 p.m. In Section B, write that the printing desk in that room closes at 5:30 p.m. These similar details give the model a chance to confuse two nearby answers, in a file you can safely use in a test.

Download the model and open LM Studio before disconnecting. Start a new chat with the model selected and attach the file using the attachment control. Then switch off networking. Ask for the printing desk’s closing time, and ask the model to name the section and reproduce the relevant sentence from your own test file. Check both pieces against the original.

Try one question the file cannot answer

Ask what time the desk opens on Sunday. The file has no answer, so a stated time is a guess. Keep that result even if the first question was answered correctly. When the file does contain an answer, read the passage before using the result in a message or document.

Move to a longer file only after the small trial works. If the application cannot read the attachment format, convert a copy to plain text. For a document long enough to exceed what the model can read at once, try a section at a time and note which section supplied each answer.

Sources