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

Tell HN: PayPal blocks GrapheneOS

472•leumon•19h ago•304 comments

Amazon now hides all customer reviews on products

72•tonymet•14h ago•35 comments

Ask HN: Which class of business model is most resilient to build in the AI era?

3•chatmasta•6h ago•4 comments

Ask HN: Hugging Face is out. Who is hosting open models?

14•FireUpTheTorren•15h ago•13 comments

Ask HN: How to Vibe Design as Engineer?

4•metrofun•14h ago•1 comments

Ask HN: Why is AI civil tech and not military first?

7•esher•15h ago•13 comments

Ask HN: How many of you juggle multiple agent sessions at the same time?

5•top_rooster•10h ago•2 comments

Ask HN: Does anyone have a VRAM tester? Something like MemTest86+ but for GPUs?

9•vkaku•9h ago•2 comments

Ask HN: Dear LinkedIn, do you want to do business, yes or no?

7•stefanos82•16h ago•8 comments

Ask HN: AI agent acts. Your logs say so. But you wrote the logs

4•Yahyaaa•12h ago•3 comments

Solving all open source tech debt with Codex

3•surajkrajan•13h ago•4 comments

Ask HN: Should I leave web development to study medicine in my mid-30s?

5•lovepuzzles•14h ago•9 comments

Ask HN: How do you guys stop coding agents from acting out of line?

3•vivekyyy•14h ago•2 comments

Ask HN: Ideas for dealing with overly-do-gooder agents

2•zof3•14h ago•0 comments

Tell HN: Gmail can mark legit mail from google.com as spam

5•salviati•15h ago•1 comments

Ask HN: How do you feel about the new 5H usage limit in Codex?

3•embedding-shape•15h ago•1 comments

Ask HN: If I am 16 what should I learn? Which books should read?

4•AmirMakirr•16h ago•11 comments

Another Webpage Screenshot and OG Image Generation API

2•foodpad•16h ago•0 comments

Ask HN: Why do tools like customer.io abandon self-serve after their Series A?

14•alessandroetc•1d ago•6 comments

Ask HN: Do you still do pair programming in this agentic age?

6•Andugal•21h ago•4 comments

Ask HN: Why are Claude models so verbose?

9•JacobWolf•2d ago•10 comments

Ask HN: Where else do you spend time on the internet other than HN?

11•Gecko4072•1d ago•12 comments

Ask HN: Those making $500/month on side projects in 2026 – Show and tell

75•kaladan•3d ago•96 comments

Ask HN: Good large format (>20 inches) touchscreen E-Paper display options?

30•foota•3d ago•11 comments

Flock contract cancellations grow among cities, other jurisdictions

3•achristmascarl•12h ago•0 comments

Taalas API Anyone?

2•revanthmatha•1d ago•2 comments

Encoding Myself into the System

4•nharziro•1d ago•4 comments

You've reached the end!