Hey folks. Long-time lurker, first real post. I've been self-hosting a local LLM setup and wired my company docs into it for internal Q&A. For months it gave confidently wrong answers and I kept blaming the model — bigger quant, longer context, better prompts, the whole checklist. None of it stuck.
Figured I'd share what actually fixed it, because I see the same advice loop here constantly ("just use a bigger model / better embedding") and it misses the real issue for a lot of us.
The documents were the problem, not the brain
I had five years of contracts, tickets, manuals, and scanned PDFs dumped in a folder. I pointed the ingest at it and told the model to "understand." What it actually got was ~14GB of unsorted raw text, and the parts it could retrieve were matched by filename and keyword — literal strings. So "2024 supplier agreement" found nothing if the file was named scan_0042.pdf. Wild how obvious this is in hindsight.
The model wasn't lying. It was reading a messy room and doing its best.
Compression isn't "throwing words away"
Biggest misunderstanding I had: I thought trimming docs meant losing content. It doesn't. A 300MB contract is huge because of repeated objects, embedded media, redundant structure — not because the actual clauses are that big. Re-encoding by purpose (keep text + seals lossless, re-encode the decorative junk) dropped size 60–80% in my case and the model suddenly could load files it used to choke on. Same retrieval, far less boilerplate fighting for attention.
Swapped to meaning-based retrieval and it was night and day for intent ("who did we sign with" now surfaces the Party B clause). But — and this bit me — semantic just amplifies your input. Dump messy, duplicated, over-long chunks in and it retrieves garbage, just confidently. Cleaning + sensible chunking first is the actual prerequisite. The embedding model isn't a cleaner.
The thing that actually changed my workflow: watching the prep
Real talk — the part that made me trust the system was making document preprocessing observable. Before, I'd kick off a big batch import (compress + convert + ingest, hours long) and just... wait. Black screen, maybe a log nobody reads. Come back and something's off but I have no idea where. Did it finish? Did it skip files? Which step is slow?
Once I could actually see the prep move — progress in real steps, a failed file pinpointed instead of hidden, and the ability to roll back a bad batch and redo just the broken part — the whole thing went from "scary demo" to "I'd put this in front of a coworker." That visibility, more than any model swap, is what made it usable day to day.
Numbers that reframed the risk for me
- IBM 2025 breach report: among stolen data, customer PII 53%, employee PII 37%, IP 33%, and IP was the costliest per record at 178 USD. Raw-fed docs leak exactly these.
- McKinsey: knowledge workers waste ~19% of the work week just hunting for info. A bad doc setup just relocates that frustration to a chat box.
- Komprise: 60–70% of primary storage data is untouched 90+ days but still on the expensive tier. Most of what we hoard is cold.
None of that is a model problem.
| What to check | Why |
| Shrinks source without nuking text/seals | Large files fail to load otherwise |
| Masks PII before indexing | IBM stat above — raw PII is the leak |
| Every answer cites a file + page | Audit/trust |
| Semantic + lexical, reranked | Meaning beats filenames |
| Batch job is observable + rollbackable | This is what made me trust it |
| Runs fully local | Contracts shouldn't leave the network |
If you're building or buying, don't start at the model. Start at the documents, and make sure you can watch the prep happen.
Anyone else hit the "it was the filing cabinet, not the brain" moment? Curious what your preprocessing stack looks like — search the name and you'll find it if you want specifics, but I'm more interested in the workflow than the brand.
To make this concrete, a dumb example from my own mess: I had a folder of vendor PDFs, half named invoice_final.pdf and half IMG_2231.pdf. Filename search was useless. After cleaning + semantic chunking, asking "what did we pay Acme in Q2" actually pulled the right page. Took me an embarrassing amount of time to realize the search was never the model — it was that the model was searching garbage filenames.
The observable part saved me when a 2,000-file batch silently dropped ~40 scans (odd image-based PDFs). Old way I'd have found out when a user asked about one. New way the failed files were flagged mid-run, I converted those 40 by hand, and rolled back just that slice. No full re-import, no 3am panic. That's the feature I didn't know I needed.
Anyway, still running it all locally and the doc prep step is now the part I trust most. The "watch the prep" thing specifically killed my imposter-syndrome around shipping it to coworkers — before, I was terrified a batch had silently dropped something and I'd look stupid. Now if a file fails I know exactly which one and I fix just that.
One gotcha worth mentioning for fellow self-hosters: don't sleep on format conversion. Half my "missing answers" were just docs in a format the ingest choked on, not a retrieval problem. Converting up front (and watching the conversion step like the rest of the prep) closed most of those gaps. The model got zero smarter and the answers got way better.
Happy to compare notes on chunk sizes / reranking if anyone's further down this path. And yeah — if your RAG is lying to you, go look at the filing cabinet before you go shopping for a bigger brain.