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: If the models are so good, why doesn't OpenAI just start 100 companies?

643•ex-aws-dude•1d ago•728 comments

Tell HN: I unknowingly broke the PHP RCE embargo. I am sorry

732•petecooper•2d ago•259 comments

Game trips modem/router breaker

3•simpaticoder•4h ago•2 comments

Is AI just another get rich quick scheme?

4•jqpabc123•7h ago•9 comments

Ask HN: Kimi Code hit its 5-hour limit after $1.37 of API usage

2•waximabbax•5h ago•1 comments

Flow-state induction via raw mouse input (a working biohacking protocol)

2•rejabusafint•10h ago•0 comments

Took apart Claude Code, then turned it into a free course on harness engineering

4•pauliusztin•10h ago•0 comments

Median product "lifespan" has fallen from ~4y down to ~1.5y

83•stanislavb•1d ago•32 comments

Tell HN: 2x PHP RCE CVEs with CVSS 10.0 Incoming

303•petecooper•4d ago•62 comments

Ask HN: How do people self host email and maintain deliverability?

6•smithbob•17h ago•5 comments

Tell HN: Steamcmd doesn't work on Apple Silicon

4•stdc105•1d ago•6 comments

Ask HN: What router will remain secure during the vulnpocalypse?

5•nonfunctional•21h ago•3 comments

Tell HN: Claude CLI doesn't exit anymore, not even with CTRL-C

8•cromka•1d ago•1 comments

Ask HN: Apple rejected my dev account enrollment with no reason, what do I do?

5•Mutinix•1d ago•1 comments

GitHub now uses a generic avatar instead of "Identicons" for new profiles

12•winkelmann•1d ago•3 comments

Ask HN: What do you think about lightweight default games on Linux distros?

4•abakh•1d ago•0 comments

Ask HN: Which AI Security tool do you use and why for your repositories?

5•BehanPrW•2d ago•1 comments

Ask HN: How can you retrain in a field requiring expensive equipment?

14•masterchief166•3d ago•11 comments

Ask HN: Dark mode for HN please? (2026)

32•Stitch4223•4d ago•14 comments

Ask HN: Am I the only dev who, with the advent if AI, want to work in a forest?

13•aledevv•3d ago•19 comments

Toyota Releases Video of Wheelchair-Alternative Mobility Concepts in Action

14•Mobius01•2d ago•5 comments

Ask HN: How has your company adapted interviews in the AI world?

9•parthdesai•2d ago•7 comments

Ask HN: Have the PHP vulnerabilities been exploited?

6•crisnoble•2d ago•2 comments

Biggest pet peeve of FPGA toolchains

4•vWijdaan•2d ago•0 comments

Ask HN: Are we giving away our civilization?

16•bigwheels•2d ago•6 comments

Ask HN: How does your help desk verify someone before resetting MFA?

9•ovudus•2d ago•1 comments

Open-source, cross-harness memory for AI agents

18•shakshukan•3d ago•14 comments

Ask HN: How to get the most intelligence out of your agents?

12•thechairman12•4d ago•19 comments

Run iOS on Android Phones

6•spicygum•2d ago•0 comments

You've reached the end!