# how to chat with your own documents using a private AI that never touches the cloud

Upload your PDFs, notes, and research to a local AI and ask it anything — with none of it leaving your machine. This is local RAG, and you can set it up in about 30 minutes.

Updated Nov 17, 2026 · By Ari Vale

This page has referral links: we earn a commission if you buy, at no cost to you.

Our Vast referral code: 623346 (link: https://cloud.vast.ai/?ref_id=623346). New users get no bonus from it; we earn 3% of what referred users spend (Vast's referral program docs: https://docs.vast.ai/guides/reference/referral-program?ref_id=623346).

## How do you chat with your own documents privately?

You set up **local RAG** — Retrieval-Augmented Generation — which lets an AI answer questions about *your* documents instead of just its training data, with **everything running on your machine and nothing sent to the cloud**. The easiest way in 2026 is **[AnythingLLM](https://aliteq.com/open-webui-vs-librechat-vs-anythingllm)** or **Open WebUI** paired with **[Ollama](https://aliteq.com/ollama-vs-lm-studio-which-should-you-use)**: install them, point the app at a local model, drop your PDFs into a workspace, and ask away. On a 16GB laptop the whole thing takes about **30 minutes**. Your documents — contracts, research papers, notes, entire books — never leave your computer. Here's exactly how.

## The short version

- **Local RAG = chat with your own documents**, privately, with nothing sent to the cloud.
- **Easiest tool: [AnythingLLM](https://anythingllm.com/)** — a desktop app built for document chat, zero-config (bundled vector database).
- **Alternative: [Open WebUI](https://openwebui.com/)** — a browser ChatGPT-like UI with RAG built in, via Ollama.
- **Setup: install Ollama → pull a model → point the app at it → drop in PDFs.** ~30 minutes.
- **Formats supported:** PDF, DOCX, TXT, Markdown, CSV — even code and whole books.
- **Fully private** — the documents and the AI both stay on your machine.

## How local RAG works (in plain English)

RAG sounds technical but the idea is simple. When you ask a question, the system **embeds your query** (turns it into numbers), **searches a local index of your documents** for the most relevant chunks, and **feeds those chunks to the [local AI](https://aliteq.com/best-gpu-for-local-ai) along with your question** so it answers using *your* content. That's the whole trick — it's how the AI 'knows' about your specific files without being trained on them. The key point for privacy: **every step runs locally**. The [embedding model](https://aliteq.com/best-local-embedding-model-for-rag), the vector search, and the language model all sit on your machine, so unlike uploading a PDF to a cloud chatbot, your documents are never transmitted anywhere. That makes local RAG the right tool for anything sensitive — legal documents, medical records, proprietary code, personal notes — where you'd never want to hand the file to a third party.

![Organized documents and files](https://media.aliteq.com/media/2026/07/b18-rag-body.jpg)
Local RAG searches your own documents and answers from them — with nothing ever leaving your machine. · Unsplash

## The 30-minute setup

Here's the fastest path, using AnythingLLM (a desktop app built specifically for this, with a bundled vector database so there's nothing to configure). **First, install [Ollama](https://aliteq.com/how-to-run-a-local-llm-on-your-pc-beginners-guide)** and pull a model — an 8B model like Llama or [Qwen3](https://aliteq.com/how-to-run-qwen3-locally) is plenty for document Q&A. **Second, install AnythingLLM** and point it at your Ollama instance. **Third, set the embedding model** to something like `nomic-embed-text` (AnythingLLM can pull it for you). **Fourth, create a workspace and drag your PDFs in** — it processes them into the local index automatically. **Then just ask questions.** That's it: on a 16GB RAM machine, the full path takes about 30 minutes, most of which is downloading. Open WebUI is a great alternative if you prefer a browser interface — its RAG is built in and needs no extra configuration once you have Ollama running. Either way, you end up with a private ChatGPT for your own files. Torn between the two front ends? Our [Open WebUI vs LM Studio](https://aliteq.com/open-webui-vs-lm-studio) comparison covers which suits you, and [managing your Ollama models](https://aliteq.com/how-to-manage-local-ai-models-ollama) helps once you have several pulled.

Which model to pull depends on your card. An 8GB GPU handles the 8B models above (see [the best local LLM for 8GB of VRAM](https://aliteq.com/best-local-llm-8gb-vram)); a 12GB card such as the [RTX 3060 12GB](https://aliteq.com/gpus/rtx-3060-12gb) leaves more room for long documents in context, and [16GB picks](https://aliteq.com/best-local-llm-16gb-vram) step up to stronger models. For scanned pages and screenshots, add a [local vision model](https://aliteq.com/how-to-run-a-local-vision-model); for meetings and voice notes, transcribe them first with [Whisper running locally](https://aliteq.com/how-to-run-whisper-locally).

**Your PC is too slow for document chat?** No GPU, or answers too slow on a big pile of documents? This opens a rented 24GB GPU on Vast.ai with Ollama and Open WebUI (RAG built in) already installed, so it opens ready to chat. A rented GPU is someone else's computer, so use it for documents you are allowed to upload, not the sensitive files this guide is about; pick a verified host and delete the instance after. [Open a ready-to-chat 24GB GPU](https://cloud.vast.ai/?template_id=26e7446a7d6906ee366b620c84e1e422&ref_id=623346) (Referral link: we earn a commission if you buy.) Live RTX 3090 prices on Vast.ai, from and typical: https://aliteq.com/vast-ai-pricing

Hourly rates for every card are on our [cloud GPU price table](https://aliteq.com/cloud-gpu).

Not every app needs a vector database: Claude Code finds code with grep and file reads, and our agentic search vs RAG guide gives rules for when embeddings are worth adding. Your RAG search quality rests on the embedding model, and [this guide to embedding dimensions and storage cost](https://aliteq.com/embedding-models-explained) explains why to pick by retrieval quality on your own data, not one leaderboard average.

Related guides: [Can you fine-tune an LLM on your own GPU, and how much does it cost?](https://aliteq.com/how-to-fine-tune-an-llm-locally-lora), [How to run text-to-speech AI locally with the best open models](https://aliteq.com/how-to-run-text-to-speech-locally), [How to run uncensored AI models locally and what abliterated really means](https://aliteq.com/how-to-run-uncensored-ai-models-locally).

## Quick answers

**Q: How can I chat with my documents using local AI?**

A: Set up local RAG (Retrieval-Augmented Generation) with a tool like AnythingLLM or Open WebUI paired with Ollama. Install Ollama and pull a model (an 8B model is plenty), install AnythingLLM and point it at Ollama, set an embedding model like nomic-embed-text, then drag your PDFs into a workspace and ask questions. The AI answers using your documents' content, and everything runs on your machine — nothing is sent to the cloud. On a 16GB laptop, setup takes about 30 minutes.

**Q: Is local RAG actually private?**

A: Yes — that's its main advantage over cloud document chatbots. In local RAG, every component runs on your machine: the embedding model that indexes your documents, the vector search that finds relevant passages, and the language model that answers. Your documents are never transmitted anywhere. This makes it the right choice for sensitive material — legal files, medical records, proprietary code, personal notes — where uploading to a cloud service would be a privacy or compliance risk. Nothing leaves your computer at any step.

**Q: What documents can a local RAG system read?**

A: Common local RAG tools like AnythingLLM support PDF, DOCX, TXT, Markdown, and CSV files as of 2026, and you can load research papers, contracts, code, notes, or even entire books. You drop the files into a workspace, the tool processes them into a searchable local index, and then you can ask your local AI questions about their content. It works well for summarizing documents, finding specific information across many files, and answering questions grounded in your own material rather than the model's general training.

Local RAG turns your own files into a private, searchable AI — AnythingLLM or Open WebUI with Ollama, about 30 minutes to set up. Pair it with a [good local model](https://aliteq.com/best-local-llm-vram-tiers-what-actually-fits) and enough [VRAM](https://aliteq.com/tools/vram-calculator). New to this? Start with the [beginner's guide to local LLMs](https://aliteq.com/how-to-run-a-local-llm-on-your-pc-beginners-guide). Source: [AnythingLLM](https://anythingllm.com/) and [Open WebUI](https://openwebui.com/).

## Sources

- [AnythingLLM](https://anythingllm.com/)
- [Open WebUI](https://openwebui.com/)

---

Canonical: https://aliteq.com/how-to-chat-with-your-documents-locally-rag

This page has referral links: we earn a commission if you buy, at no cost to you.
