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: Fable hacked my piano, can I release the results?

77•jmpman•1d ago•42 comments

Ask HN: How do you manage skills files?

60•imadtaieber•10h ago•50 comments

Ask HN: Would you read a statistics textbook?

42•usernametaken29•1d ago•20 comments

Tell HN: Anthropic should make Claude the Author and me the Co-Author

4•xeonax•2h ago•3 comments

Ask HN: Looking for an old submission about sneering culture

3•annex-winged-cr•2h ago•0 comments

Ask HN: Show your micro-SaaS

9•genekrapivin•9h ago•3 comments

Ask HN: What are other "uncrackable benchmarks"?

3•Nail2680•3h ago•1 comments

Ask HN: UK Rescue Rocket Sheds/Houses Information

22•burnt-resistor•11h ago•6 comments

Ask HN: Perplexity Pro vs. Claude – what are you paying for?

2•daytonflyers•4h ago•1 comments

Ask HN: Connecting Kubernetes dependencies to application telemetry

3•chipfixer•13h ago•0 comments

Ask HN: (Why) Was the LLM breakthrough useful for images, audio, etc.?

3•rogerrogerr•13h ago•2 comments

Ask HN: Any Software Engineers here who enjoy their AI-native dev workflow?

5•pkos98•16h ago•5 comments

Ask HN: Who is using MCP in production?

190•sukit•3d ago•196 comments

Ask HN: Resources to get good at soldering?

270•tosmatos•4d ago•164 comments

Ask HN: What is your biggest struggle while learning?

2•Cursed666•6h ago•1 comments

Ask HN: How safe are our password managers in face of LLM cyber attacks?

3•muddi900•12h ago•0 comments

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

401•halcdev•3d ago•703 comments

Ask HN: Why don't we bring back old school OkCupid?

32•firefax•1d ago•56 comments

Ask HN: What are you working on?

5•meerita•12h ago•8 comments

Ask HN: Model sycophancy benchmarks?

3•gradus_ad•13h ago•1 comments

Tell HN: I want to see the same moon as you

15•UnderABlueMoon•2d ago•13 comments

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

19•fastest963•3d ago•1 comments

Ask HN: Are we normalizing surveillance in the name of safety?

3•dennysora-main•17h ago•2 comments

Astra still fails at creating acceptable Rotational Ambigram

3•das_vicky•18h ago•3 comments

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

71•Animats•3d ago•23 comments

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

31•throwaway_30yo•4d ago•26 comments

Ask HN: Do you route only certain websites through a VPN?

2•dennysora-main•1d ago•4 comments

Ask HN: What's the best place to learn about skills and AI for coding in general

4•rrmdp•10h ago•4 comments

APAC Alpha – Zero-lag Intel terminal for Asian markets

2•apacalpha•1d ago•0 comments

Ask HN: Any Alternatives to Archive.ph & co?

7•hebelehubele•1d ago•4 comments