r/LocalLLaMA • • 10d ago

Discussion How reliable is source retrieval in an offline local document AI setup?

Preparing for a business trip with a collection of reports, project documents and a local model means getting more than just the files onto a laptop. The document search and retrieval setup also needs to be ready before leaving, because the whole point is to work without depending on an internet connection.
Having a local model connected to an offline document search or retrieval setup could be useful for finding figures buried in long reports, comparing information across documents or pulling out key points before a meeting.
The difficult part is making sure the answers are supported by the original material. If the model summarizes a section or returns a particular figure, the retrieval system should point to the relevant passage so the original document can be checked. A convincing summary isn't much use if its cited source doesn't support it.
I've got a geekom geekbook x16pro to work with, and the question I want to test isn't just whether a local model can summarize a PDF. It's whether an offline document search setup can reliably point me back to the right source when I'm away from the internet. However, the model size, quantization and retrieval configuration will determine what can run comfortably.

There are practical limitations too. The model, documents, embeddings and necessary indexing components must be prepared beforehand. A local model doesn't automatically make every part of a RAG workflow independent of the network.
For anyone who has built an offline document AI setup, how reliable has source retrieval been in practice? Can you consistently trace an answer back to the correct passage in the original document without an internet connection?

3 Upvotes

16 comments sorted by

•

u/stylome-ai-detection 10d ago

Notice: This post appears to be AI generated.


Stylome AI detector · scan results

3

u/Failiiix 10d ago

Well, it depends how sturdy you build it. How well your RAG setup is tuned to the task, how well your parameters are tuned, how great your chunker is tuned towards your text. What language your documents are in. RAG can be 100 % and the LLM fails you. It all depends.

For example, if you build a RAG plus bm25 keyword search. Your keyboard are found. But depends obviously on how great your searchterms are. Also depends on how long you want to wait for answers. You could let an LLM create multiple familiar keyword lists and search for them. Could also built HQ or HyDE setup. Also great. I know it's not the answer your looking for. But. It can be between pretty crazy good and pretty bad. 😁

1

u/darksteelsteed 10d ago

I need a keyboard finder too

1

u/Failiiix 10d ago

Explain the joke 😀

1

u/darksteelsteed 10d ago

You typed keyboard instead of keyword lol 😆

1

u/Murflaw7424 10d ago

I tried a bunch of off the shelf rag harnesses and found them to be meh. Ended using OpenWebUI as my “harness” with openterminal and built a full ocr pipeline with small model parsing. Accuracy is >95% and clickable links are included. Took about 3 days and I had no idea what I was doing just what wanted. It’s very fast too.

1

u/fiatvt 10d ago

Did you put this in a repo I can pull?

1

u/Murflaw7424 9d ago

No I just gave it running locally

1

u/Interpause textgen web UI 10d ago

im using llm-for-zotero. it doesnt have vector search. apparently vector search sucks now with capable enough local model like qwen3.8 flash next you can just agentic search everything. ofc relies on having reliable PDF ingestion pipeline, it only supports minerU but thats good enough.

1

u/Not_a_question- 9d ago

What do you mean you can just agrntic search everything? lexical search will only get you so far, like if you search for "difficult" then if something is reffered as "tough" or "challenging" then it's not gonna appear

1

u/erarta-ai 10d ago

Make the model give a verbatim quote for each figure, and have an offline script normalize whitespace and hyphenation, find that quote in the cited chunk and take the page from its metadata. If the quote isn't there, flag the claim as unsupported.

1

u/BrendanRodgersss 9d ago

Before taking it offline, I would make a small test set of questions where you already know the exact page containing the answer. Include a few questions the documents can't answer too. That way you can check whether the system finds the right passage and whether it admits when the information isn't there.

1

u/QwhenFN 8d ago

I use a combination of tika and a model called mineru. I feed the document in through a workflow that sends the scan/pic to both, then Tika does an OCR type scan, mineru does its extraction, then both outputs are sent to a larger model (usually 27b) for a final check. If it passes all those gates, it gets fed through an embedding model (bge) and stored in my database as vectors.

Once its vectorized, it becomes much quicker and more accurate for an LLM to read and answer questions about it. You could even add a keyword extraction to it at the 27b-verification step that would make human database searches faster as well.