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

934•chaseadam17•20h ago•92 comments

Ask HN: Are there examples of 3D printing data onto physical surfaces?

23•catapart•4d ago•39 comments

Ask HN: Is AI the final nail in the coffin for solo developers?

12•sarbajitsaha•4h ago•18 comments

Tell HN: We analyzed our dev time.80% is still infrastructure'setup',notfeatures

5•thesssaism•1h ago•1 comments

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

3•terryjiang2020•3h ago•1 comments

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

3•uejfiweun•6h ago•3 comments

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

24•causal•20h ago•31 comments

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

6•xgstation•14h ago•2 comments

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

12•TazeTSchnitzel•11h ago•0 comments

Ask HN: How do you overcome imposter syndrome?

6•fdneng•13h ago•6 comments

Ask HN: Why is my Claude experience so bad? What am I doing wrong?

77•moomoo11•5d ago•117 comments

Watching an elderly relative trying to use the modern web

43•ColinWright•1d ago•19 comments

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

2•Picknar•20h ago•0 comments

Grand Time: Time-Based Models in Decentralized Trust

2•AGsist•20h ago•0 comments

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

12•jrs235•1d ago•14 comments

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

16•rtrgrd•2d ago•2 comments

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

7•Poomba•1d ago•3 comments

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

14•mr-pink•1d ago•14 comments

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

4•endorphine•1d ago•3 comments

Ask HN: Ranking sliders on a personal blog?

13•incognito124•2d ago•1 comments

What web businesses will continue to make money post AI?

15•surume•3d ago•31 comments

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

6•jmount•3d ago•2 comments

Ask HN: Stripe is asking for bank statements to check financial health

10•kinj28•4d ago•9 comments

Tell HN: Microsoft Edge self-destroys updating it in Debian based distros

7•usr1106•1d ago•1 comments

Ask HN: Share your vibe coded project

5•firefoxd•2d ago•11 comments

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

12•absoluteunit1•3d ago•13 comments

Ask HN: LLMs helping you read papers and books

8•amelius•3d ago•4 comments

Ask HN: What happens after the AI bubble bursts?

39•101008•2d ago•42 comments

Ask HN: Exceptionally well-written research papers in CS/ML/AI?

6•b3rkus•4d ago•1 comments

Ask HN: How's Business These Days for Fiverr Freelancers?

13•burnerToBetOut•1d ago•5 comments