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? (September 2026)

366•david927•2d ago•1147 comments

We struggled with DevOps, so built a open source agentic platform just for this

2•abmuhammadhamza•7h ago•0 comments

A mnemonic-free wallet where the private key never leaves the phone's TEE

3•niumeta_TZ•10h ago•0 comments

Ask HN: Slow OpenAI Inference on AWS Bedrock

2•timedude•13h ago•1 comments

Ask HN: Lesser known features of macOS/iPadOS/iOS/etc. 27

13•lucasoshiro•19h ago•7 comments

Started Learning Pentesting

3•muzan•22h ago•1 comments

Day 13. Three production applications on AWS down

4•alt_tab•17h ago•3 comments

Which crossword generator do you use?

3•irusik•18h ago•0 comments

SuperColoring – a simple crossword generator for learning and fun

3•irusik•18h ago•0 comments

Ask HN: Where is all of the AI coded software?

6•wNjdbfm•18h ago•8 comments

Tell HN: iOS 27 does not allow Apple Intelligence to be disabled

72•nunez•1d ago•25 comments

Ask HN: Are 80s high school hobby programmers overwhelmingly pro-AI?

16•amichail•1d ago•36 comments

Working on Plug and Play personal AI Memory that works across AI agents

3•heysrb•20h ago•0 comments

Ask HN: How are you managing aging relatives passwords?

9•rylando•1d ago•16 comments

Ask HN: Why 17?

6•tonyvince7•20h ago•1 comments

Ask HN: What would make you trust an AI's assessment of your understanding?

4•Aditya_0315•1d ago•3 comments

Ask HN: Why is Pulley (cap table) shutting down?

4•AnhTho_FR•16h ago•1 comments

Ask HN: What default model do you use and why?

61•stikit•3d ago•104 comments

Ask HN: Would a startup for young creatives who reject AI be feasible?

11•mondobe•2d ago•24 comments

What are you building,Lets explore each others

4•Vineetyadav2•19h ago•3 comments

Ask HN: Should we start airgapping our personal devices?

9•emerongi•3d ago•7 comments

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

486•jacquesm•5d ago•188 comments

Ask HN: Did Google kill its enterprise workhorse model?

27•waldrews•4d ago•18 comments

You've reached the end!