frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Thank HN: You helped save 33k lives

1101•chaseadam17•1d ago•109 comments

Ask HN: Anyone else tired of working in tech?

9•boredemployee•6h ago•5 comments

Ask HN: In Cursor/agents, do plugins hide MCP tools from the main agent?

3•azebazenestor•9h ago•1 comments

Ask HN: Why are there no talks about Seedance 2.0 on Hacker News?

6•ElectroNomad•13h ago•3 comments

Why don't entrepreneurs talk about starting businesses publicly anymore?

3•silexia•3h ago•0 comments

SEL Deploy – Cryptographically chained deployment timeline

2•chokriabouzid•15h ago•1 comments

Ask HN: How do you motivate your humans to stop AI-washing their emails?

26•causal•1d ago•33 comments

Ask HN: How do you overcome imposter syndrome?

8•fdneng•1d ago•10 comments

Tell HN: Attackers using Google parental controls to prevent account recovery

15•TazeTSchnitzel•1d ago•3 comments

Ask HN: How do you debug multi-step AI workflows when the output is wrong?

3•terryjiang2020•21h ago•2 comments

Chinese New Year v.s. Lunar New Year

4•dogclaw•9h ago•3 comments

Ask HN: Claude web blocked its assets visit via csp?

6•xgstation•1d ago•2 comments

Watching an elderly relative trying to use the modern web

45•ColinWright•2d ago•19 comments

Ask HN: Any AI / Agent power users out there? Do you have any tips?

5•uejfiweun•1d ago•4 comments

Top non-ad google result for "polymarket" in Australia is a crypto scam

16•rtrgrd•3d ago•3 comments

Ask HN: Companies that advertise being a "best place to work", is it a red flag?

12•jrs235•2d ago•15 comments

Ask HN: How do companies that use Cursor handle compliance?

8•Poomba•2d ago•4 comments

Picknar – Lightweight YouTube Thumbnail Extractor (No Login, No API Key)

2•Picknar•1d ago•0 comments

Grand Time: Time-Based Models in Decentralized Trust

2•AGsist•1d ago•0 comments

Ask HN: Why is YouTube's recommendation system so bad?

15•mr-pink•2d ago•15 comments

Ask HN: Ranking sliders on a personal blog?

13•incognito124•3d ago•1 comments

Ask HN: Do global AGENTS.md with coding principles make sense?

4•endorphine•2d ago•3 comments

Ask HN: Info on the 1982 Apple 2 text game Abuse?

6•jmount•4d ago•2 comments

What web businesses will continue to make money post AI?

16•surume•3d ago•32 comments

Ask HN: Share your vibe coded project

7•firefoxd•3d ago•13 comments

Ask HN: Want to move to use a "dumb" phone. How to make the switch?

12•absoluteunit1•4d ago•13 comments

You've reached the end!