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

Stardust Store – An independent Android app marketplace

5•zishutron•4h ago•0 comments

Tell HN: OpenAI keeps re-enabling the 'allow training' setting

440•jacquesm•14h ago•178 comments

Google to discontinue allowing send as an external account in Jan. 2027

16•AuthorizedCust•16h ago•5 comments

Why isn't decompilation a solved problem in the AI era?

4•ferfumarma•11h ago•3 comments

Why doesn't a Cursor for Word exist?

5•FabianArevalo•11h ago•6 comments

Is there a genuine space for the Desktop AI assistant, or its solved?

3•Qhloi•12h ago•1 comments

Ask HN: How do you manage skills files?

314•imadtaieber•4d ago•294 comments

Tell HN: Hacker News datetimes are falsely precise

3•perilunar•13h ago•2 comments

Apparently CodePen 2.0 sends data to their servers as you type

114•maxim-fin•3d ago•59 comments

Ask HN: Software Licenses that prevent LLMs from training on open source?

8•mattm•1d ago•5 comments

DeepSeek launches v4.1 flash, postpones v4 Pro discontinuation

2•Audiolite•22h ago•0 comments

Ask HN: Show your micro-SaaS

25•genekrapivin•4d ago•24 comments

Ask HN: Do you regret using Social Networking apps?

8•julienreszka•1d ago•15 comments

Ask HN: Why can I only downvote select comments?

7•socalgal2•1d ago•9 comments

Ask HN: Any Software Engineers here who enjoy their AI-native dev workflow?

15•pkos98•4d ago•13 comments

Ask HN: Next day thoughts on the millenium prize threads?

3•seizethecheese•1d ago•1 comments

Reddit saves your keystrokes in text boxes

19•thomasjeff1•1d ago•4 comments

Ask HN: 3.5 inch diskette read errors, would a period correct drive do better?

34•rietta•3d ago•42 comments

Ask HN: Is there any solution to the AI infestation?

7•yathern•1d ago•6 comments

Ask HN: How to know when Claude has changed model itself during processing?

3•mfaisalghufran•1d ago•1 comments

FinOps for LLM Spend – why your bill has changed

2•leanroute_ai•1d ago•0 comments

Ask HN: Are you leveraging Spec-Driven / Spec-Anchored development?

8•locusofself•2d ago•3 comments

Ask HN: Connecting Kubernetes dependencies to application telemetry

6•chipfixer•4d ago•3 comments

Ask HN: What non-IT/Software industries have benefitted the most from AI?

2•simonsarris•1d ago•6 comments

Tell HN: I was laid off from PlanetScale this week on Vitess side

3•vt_throwaway•7h ago•0 comments

Is Google planning for Gemini 4 rather than 3.5 pro?

5•Qhloi•1d ago•1 comments

Ask HN: UK Rescue Rocket Sheds/Houses Information

24•burnt-resistor•4d ago•6 comments

Tell HN: OpenAI brings back 5 hour limit for plus and business standard users

129•spwa4•3d ago•147 comments

You've reached the end!