frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•9mo 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•9mo 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•9mo ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: When do you expect ChatGPT moment in robotics?

5•p1esk•4h ago•5 comments

Tell HN: MitID, Denmark's digital ID, was down

140•mousepad12•2d ago•180 comments

Ask HN: How to approach new people in 2026?

9•tavro•9h ago•9 comments

Tell HN: YC companies scrape GitHub activity, send spam emails to users

677•miki123211•3d ago•257 comments

Ask HN: How will most Anthropic customers respond to the threats by the govt?

6•Poomba•7h ago•3 comments

I used 2D Base64 to bypass Gemini and expose Google's moderation flaws

7•MissMajordazure•19h ago•1 comments

Aura-State: Formally Verified LLM State Machine Compiler

3•rohanmunshi08•12h ago•2 comments

Tell HN: My daily game won a Players Choice Award

19•paulhebert•1d ago•2 comments

Ask HN: How do we solve the bot flooding problem without destroying anonymity?

11•txrx0000•1d ago•16 comments

I built AI agents that do the grunt work solo founders hate

5•Seleci•1d ago•6 comments

Garbage In, Garbage Out: The Degradation of Human Requirements in the LLM Era

7•waylake•1d ago•5 comments

Ask HN: Builder.ai ($1B Microsoft-backed AI company) who's lookin at the assets?

6•gamelock•1d ago•4 comments

Ask HN: Article to share with a technical manager about modern AI coding tools?

7•killmill•1d ago•5 comments

I don't need AI to build me a new app. I need it to make Jira bearable

22•niel_hu•3d ago•21 comments

Super Editor – Atomic file editor with automatic backups (Python and Go)

6•larryste•2d ago•1 comments

Ask HN: Who Is Using XMPP?

23•nunobrito•4d ago•11 comments

Seeking Advice on Improving OCR for Watermarked PDFs in My RAG Pipeline

3•hundredtrillion•1d ago•4 comments

36yo: Career at home vs. Simple life abroad?

12•Slaboli•2d ago•34 comments

Ask HN: How do you handle duplicate side effects when jobs, workflows retry?

11•shineDaPoker•3d ago•11 comments

Ask HN: Why are some websites locking or using the audio device on Windows?

4•ezconnect•1d ago•1 comments

Ask HN: My competitor wants to buy us out, recommend a lawyer?

8•VladVladikoff•3d ago•8 comments

Ask HN: What's it like working in big tech recently with all the AI tools?

22•ex-aws-dude•4d ago•14 comments

LazyGravity – I made my phone control Antigravity so I never leave bed

9•masaTokyo•4d ago•5 comments

If you drive clock wise along the beach on an island

7•Cookingboy•2d ago•5 comments

Ask HN: Starting a New Role with Ada

10•NoNameHaveI•4d ago•5 comments

Ask HN: What will happen with Anthropics ultimatum?

7•maniacwhat•4d ago•4 comments

Ask HN: What Happened to HTTPS://Www.keyvalues.com/?

4•alexgotoi•1d ago•1 comments

You've reached the end!