frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Tell HN: 2 years building a kids audio app as a solo dev – lessons learned

126•oliverjanssen•23h ago•63 comments

Tell HN: Bending Spoons laid off almost everybody at Vimeo yesterday

393•Daemon404•20h ago•452 comments

Ask HN: Why are so many rolling out their own AI/LLM agent sandboxing solution?

20•ATechGuy•1d ago•9 comments

Ask HN: Do you have any evidence that agentic coding works?

423•terabytest•2d ago•426 comments

Ask HN: Does "Zapier for payment automation" exist?

8•PL_Venard•22h ago•11 comments

Ask HN: Does Apple not have *any* QA for their older macOS releases?

3•richrichardsson•4h ago•0 comments

Ask HN: How are you automating your coding work?

70•manthangupta109•18h ago•78 comments

Tell HN: Claude session limits getting small

19•pragmaticalien8•19h ago•13 comments

Users don't care about your app's complexity

5•Fh_•4h ago•5 comments

Ask HN: How do you run parallel agent sessions?

6•Olshansky•2d ago•2 comments

Ask HN: What have you built/shipped with Claude Code?

8•blhack•1d ago•4 comments

Ask HN: COBOL devs, how are AI coding affecting your work?

167•zkid18•3d ago•183 comments

Ask HN: Revive a mostly dead Discord server

19•movedx•1d ago•28 comments

Ask HN: How did Gemini go from being awful to incredible back to awful?

4•wewewedxfgdf•8h ago•5 comments

How do you keep AI-generated applications consistent as they evolve over time?

9•RobertSerber•19h ago•0 comments

Ask HN: What are good resources to get familiar with AI code editors?

8•northfield27•22h ago•6 comments

Tell HN: Avoid Cerebras if you are a founder

29•remusomega•20h ago•15 comments

Ask HN: Vibe-coded prototypes: what happens when they go into production?

5•stosssik•12h ago•1 comments

Experimenting with a Compiled Language

3•JhonPork•7h ago•5 comments

Ask HN: Do you protect your client-side JavaScript? Why or why not?

5•nikitaeverywher•1d ago•1 comments

Do people at Google use Gmail?

3•mr-pink•7h ago•1 comments

Tell HN: Claude helped me maintain my old open source project

12•nergal•16h ago•7 comments

Ask HN: How locked down are your work machines?

15•donatj•17h ago•19 comments

Tell HN: Amazon has deactivated my seller account

74•hacky_engineer•18h ago•72 comments

Ask HN: Which common map projections make Greenland look smaller?

18•jimnotgym•1d ago•17 comments

Ask HN: Are you going to meetups/conferences?

9•carimura•21h ago•7 comments

Ask HN: Why does SOC 2 feel so hard for early-stage startups?

7•asdxrfx•22h ago•3 comments

Ask HN: How do you audit autonomous AI agent decisions?

3•credentum•11h ago•2 comments

Tell HN: ChatGPT needs a persistent workspace layer

8•LostBeacon•15h ago•1 comments

Ask HN: What's your biggest challenge with context engineering for AI agents?

4•karpathunter•21h ago•0 comments