CPU, GPU AND RAM

A local RAG server: placing components around the GPU

In this article
THE QUICK TAKE

A GPU helps the stages that actually use it; measure retrieval quality and the full pipeline before sizing the server.

A local RAG server combines retrieval over your documents with model-generated answers. Hardware selection should cover text preparation, embeddings, index storage, search, reranking and generation. Buying a GPU addresses only stages whose selected implementation actually uses it. Start with the complete data path and a small quality test.

Separate indexing from live requests

Documents can often be processed in advance, while a user’s question requires work at request time. Preserve the embedding model, chunking rules and document identifiers so indexed content and later queries remain compatible. A changed model may require rebuilding representations rather than merely restarting the server.

List the live path separately: encode the question, retrieve candidates, optionally rerank them, assemble context and generate an answer. This reveals whether a slow response originates in search, transfer, reranking or generation instead of attributing the whole delay to the GPU.

Assign resources by stage

StageMeasurements for server selection
Text extractionCPU, RAM and file-processing rate
EmbeddingsModel size, batch memory and throughput
Vector indexRAM, disk, filters and query latency
RerankingPair count and text lengths
GenerationVRAM, context, concurrency and response time

Measure actual chunk counts rather than using PDF count as the sole sizing unit. Keep indexing and user traffic distinguishable when they share a machine. A large batch can compete with interactive work even if each task fits individually.

Verify what local means

Identify where embeddings and model calls execute. A locally stored index can still invoke an external embedding API or generation endpoint. Model downloads, plugins and other dependencies also need review if an offline environment is required.

Prepare the required artifacts and test the intended conditions. A successful search on an internet-connected machine does not prove autonomous operation. Record the location of data, model weights, indexes and backups, plus who operates each process. This is a deployment boundary, not a conclusion based on one component’s name.

Evaluate retrieval and recovery

Create questions with known useful source fragments. Check whether retrieval returns those fragments before judging the fluency of the final answer. A persuasive response can hide missing evidence. Then examine reranking and generation separately, preserving examples of correct and incorrect results.

Test adding and updating documents, restarting services and restoring a small dataset. Save CPU, RAM, disk, GPU and latency measurements under a representative workload. A measured component role gives the proposed pilot a clearer basis than assuming every RAG deployment requires the same accelerator.

Official references: sbert.net — README, qdrant.tech — retrieval relevance.

Related guides: Reranking in RAG: how many candidates should you rescore?, DLP at an AI gateway: reducing sensitive data exposure.

← All articles