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

GoatCode – open-source terminal AI agent with provider failover

2•Arhan-w•37m ago•0 comments

Ask HN: Did Google kill its enterprise workhorse model?

17•waldrews•6h ago•7 comments

Ask HN: What's a good "semi-dumb" phone/watch for kids?

5•funkaster•4h ago•2 comments

Ask HN: Can we please limit the AI news flood?

790•cromka•20h ago•367 comments

Ask HN: How are much smarter AI models made?

7•superasn•15h ago•2 comments

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

476•jacquesm•1d ago•184 comments

Dreamcast Web Development Links

4•hefner1456•10h ago•0 comments

Ask HN: Where are the innovations happening today?

4•cauliflower99•14h ago•3 comments

OpenAI changed Navier-Stokes press release and Lean4 code on GH

5•rawland•16h ago•1 comments

Ask HN: Is GPT-6 Astra worth the 2.5x cost increase over GPT-5.6 Sol?

6•minimaxir•16h ago•3 comments

Ask HN: How do you manage skills files?

319•imadtaieber•5d ago•297 comments

Ask HN: AI and Math

2•ekm2•17h ago•4 comments

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

20•AuthorizedCust•1d ago•7 comments

Ask HN: What is the average number of hops in your social network to 9-11 death?

2•MrCoffee7•20h ago•5 comments

Apparently CodePen 2.0 sends data to their servers as you type

114•maxim-fin•4d ago•60 comments

Stardust Store – An independent Android app marketplace

7•zishutron•1d ago•2 comments

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

6•ferfumarma•1d ago•5 comments

Ask HN: Software people, where are you taking your careers next?

11•cedws•13h ago•8 comments

Ask HN: Show your micro-SaaS

29•genekrapivin•5d ago•38 comments

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

9•mattm•2d ago•5 comments

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

17•pkos98•5d ago•14 comments

Ask HN: Has AI killed the front end engineer role?

9•johndavid9991•17h ago•4 comments

You've reached the end!