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

Gitbook Breached

142•punchmesan•8h ago•35 comments

OpenAI seems to be silently re-enabling model training on Codex chats

432•user052919•10h ago•134 comments

Ask HN: What is the best non mainstream programming language or stack in 2026?

2•kbrannigan•18m ago•0 comments

Tell HN: You now need a government id in order to create an Anthropic account

14•I_am_tiberius•6h ago•4 comments

Ask HN: Who is hiring? (November 2026)

241•whoishiring•1d ago•223 comments

Ask HN: What is Google Flights' business model and has it changed recently?

5•lastofthemojito•3h ago•1 comments

Ask HN: Which TV do you recommend for privacy?

721•LecroJS•2d ago•865 comments

Google reCAPTCHA on archive.is asking to scan a QR with a mobile device

3•linuxhdr•3h ago•1 comments

Ask HN: Does anyone have a contact with Cleveland-area Ham club?

163•stockresearcher•1d ago•23 comments

WorkOS reports security breach

77•werrett•1d ago•11 comments

Ask HN: Design My YouTube Feed

4•mrkn1•9h ago•7 comments

Ask HN: Will cheap high-quality AI end this December?

5•amichail•8h ago•2 comments

Getting hit with "Prove you are a human" at every other website

76•shmde•6h ago•41 comments

How did we end up with Frontier Lab oligopoly rather than a monopoly?

3•bdhe•7h ago•1 comments

Can the Cloudflare employee that just blocked Route53 Health Checks undo it

6•ferngodfather•7h ago•3 comments

Tell HN: Scribd Breached

359•x______________•3d ago•123 comments

Ask HN: Does anyone enjoy work anymore?

25•jackmalpo•1d ago•23 comments

Ask HN: What to do about incorrectly suspended GitHub account, no notice?

6•sshah03•1d ago•3 comments

Ask HN: Are Tenstorrent cards better than Nvidia?

2•thesnarkitecht•1d ago•1 comments

Ask HN: What hardware are you using to run local LLMs?

50•leafletsigh•1d ago•44 comments

Heretic 2.0 Released: Training-free language model modification

22•razster•2d ago•3 comments

Tell HN: X is opening any tweet link in a webview whether you press it or not

40•stillatit•4d ago•3 comments

Ask HN: What's it like working at Google nowadays? Core teams like Search, Ads?

47•karakoram•4d ago•28 comments

Ask HN: Opus 5.5 suddenly dumb as rocks?

36•jahala•5d ago•32 comments

Swedish grocery chain refrigerators and freezers hacked overnight

9•u1hcw9nx•1d ago•4 comments

In LLM era, can software startup survive?

37•sjia•2d ago•45 comments

Ask HN: Is applying to Y Combinator worth it if you aren't an insider?

22•all2•4d ago•11 comments

Pepperwind, a fictional company dataset with 223 tables and 79M rows

16•rasinmuhammed•1d ago•0 comments

Which hobby do you think is most diverting and pleasurable?

23•ikelos•3d ago•39 comments

Ask HN: Do you have side-projects that generate >$500 revenue/month?

41•learner_yearner•5d ago•30 comments