AINAS.co.ukAI NAS database for the UK

Private RAG on an AI NAS

Updated

The short answer

Private RAG lets a local model answer questions using your own documents. On an AI NAS you run an embedding model to index the files and a chat model to answer, usually through AnythingLLM or Open WebUI with Ollama. Plan on 32GB of memory or more.

How does RAG work?

Retrieval augmented generation has two halves. First, an embedding model reads your documents, splits them into passages and turns each into a vector, building an index. Second, when you ask a question, the passages closest to it are found in the index and handed to a chat model along with your question, so the answer draws on your files rather than only on what the model learned in training.

Why run it on a NAS?

Because the documents are already there. Indexing files where they live avoids copying them to another machine, and keeping the models local means contracts, medical letters or business records never go to a cloud service.

What do you need?

  • Memory for two models at once: 32GB for a personal library, 64GB or more for a team (Estimated)
  • An M.2 slot or SSD for the index
  • Ollama for the models, plus AnythingLLM or Open WebUI for the documents and chat
  • Optionally a GPU to speed up the answering model

How do you set it up?

  1. Install Ollama and pull a chat model and an embedding model from the Ollama library.
  2. Install AnythingLLM or Open WebUI in Docker and connect it to Ollama.
  3. Create a workspace or collection and upload, or point it at, a folder of documents.
  4. Wait for indexing to finish, then ask questions. Answers include references to the passages used.

How should you organise documents for RAG?

Keep a dedicated folder or share for the library the assistant should read, rather than indexing the whole NAS. Remove duplicates and old drafts, which crowd the search results. Split very large PDFs where you can. For a team, create separate workspaces for separate audiences so people only get answers from documents they are allowed to see. Re-index when a large batch of files changes.

Are there built-in options?

UGREEN's iDX models and Zettlab's Ultra models include semantic search and question answering over your files. QNAP's Qsirch offers a local AI mode on systems with a capable GPU. These need less setup but give less control.

Common questions

How many documents can it handle?

Thousands. Indexing takes time once, then searches are quick. Memory limits the model size, not the number of documents.

Will answers always be correct?

No. RAG reduces made-up answers by grounding them in your files, but check important answers against the cited passages.

Which embedding model should I use?

Start with the default your tool suggests, such as nomic-embed-text in Ollama, which is small and runs well on a processor. Embedding models are tiny compared with chat models, so they add little memory pressure.

Does RAG work with scanned PDFs?

Only if the text can be read. Scanned pages need optical character recognition first; some tools do this on import, and others expect text-based files. Check a few answers against the original documents before relying on them.

How do I keep the index up to date?

Re-index when documents change. AnythingLLM and Open WebUI let you add or remove files from a collection. Removing old versions stops the model quoting outdated policies or prices.

Which systems support this?

From our live records, with current Amazon UK prices and the time each was verified. Where a system has no verified Amazon UK offer, its Amazon US price is shown in dollars and marked.

SystemRAGPriceBuy
QNAP QAI-h1290FX
QNAP QAI-h1290FX
Yes (Vendor confirmed)

No verified price

NIMO Nexus Pro
Limited (Vendor confirmed)

No verified price

QNAP TS-h1290FX
QNAP TS-h1290FX
Yes (Vendor confirmed)

£10,614.20

Amazon UK · Verified

View Deal
Minisforum N5 Pro
Minisforum N5 Pro
Limited (Unverified)

£1,040.41

Amazon UK · Verified

View Deal
UGREEN iDX6011
UGREEN iDX6011
Yes (Vendor confirmed)

£1,999.99

Amazon UK · Verified

View Deal
UGREEN iDX6011 Pro
UGREEN iDX6011 Pro
Yes (Vendor confirmed)

$5,999.99

Amazon US · Verified

Ships from the US; delivery and import charges shown at checkout

View Deal
Minisforum N5
Minisforum N5
Limited (Unverified)

$919.00

Amazon US · Verified

Ships from the US; delivery and import charges shown at checkout

View Deal
QNAP TVS-h874T
QNAP TVS-h874T
Limited (Unverified)

£3,834

Amazon UK · Verified

View Deal
UGREEN DXP6800 Pro
UGREEN DXP6800 Pro
Limited (Vendor confirmed)

£874.99£929.99

Amazon UK · Verified

View Deal
UGREEN DXP8800 Plus
UGREEN DXP8800 Plus
Limited (Vendor confirmed)

£1,189.99

Amazon UK · Verified

View Deal

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon.co.uk or Amazon.com, as applicable, at the time of purchase will apply to the purchase of this product.

  • Can a NAS run a local LLM?

    Can a NAS run a local LLM? Which NAS hardware handles Ollama and models like Llama and Qwen, how fast it runs without a GPU, and which systems take a GPU.

  • Can a Synology NAS run Ollama?

    Can a Synology NAS run Ollama and local LLMs? What Container Manager supports, how fast the Ryzen Plus models are, memory limits and better local AI options.

  • Which NAS has an NPU?

    Which NAS systems have an NPU, how many TOPS they offer, what NAS NPUs actually accelerate, and why they do not speed up Ollama or local LLMs yet.