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: What software and hardware are you sing for self hosted LLM rigs?

23•NegativeLatency•5h ago•7 comments

Ask HN: Android takes 14GB on my phone. Why does it not include a manual?

15•RetroTechie•16h ago•4 comments

Ask HN: Founders who shut down a company, what did you do with the code?

6•sethross•6h ago•3 comments

Ask HN: If 2048-bit RSA were cracked, what would be the consequences?

7•partsch•11h ago•4 comments

Ask HN: What would you do at your company if RSA rumor comes out true?

4•gouterz•4h ago•1 comments

DNS Made Easy: Reset Your Password and Generate New API Keys

4•jinnko•13h ago•2 comments

Ask HN: Why bother with new programming languages?

14•avilay•1d ago•18 comments

Tell HN: Don't use AI to write your comments or they'll get automatically killed

41•nathan_f77•1d ago•62 comments

Why does Claude have a 4 hour limit?

6•tombakerbuilds•21h ago•3 comments

Ask HN: Where is all the amazing AI-generated software?

31•8bitbeep•4d ago•67 comments

Ask HN: Is RSA in Jeopardy?

24•lyfeninja•4d ago•17 comments

Ask HN: Who is still worried about copyright issues with AI generated code?

5•sonjaqql•1d ago•7 comments

Ask HN: Why haven't LLMs made any CS breakthroughs?

8•elcritch•1d ago•5 comments

DietPi released a new version v10.9

21•stephanstsdietp•3d ago•3 comments

Ask HN: Any courses/products by indie makers worth getting today?

83•akudha•3d ago•41 comments

Ask HN: Is anyone using Gemini Live (3.8) in scaled production

5•aenis•1d ago•0 comments

If you're doing Monte Carlo try Knuth LGC

8•logicallee•2d ago•1 comments

Ask HN: Is ChatGPT output format for chats purposely nerfed?

3•MrCoffee7•1d ago•12 comments

Ask HN: Coworker rejects PR (a month in) because it does not meet his standards

23•LandOfMightDev•6d ago•46 comments

Ask HN: Am I the only one whose AI hype is cooling down a lot?

39•redleathercouch•5d ago•28 comments

Ask HN: Users asking to remove their commits under GDPR

9•punkpeye•2d ago•6 comments

Tell HN: 0 Purchases This Thanks Giving

4•prakashn27•1d ago•5 comments

Which city do you live in?

5•Eyyup•1d ago•7 comments

Ask HN: How do you find meaning of life at 41?

74•BTA_DoIt•3d ago•127 comments

Ask HN: Will GPTs Get Stupider?

4•dfps•2d ago•3 comments

Ask HN: Has AI started impacting hiring in your org?

7•ChaitanyaSai•2d ago•1 comments

Ask HN: How do you handle corporate life?

7•busssard•4d ago•9 comments

Ask HN: Would you care for more than 2FA for any of your accounts?

5•sandeepkd•3d ago•10 comments

Ask HN: How well do you understand what's going on inside RL?

10•natsu529•3d ago•5 comments

Ask HN: YC startup not paying for a take-home. What to do?

12•unpaidtakehome•2d ago•18 comments