New Tool Radar

Local AI

Chat with a Local Document in GPT4All Using LocalDocs

Create a LocalDocs collection in GPT4All from a folder of documents, and ask the model questions answered from those files.

Schematic with three steps: Create a document collection; Wait for embedding to finish; Chat with the collection.

LocalDocs is GPT4All retrieval-augmented generation: it embeds your documents locally and lets a chat draw answers from them, instead of only from the model weights. All of it runs on your machine, with no data sent to a cloud service.

What you need

  • GPT4All installed with a model downloaded
  • A folder of documents to ask about, such as PDFs
  • Enough disk space for the embeddings database

Step 1: Create a document collection

Click Settings, select LocalDocs, and check the supported file extensions. Then click LocalDocs on the main menu, click Add Doc Collection, enter a collection name, browse to the folder holding your documents, and click Create Collection to scan them.

Step 2: Wait for embedding to finish

Watch the embeddings count and the model in use, which is nomic-embed-text-v1.5 by default. Embedding runs locally; you can pick the CUDA device in Settings under LocalDocs if a GPU is available, otherwise it uses the CPU.

Step 3: Chat with the collection

Click Chats, start a new chat, and click LocalDocs in the top-right to select your documents collection. Ask a question about the documents; the model answers using the retrieved passages, and the chat stays private and local to your workstation.

Worked example: ask a user manual a question

The table below is a synthetic example. The LocalDocs flow and the default embedding model come from the cited GPT4All guide; the documents are illustrative.

Step Action Expected result
Collection Add Doc Collection, pick a folder Documents scanned
Embed nomic-embed-text-v1.5 Embeddings count rises
Chat Select collection, ask a question Answer from the documents

Expected result (UNTESTED). the collection embeds, the chat attaches it, and the answer quotes or follows the documents rather than general knowledge. This check was not run live; the flow comes from the cited GPT4All guide.

Limits

  • LocalDocs only covers the documents in the collection; other files are not searched.
  • Embedding a large folder takes time and disk space for the embeddings database.
  • Answers depend on retrieval quality; a question outside the documents gets a weak answer.
  • Remote model providers are optional; local models keep everything on the machine.

Sources

See all