Earlier quoted context omitted.
Does the llamaindex PDF indexer correctly deal with multi-column PDFs? Most I've seen don't, and you get very odd results because of this.
i've made quite good conversions from pdf to markdown with https://github.com/VikParuchuri/marker . it's slow but worth a shot. Markdown should be easily parseable by a rag. i'm trying to get a similar system setup on my computer.
Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
61–70 of 92 posts
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#62There is no AI or any other modern fad, but fulltext search (including OCR for image files inside PDFs) works great
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#63OCR and pattern matching on text are computationally cheap and incredibly easy to do. For example, tax documents often bear the name of your government's tax authority, which presumably you are familiar with and can search for. They also tend to have years on them.
I wanted to convert some equations from some maths textbook back into latex, and I found that taking a screenshot and feeding the image into some LLM service supporting images was a good way to do that.
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#64Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#65Earlier 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
Re: Ask HN: I have many PDFs – what is the best local way to leverage AI for search?
#66If you haven’t given some serious thought to getting rid of most of the documents then consider it. There is very little need to keep most routine documents for more than a few years. If you think you need your electric bill for March 2006 at your fingertips, why?
When it comes to a search solution - what kind of searches have you done in the past? What kind of problems did you come across? If the answer to either is "none" you are planning on building a useless system.