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: Who is using MCP in production?

84•sukit•23h ago•107 comments

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

375•halcdev•20h ago•536 comments

Ask HN: Are others seeing Google's reCAPTCHA rejecting Firefox users?

58•Animats•15h ago•15 comments

Tell HN: Both recent GCP outages caused by fiber optic maintenance

12•fastest963•13h ago•1 comments

Ask HN: 30, burnt out, with 6-10 months of runway. What would you do?

24•throwaway_30yo•1d ago•19 comments

Ask HN: Who is using FPGA for ML inference?

8•softwarewright•12h ago•10 comments

Ask HN: Who is hiring? (September 2026)

242•whoishiring•2d ago•326 comments

Ask HN: What is the ideal email domain setup?

4•bix6•11h ago•2 comments

Ask HN: Who wants to be hired? (September 2026)

108•whoishiring•2d ago•435 comments

Ask HN: Why is HN native dark mode not implemented yet?

3•SriniK•5h ago•1 comments

Ask HN: Founders that raised funding and shutdown, did you raise again?

17•asim•21h ago•1 comments

Tell HN: NVIDIA's Acquisition of HuggingFace was for $HuggingFace

31•MontagFTB•13h ago•4 comments

Ask HN: Laptop or Desktop?

6•Gecko4072•18h ago•5 comments

Ask HN: Why do many websites use a sign-in code instead of a password?

7•bariumbitmap•7h ago•3 comments

Ask HN: How do you guys keep up with the most cost-effective AI models?

4•solomonmwalker•20h ago•4 comments

Ask HN: How do you market Open Source Software?

5•Daniel-Pan•8h ago•7 comments

Ask HN: How do we build a team? (bootstrapped B2B startup)

3•theonlinx•14h ago•0 comments

Ask HN: Are technical blogs dead?

11•quaintdev•1d ago•19 comments

Tell HN: The Thoughts and Woes of a Full-Time Founder Part 1

3•lcampbellsoup•11h ago•0 comments

Ask HN: Accountants working with ecommerce

3•vasyl_kyryliuk•17h ago•0 comments

Ask HN: iPhone Camera on indicator

2•zahirbmirza•13h ago•5 comments

Ask HN: Is there a test for measuring cognitive affects from LLM usage?

5•niwrad•13h ago•0 comments

Ask HN: Could AI eventually build god?

5•olirex99•13h ago•10 comments

One-person startup: a Cornell postdoc wants to put AI in everyone's hands

2•modelslive•14h ago•0 comments

Ask HN: How do you gate an autonomous coding agent's shell access?

2•alanfuNZ•14h ago•1 comments

Ask HN: Why does free time become another thing you have to use correctly?

2•nullifypreset•16h ago•0 comments

Ask HN: Are guardrails being baked into models, or enforced outside them?

2•arkj•16h ago•0 comments

Resources to Get Good at Soldering?

10•tosmatos•2d ago•10 comments

Beware: Malicious Profiles on YC Co-Founder Matching

5•pain_perdu•19h ago•0 comments

Ask HN: Can we classify AI as: subhuman, quasihuman, human, superhumam?

3•aunekiaru•19h ago•5 comments