Guide shows how to set up a private document assistant on an 8 GB graphics card
A technical guide shows how to build an AI assistant that answers questions about your own documents on a graphics card with 8 GB of memory. The guide provides no measured speed figures, and the authors stress several limitations.

You don't need an expensive data center to let an AI answer questions about your own documents. A guide on HackerNoon from November 17 shows how to set it up on a graphics card (GPU) with 8 GB of memory. The guide was written by Naresh Waghela and Kamlesh Devra.
The method is called RAG. It means the system first finds the passages in the documents that match the question, and then lets the language model formulate an answer based on them.
The work is split between the processor and the graphics card
In the guide, the tasks are split in two. The computer's regular processor (CPU) reads in the documents and searches them. The graphics card is used only to let the language model write the answer itself. This keeps the search from taking up scarce graphics memory.
The language model is Qwen2.5-7B-Instruct in a compressed version (Q4_K_M quantization), which takes up about 4.68 GB. The documents are split into chunks of 160 words, overlapping by 32 words. The system reads PDF files with text as well as Markdown and plain text. Scanned PDF files do not work without additional text recognition (OCR).
Before the model answers, the program checks that the selected excerpts and the question itself fit in the model's context window, meaning the amount of text the model can handle at one time. Here the window is set to 4,096 tokens. The system prompt also tells the model to treat the excerpts as untrusted data and never follow instructions found in them. This is meant to protect against prompt injection, where hidden commands in a document try to control the AI.
Memory is tighter than the number suggests
The model file's size is not the total usage. According to an independent guide from innoai.space, a card with 8 GB has roughly 7 GB usable once the operating system and display have taken their share. A model of this type takes up roughly 4.5 GB, and the remaining roughly 2.5 GB goes to intermediate calculations. The figures are estimates, not measurements. The same guide recommends a smaller model if the documents are long, and argues that a good selection of text passages beats a larger model on weak hardware.
The authors' own caveats
The HackerNoon guide provides no measured performance figures. The authors do not want to show a chart of tokens per second without having run the task on a named graphics card.
They themselves point to several limitations:
- PDF files with multiple columns can be read in the wrong order.
- The search can struggle with synonyms.
- Similarity scores are a ranking signal and no guarantee that an answer is correct.
- That the server can only be reached from the computer itself (localhost) is not the same as security or privacy. There is neither document-level access control nor encryption.
- Source citations in the answers are the model's own output and are not independently verified.
According to the authors, the design principle is that a smaller graphics card requires a smaller question, not a smaller ambition.
Innoai.space points out that an 8 GB setup is not suited to heavy traffic from many users, very long documents or complex tasks across multiple files. If the text is often truncated, the guide says, you should switch to a larger graphics card or a hosted service.
Read also

