Lo

Local-first RAG for PDF user manuals, datasheets

Hacker News

Local-first RAG for PDF user manuals, datasheets

I work on embedded firmware for my day job, and I've found LLMs to be useful for answering questions about technical errata. But, they tend to be bad at answering highly specific questions without using some kind of search tool (if they decide to use one at all), and some user manuals are far too large to fit into a context window. I built askdocs-mcp as a way to give agents a more direct route to searching through a project's source-of-truth documents. My design constraints were that it run 100% locally, as some manuals are under NDA. It should start up fast, and let me experiment with different embedding & language models. It was built with ollama in mind, but if you can't run models locally, it will work with any OpenAI compatible endpoint. Features: - Incrementally builds and caches the set of docs. Initial start up can take a while as PDFs are chunked and ran through an embedding model, but after that, startup is near instant. - Uses the filesystem as the database - you only need `ollama` running somewhere so the tool can access an embedding and natural language model. - Provides a tool `ask_docs` for getting natural-language answers back about what the documentation says, which are annotated with page numbers the information came from. Those can be used with tool `get_doc_page` to retrieve the full page if the agent needs additional context. Because I'm providing the exact set of documents that apply to my project, I see fewer hallucinations and rabbit-hole chasing. The agent isn't relying (as much) on its latent space to answer questions, and it avoids using a web search tool which might find subtly different part numbers or protocol versions. It saves precious context as well, because the parent agent gets a concise version of what it's looking for, instead of doing the "searching" itself by loading large chunks of the document into itself. I'm sure there are improvements that can be made e.g. document chunking or the "system prompt" the tool gives to the language model - I'd love to hear your feedback, especially if you find this useful. Thanks!

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agents, agent, model · Missing: mac, macos, cursor
95%95% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: compatible · Missing: supports, reddit linkedin, podcasting
83%83% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: filesystem, llama, ide · Missing: https docs, excited, just released
55%55% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
50%50% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: answers, way · Missing: mobile apps, ios, personal
46%46% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Ve
Vectorless RAG48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Vectorless RAG

Hacker News11
Pa
PageIndex – Vectorless RAG66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PageIndex – Vectorless RAG

Hacker News192
Preprocess
Preprocess65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Preprocess maximises RAG performances

Product Hunt+106API
Lo
Local RAG with Ollama, Gemma and RETSim47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Local RAG with Ollama, Gemma and RETSim

Hacker News4
Lo
Local-first PDF redaction for permanently removing data46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Local-first PDF redaction for permanently removing data

Hacker News4
I
I made a RAG agent for the leyman24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a RAG agent for the leyman

Hacker News5
Ragie Connect
Ragie Connect86%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Build RAG applications on your user data

Product Hunt+353Software Engineering
Co
Code-Chunk for RAG48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Code-Chunk for RAG

Hacker News1
Be
Be My First User27%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Be My First User

Hacker News3
Mo
Moshimoshi, Gravatar for user bios51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Moshimoshi, Gravatar for user bios

Hacker News2