frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•11mo 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•11mo 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•11mo ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: Does Claude use 'prior' in a Bayesian sense more than English?

3•slake•5h ago•4 comments

Claude Code dies with ANTHROPIC_API_KEY in cloud environment

12•sroussey•12h ago•2 comments

Tell HN: VS Code v1.117.0 automatically adds GitHub Copilot as your co author

70•adithyassekhar•1d ago•31 comments

Ask HN: Rant, Am I bad or is this a company with a poor tech culture?

3•apatheticonion•9h ago•12 comments

Ask HN: Is AI resulting in net revenue gain for non-tech companies?

9•jusonchan81•13h ago•7 comments

Tell HN: An app is silently installing itself on my iPhone every day

588•_-x-_•5d ago•188 comments

Claude Pro expired and my $40 in prepaid Extra Usage credits vanished

9•Aldipower•19h ago•3 comments

What do you want to see in a next-generation GitHub in the age of AI?

3•skeedle•14h ago•6 comments

Ask HN: Is Anybody Using Codex?

4•cl3misch•15h ago•8 comments

Ask HN: Anyone feel like they're just opting out of tech these days?

22•moomoo11•1d ago•13 comments

Claude.ai down again?

34•zh_code•1d ago•24 comments

Tell HN: An update from the new Tindie team

80•altairprime•1d ago•48 comments

Ask HN: Is it still worth it to try to get a job in IT

8•morpheos137•1d ago•13 comments

RNet: Users pay for their own AI usage instead of apps covering token costs

3•rNetAi•1d ago•4 comments

Ask HN: Recommended Gemini CLI extensions/skills for token consumption

2•elC0mpa•1d ago•1 comments

What I changed in how I use Claude Code after Anthropic's postmortem

6•cinooo•1d ago•3 comments

Tell HN: Claude 4.7 is ignoring stop hooks

109•LatencyKills•6d ago•88 comments

Increase in Claude Code speed bumps?

3•jesse_dot_id•1d ago•0 comments

Ask HN: Hosted Fossil for small teams – interesting, or wrong call?

7•ragelink•1d ago•3 comments

Ask HN: Is it just me or is Claude Code getting worse?

31•e-nouri•2d ago•23 comments

Tell HN: One Medical Is a Nightmare

31•rincebrain•3d ago•6 comments

Ask HN: When might we not have to do laundry or fold clothes or cook

23•samarthv•3d ago•26 comments

Ask HN: If coding gets faster, where should architecture happen?

7•karlosh•1d ago•6 comments

Ask HN: Anyone else suddenly have Brawls Stars on their iPhone?

4•realberkeaslan•1d ago•3 comments

You've reached the end!