OCR, embeddings and a local Mistral agent: a semantic grep for a drive
Years of screenshots, PDFs, invoices and logs, named who knows what. OCR, embeddings and a local Mistral agent reranking results now work like a semantic grep for the whole disk: rough, but it works.
Done withCustom agentSpotted· by HN user cylinderthought· Nov 4, 2026
Result Their less-DIY tip: paperless-ng plus AnythingLLM
“its rough but works like a semantic grep for your whole disk”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
Their drive had years of screenshots, PDFs, markdown files, invoices and random logs, and they could no longer remember what anything was named. They ran OCR on images with Tesseract, used Unstructured and LangChain to parse and chunk files including spreadsheets and emails, embedded the chunks with sentence-transformers, and indexed them with FAISS. They then built a local LLM agent, using a quantized Mistral model, to rerank the search results.
How it went
They call it rough, but say it works like a semantic grep for their whole disk.
Try it yourself with Custom agent
Here's access to my [Downloads and Documents folders], full of screenshots, PDFs, spreadsheets and emails. OCR any images, chunk and embed everything, and build me a local search agent that reranks results by relevance so I can find files by describing what's in them instead of their names.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
Gmail, calendar, maps, contacts, alarms: their homemade agent controls them all, and even taps through Telegram for them using the phone's accessibility service. All data stays on the phone.
Too much news, too little time. They built an agent that sends a daily summary so nothing important slips past, and that digest is what pointed them to the thread where they shared it.
Testing an MFA change usually means setting up a TOTP device by hand. A custom Claude agent drove Playwright instead, wrote a tiny Python TOTP generator, and verified login still worked, for $5.69 in tokens.
Without OpenClaw's bloat and upgrade hell, a small stdlib-only Python agent sends a morning digest: weather, version and security news, football links, reminders and visa changes. A word of the day comes at lunch.
Vet bills mean a paper chase of card charges, emailed invoices and insurer forms. A homemade agent matches each charge to its Gmail invoice, fills the claim form with Gemini's help and stages a draft. A person hits send.
A Raspberry Pi rides in the car and runs a local AI model that answers spoken questions through the car's own speakers, even with the internet switched off. It also posts engine faults into the household chat room.