LocalDocs lets GPT4All answer from your own documents instead of only from the model’s training. The catch is where you turn it on: the collection is activated from the local server’s own chat window, in the GUI — not through the API.
Activate the collection in the server chat window
Enable the local server in Settings, then open the server’s chat window — it is the last entry in the history sidebar. Add your documents as a LocalDocs collection there, activate the collection in that window, and ask your question. The answers now draw on your documents. You cannot activate a collection through the API: the server API has no endpoint for it, so any API client must use the GUI window for LocalDocs.
Settings -> Application -> Enable Local Server
Server chat window (last entry in history sidebar) -> LocalDocs collection -> activate
# the API cannot activate a collection
LocalDocs is a GUI feature of the server window, so a headless setup cannot use it. If your workflow is API-only, the documents must reach the model another way — through the prompt, or through a RAG tool that the API can call.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Server on | The local server is enabled | Settings > Application |
| Window found | The server chat window is the last history entry | Open it in the GUI |
| Collection added | Your documents are in a LocalDocs collection | Check the files loaded |
| Activated | The collection is active in that window | Ask a question it answers |
Expected result. We checked the GPT4All Local API Server wiki, which says LocalDocs is activated via the server’s own chat window (the last entry in the history sidebar) and cannot be activated via the API. We did not use LocalDocs on this machine.
Limits
This guide covers the GUI activation only. LocalDocs does not work through the API. We did not test any collection ourselves.
