Earlier quoted context omitted.
I found that grep actually outperformed vector search for many queries. The only thing I was missing was when I didn't know how exactly to phrase something (the exact keyword to use). Do keyword search systems have workarounds for this? My own idea was for each keyword to generate a list of neighbor keywords in semantic space. I figured with such a dataset, I'd get something approximating vector search for free. I ma…
Do you know of any way to build a fast index you can run grep against? Would love to have something as instantaneous as "Everything" on windows for full text on Linux so I can just dump everything in a directory
Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
71–80 of 92 posts
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#72RAG cli from llamaindex, allow you to do it 100% locally when used with ollama or llamacpp instead of OpenAI. https://docs.llamaindex.ai/en/stable/getting_started/starter...
Pretty easy to run local and lightweight with Milvus Lite with LlamaIndex
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#73Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#74It’s not local, but the Azure Document Intelligence OCR service has a number of prebuilt models. The “prebuilt-read” model is $1.50/1k pages. Once you OCR your docs, you’ll have a JSON of all the text AND you get breakdowns by page/word/paragraph/tables/figures/alllll with bouding-boxes.
Forget the Lang/Llama/Chain-theory. You can do it all in vanilla Python.
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#75Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#76Earlier quoted context omitted.
I found that grep actually outperformed vector search for many queries. The only thing I was missing was when I didn't know how exactly to phrase something (the exact keyword to use). Do keyword search systems have workarounds for this? My own idea was for each keyword to generate a list of neighbor keywords in semantic space. I figured with such a dataset, I'd get something approximating vector search for free. I ma…
Do you know of any way to build a fast index you can run grep against? Would love to have something as instantaneous as "Everything" on windows for full text on Linux so I can just dump everything in a directory
I have seen some recommendations for recoll, but I haven't used it so can't comment. Anecdotally, I normally just use ripgrep in my home directory (it's almost always in ~ if I don't remember where it is). It's fast enough as long as my homedir is local (I.e. not on NFS).
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#77It supports virtually all LLMs and embeddings, including local LLMs and local embedding It scales surprisingly well and I have tons of improvements to come, when I have some free time or procrastinate. Don't hesitate to ask for features!
Here's the link: https://github.com/thiswillbeyourgithub/DocToolsLLM/
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#78Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#79Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#80I am a medical students with thousands and thousands of PDF and was unsatisfied with RAG tools so I made my own. It can consume basically any type of content (pdf, epub, youtube playlist, anki database, mp3, you name it) and does a multi step RAG by first using embedding then filtering using a smaller LLM then answering using by feeding each remaining document to the strong LLM then combine those answers. It supports…
You do need a beefy GPU to run the local LLM, but I think it's a similar requirement for running any LLM on your machine.