frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•1y ago
I've got very used to using the "big" LLMs for analysing PDFs

Now llama.cpp has vision support; I tried out PDFs with it locally (via LM Studio) but the results weren't as good as I hoped for. One time it insisted it couldn't do "OCR", but gave me an example of what the data _could_ look like - which was the data.

The other major problem is sometimes PDFs are actually made up of images; and it got super confused on those as well.

Given this is so new I'm struggling to find any tools which make this easier.

Comments

raymond_goo•1y ago
Try something like this

  !pip install pytesseract pdf2image pillow
  !apt install poppler-utils
  #!apt install tesseract-ocr
  from pdf2image import convert_from_path
  import pytesseract

  pages = convert_from_path('k.pdf', dpi=300)

  all_text = ""
  for page_num, img in enumerate(pages, start=1):
      text = pytesseract.image_to_string(img)
      all_text += f"\n--- Page {page_num} ---\n{text}"

  print(all_text)
constantinum•1y ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

297•halcdev•7h ago•503 comments

Both recent GCP outages caused by fiber optic maintenance

2•fastest963•22m ago•0 comments

Ask HN: Founders that raised funding and shutdown, did you raise again?

17•asim•8h ago•1 comments

Ask HN: Who wants to be hired? (September 2026)

106•whoishiring•2d ago•418 comments

Ask HN: Accountants Working with Ecommerce

2•vasyl_kyryliuk•4h ago•0 comments

Are others seeing Google's ReCAPCHA rejecting Firefox users?

6•Animats•2h ago•2 comments

Ask HN: Who is hiring? (September 2026)

238•whoishiring•2d ago•313 comments

Beware: Malicious Profiles on YC Co-Founder Matching

4•pain_perdu•6h ago•0 comments

Ask HN: Who is using MCP in production?

6•sukit•10h ago•5 comments

Ask HN: Are Technical Blogs Dead?

9•quaintdev•13h ago•19 comments

Resources to Get Good at Soldering?

8•tosmatos•1d ago•9 comments

Ask HN: Where do you get your AI (technology) news?

8•BtM909•1d ago•6 comments

Tell HN: Dropbox Data Breach

49•hmate9•3d ago•7 comments

ChatGPT Linux GUI version updates redownload all files, require 1.4GB download

9•juujian•1d ago•0 comments

Ask HN: What would happen if your company stopped using all AI tomorrow?

40•jc_811•3d ago•90 comments

Kimi K3 and GLM-5.3 are better than Gemini 3.8 Flash

11•theHocineSaad•1d ago•2 comments

Ask HN: How to ask questions in Ask HN

4•samikama•1d ago•15 comments

Ask HN: Would you be interested in using a VoIP system that has an operator?

2•left-struck•1d ago•6 comments

Knowledge Graph Engine for Codebases

4•Shourya_55•1d ago•10 comments

Ask HN: Anyone homeschooling their kids?

12•wbnns•1d ago•23 comments

Noviz AI Agent for ERPNext – A Reasoning Layer for ERPNext

2•tajdink•1d ago•0 comments

Claude Code now appends a link to a Claude session in every commit

13•codexon•2d ago•2 comments

You've reached the end!