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

Ask HN: Gmail spam filtering suddenly marking everything as spam?

167•goopthink•16h ago•110 comments

Ask HN: What's the current best local/open speech-to-speech setup?

241•dsrtslnd23•1d ago•60 comments

Ask HN: Have we confused efficiency with "100% utilization"?

23•nickevante•12h ago•12 comments

Ask HN: What usually happens after a VC asks for a demo?

12•stijo•13h ago•4 comments

Ask HN: Career transition question – assistance, MLOps guidance

4•Pierre_Esteves•10h ago•0 comments

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

454•terabytest•4d ago•450 comments

Ask HN: May an agent accept a license to produce a build?

26•athrowaway3z•18h ago•47 comments

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

136•oliverjanssen•3d ago•77 comments

Ask HN: Why does the number of datasets on data.gov vary so much?

7•akudha•12h ago•3 comments

Ask HN: Seeeking help to reverse engineer a PCB

20•Dlg001•2d ago•9 comments

Coding assistants are slow. So we multitask

3•brunaxLorax•8h ago•8 comments

Ask HN: Thinking about memory for AI coding agents

5•hoangnnguyen•20h ago•5 comments

Ask HN: What are some good unintuitive statistics problems?

6•ronbenton•16h ago•6 comments

Ask HN: Rust and AI builders interested in local-first, multi-agent systems?

3•cajazzer•12h ago•8 comments

Ask HN: How to redeem a gift card without risking lock-out?

6•magnetic•13h ago•6 comments

Ask HN: Weekend Social: Top two programming languages and what they can borrow?

3•susam•13h ago•6 comments

Ask HN: Where is society heading, is there a plan for a jobless future?

16•evo_9•1d ago•32 comments

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

32•ATechGuy•4d ago•14 comments

Ask HN: General purpose search engine that will respect special characters?

3•what-if•14h ago•3 comments

Ask HN: How do you AI code from your phone?

5•splitbrain•22h ago•1 comments

Ask HN: Do you "micro-manage" your agents?

7•xinbenlv•1d ago•8 comments

Ask HN: Revive a mostly dead Discord server

20•movedx•4d ago•28 comments

Locked out of my GCP account for 3 days, still charged, can't redirect domain

14•lifeoflee•1d ago•3 comments

Ask HN: Where do you look for semiconductor jobs?

4•johncole•1d ago•8 comments

Ask HN: Does DDG no longer honor "site:" prefix?

19•everybodyknows•2d ago•6 comments

Ask HN: LLMs for new job categories?

6•aavci•1d ago•2 comments

Ask HN: Best practice securing secrets on local machines working with agents?

9•xinbenlv•2d ago•11 comments

Tell HN: AI is all about the tools (for now)

3•keepamovin•21h ago•0 comments

ChatGPT has no real-time clock – time awareness is essential

3•Stehpwtimace•21h ago•1 comments

Ask HN: How do you authorize AI agent actions in production?

5•naolbeyene•2d ago•5 comments