What's RAG?
Ask HN: What are you using to parse PDFs for RAG?
11–20 of 102 posts
Re: Ask HN: What are you using to parse PDFs for RAG?
#12What's RAG?
"Retrieval augmented generation (RAG) is a type of information retrieval process. It modifies interactions with a large language model (LLM) so that it responds to queries with reference to a specified set of documents, using it in preference to information drawn from its own vast, static training data."
Re: Ask HN: What are you using to parse PDFs for RAG?
#13Re: Ask HN: What are you using to parse PDFs for RAG?
#14have to pay $25K upfront That's a lot of your money. It's not a big dose of OPM (Other People's Money). When building a business, adequate capitalization solve a lot technical problems and it is no different when a business is built. If you aren't building a business, money is different and there's nothing wrong with not building a business. Good luck.
I've helped prototype something using PyMuPDF. It worked as well as it had to, and it didn't cost $25k.
Re: Ask HN: What are you using to parse PDFs for RAG?
#15What's RAG?
Re: Ask HN: What are you using to parse PDFs for RAG?
#16I also experimented with pretty large of various files (around 6000 video games full notices) where I used OCR parsing in a similar configuration with mixed results due to the visual complexity of the original content.
Re: Ask HN: What are you using to parse PDFs for RAG?
#17PyMuPDF seems to be intended for this use-case and mentions images: https://medium.com/@pymupdf/rag-llm-and-pdf-conversion-to-ma... (Though the article linked above has the feeling, to me, of being at least partly AI-written, which does cause me to pause) > Update: We have now published a new package, PyMuPDF4LLM, to easily convert the pages of a PDF to text in Markdown format. Install via pip with `pip install pymup…
Re: Ask HN: What are you using to parse PDFs for RAG?
#18If I were working on this problem in 2024, I’d use Azure to pre-process all docs into something machine parsable, and then use an LLM to transform/structure the processed content into my specific use-case.
For RAG, I’d treat the problem like traditional search (multiple indices, preprocess content, scoring, etc.).
Make the easy things easy, and the hard things possible.
Re: Ask HN: What are you using to parse PDFs for RAG?
#19Re: Ask HN: What are you using to parse PDFs for RAG?
#20I would recommend give LLMWhisperer a try with the documents pertaining to your use case. https://unstract.com/llmwhisperer/ Try demo in playground: https://pg.llmwhisperer.unstract.com/ Quick tutorial: https://unstract.com/blog/extract-table-from-pdf/