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

Googling on Brazil about "Gemini said" shows unrevised content from Gemini

3•yrds96•51m ago•0 comments

Ask HN: Are hackathons still worth doing?

3•kwar13•2h ago•3 comments

Thank HN: You helped save 33k lives

1122•chaseadam17•2d ago•112 comments

Ask HN: Can a license make large corporations give back?

2•arboles•3h ago•2 comments

Ask HN: (Your) Request for Startups?

6•dontoni•4h ago•3 comments

Ask HN: Anyone else tired of working in tech?

22•boredemployee•19h ago•20 comments

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

4•azebazenestor•22h ago•3 comments

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

8•ElectroNomad•1d ago•5 comments

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

27•causal•2d ago•35 comments

Ask HN: How do you overcome imposter syndrome?

8•fdneng•1d ago•12 comments

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

7•silexia•16h ago•4 comments

SEL Deploy – Cryptographically chained deployment timeline

2•chokriabouzid•1d ago•1 comments

Watching an elderly relative trying to use the modern web

47•ColinWright•2d ago•19 comments

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

18•TazeTSchnitzel•1d ago•4 comments

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

6•xgstation•1d ago•2 comments

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

17•rtrgrd•3d ago•3 comments

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

3•terryjiang2020•1d ago•6 comments

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

3•Picknar•2d ago•1 comments

Grand Time: Time-Based Models in Decentralized Trust

3•AGsist•2d ago•0 comments

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

7•uejfiweun•1d ago•7 comments

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

12•jrs235•3d ago•15 comments

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

9•Poomba•2d ago•7 comments

Ask HN: Ranking sliders on a personal blog?

14•incognito124•4d ago•1 comments

Ask HN: How do you employ LLMs for UI development?

44•jensmtg•7h ago•55 comments

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

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

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

4•endorphine•3d ago•3 comments

You've reached the end!