LocalDocs is GPT4All’s way to chat with your local files and data. It lets you use a local model to chat with private data without any data leaving your computer or server — and when it answers, your model will cite the sources that most likely contributed to the output. The files are never uploaded; instead, GPT4All builds an index of the folder on your computer and searches it when you ask a question.
Set up a collection from a practice folder
GPT4All’s docs give the steps: install the latest version of GPT4All Chat; go to Settings > LocalDocs tab; download the SBert model; configure a collection (folder) on your computer that contains the files your model should have access to. As you add more files to the collection, your model will dynamically be able to access them. Then spin up a chat session, and at the top right, click the database icon and select which collection you want your model to know about during your chat session.
Make a practice folder first — never use real private files for a first test. Create a folder called practice-docs with one plain text file, lighthouse-notes.txt, containing three fictional lines: “Mara is the lighthouse keeper. The lamp is checked at noon. The supply boat comes on Tuesdays.” LocalDocs supports plain text files (.txt, .md, and .rst) and PDF files (.pdf).
Try it: ask a question only the folder can answer
With the collection selected in the chat, ask: When is the lamp checked? Then check two things: the answer, and the references below it.
| Check | What you should see |
|---|---|
| Answer | Noon — the fact is in your file, not in the model’s training |
| Sources | A reference to lighthouse-notes.txt below the response |
| Indexing | If the collection is large, wait 1–2 minutes for it to finish indexing first |
If the answer says noon and cites your file, LocalDocs is working. If it says it does not know, check that LocalDocs is enabled for your chat session — the database icon on the top right should have a border — and that indexing has finished. Expected result. We checked the GPT4All LocalDocs docs. We did not run GPT4All on a sample folder.
Limits
LocalDocs can query your documents for snippets that answer a question, but it cannot answer general metadata queries such as “What documents do you know about?”, and it cannot summarize a single document — the docs list both as things it cannot do. Even a model equipped with LocalDocs can hallucinate, so check an important answer against the cited file itself. And be careful with the model you chat with: the docs warn that you can start a chat with an external model such as ChatGPT, but then data will leave your machine. We did not run GPT4All, so no answer text here is a recorded result.
