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 are you working on? (June 2026)

185•david927•13h ago•702 comments

I indexed 669 GB of my GoPro videos using my M1 Max computer and local ML models

324•iliashad•14h ago•80 comments

Ask HN: What does your local LLM setup looks like?

2•the-mitr•1h ago•0 comments

Ask HN: How are thinking efforts implemented?

96•simianwords•1w ago•30 comments

Ask HN: Year of Linux Desktop is fun with LLMs

3•mirekrusin•7h ago•2 comments

I'm Eric Ries, author of "The Lean Startup" and new book "Incorruptible" – AMA

797•eries•4d ago•576 comments

Ask HN: Favorite text heavy blogs that are a joy to read?

113•joshmarinacci•5d ago•28 comments

Ask HN: Why hasn't there been a real competitor to Ticketmaster yet?

262•mdni007•6d ago•239 comments

AWS Bedrock to require sharing data with Anthropic for Mythos and future models

423•TomAnthony•4d ago•254 comments

Ask HN: Want to build something open source on nights and weekends together?

39•vira28•3d ago•16 comments

Is there a name for the type of comments agents add where they leak the prompt?

17•xdennis•1d ago•8 comments

Notes on DeepSeek

208•vinhnx•4d ago•140 comments

Ask HN: Would it be useful to have a slop button in addition to flag?

36•BugsJustFindMe•4d ago•23 comments

Ask HN: Are most corporate SWE jobs performative?

247•hnthrow10282910•4d ago•282 comments

Ask HN: What are tools you have made for yourself since the advent of AI?

441•aryamaan•6d ago•775 comments

FTX's former Anthropic stake would be worth about $75B at today's valuation

40•adam_rida•13h ago•22 comments

Ask HN: How do you get into a flow state when using AI to code?

93•kilroy123•3d ago•120 comments

I procrastinate by building tools to stop me from procrastinating: A sad story

20•thisislorenzov•3d ago•10 comments

Ask HN: Are you still using a Vision Pro?

171•y1n0•5d ago•214 comments

Story of How Im Running an Unlimited $6/Month AI Provider on 4x RTX 3090s

7•yolo-auto•1d ago•3 comments

Ask HN: Is anyone shorting the overspend in AI yet?

17•ggm•3d ago•15 comments

Ask HN: Is there a metric for AI code quality?

6•fractalf•3d ago•6 comments

What if we legally required politicians to work regular jobs 2 months a year?

11•ekoeko•1d ago•13 comments

Ask HN: What internal tool did you build that became a product?

7•nehpets•4d ago•6 comments

Ask HN: Did we witness the "Trinity moment" for AI?

18•vld_chk•1d ago•28 comments

Tell HN: iOS devs, get back lots of disk space: xcrun simctl delete unavailable

5•amichail•1d ago•0 comments

We should start measuring knowledge debt like the way we do for tech debt

7•ciwolex•15h ago•1 comments

Ask HN: I Need Help for a Product

9•memoryleakgame•2d ago•5 comments

Ask HN: Which cheap Chinese LLM are you using?

15•linzhangrun•1d ago•6 comments

Ask HN: Agents get dumber before release of new model version?

9•sporkland•3d ago•7 comments