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: I'm investing $100k in cool people with boring skills. Any leads?

5•surprisetalk•23m ago•1 comments

Watching an elderly relative trying to use the modern web

33•ColinWright•11h ago•15 comments

Ask HN: What happens after the AI bubble bursts?

35•101008•1d ago•36 comments

Ask HN: Why is my Claude experience so bad? What am I doing wrong?

72•moomoo11•4d ago•111 comments

Ask HN: Companies that advertise being a "best place to work", is it a red flag?

10•jrs235•17h ago•12 comments

Ask HN: How do companies that use Cursor handle compliance?

6•Poomba•10h ago•2 comments

Ask HN: Why is YouTube's recommendation system so bad?

13•mr-pink•17h ago•8 comments

Top non-ad google result for "polymarket" in Australia is a crypto scam

14•rtrgrd•1d ago•2 comments

Ask HN: Do global AGENTS.md with coding principles make sense?

4•endorphine•18h ago•2 comments

Ask HN: Are there examples of 3D printing data onto physical surfaces?

16•catapart•3d ago•33 comments

Ask HN: Are you using an agent orchestrator to write code?

39•gusmally•4d ago•60 comments

Ask HN: How's Business These Days for Fiverr Freelancers?

10•burnerToBetOut•11h ago•4 comments

Ask HN: Ranking sliders on a personal blog?

12•incognito124•1d ago•1 comments

Tell HN: Microsoft Edge self-destroys updating it in Debian based distros

6•usr1106•23h ago•1 comments

Ask HN: Did YouTube change how it handles uBlock?

22•tefloon69•4d ago•13 comments

What web businesses will continue to make money post AI?

15•surume•2d ago•29 comments

Ask HN: Info on the 1982 Apple 2 text game Abuse?

6•jmount•2d ago•2 comments

Ask HN: Share your vibe coded project

5•firefoxd•1d ago•8 comments

Ask HN: How do you audit LLM code in programming languages you don't know?

13•syx•4d ago•14 comments

Ask HN: LLMs helping you read papers and books

8•amelius•2d ago•4 comments

Ask HN: Want to move to use a "dumb" phone. How to make the switch?

11•absoluteunit1•2d ago•12 comments

Tadpole the Language for Scraping 0.2.0 – Complex Control Flow, Stealth and More

6•zachperkitny•19h ago•1 comments

Ask HN: Stripe is asking for bank statements to check financial health

9•kinj28•3d ago•8 comments

Ask HN: We're building a saving app for European savers and need GTM advice

6•AlePra00•4d ago•16 comments

Ask HN: What's the best realtime, local, TTS solution? Live call interpretation

6•Wright007•1d ago•1 comments

Ask HN: What explains the recent surge in LLM coding capabilities?

12•orange_puff•2d ago•8 comments

Ask HN: Better hardware means OpenAI, Anthropic, etc. are doomed in the future?

5•kart23•4d ago•10 comments

Ask HN: Exceptionally well-written research papers in CS/ML/AI?

5•b3rkus•3d ago•1 comments

Ask HN: Do sociotechnical pressures select for beneficial or harmful AI systems?

7•jerlendds•4d ago•3 comments

Ask HN: What happens when capability decouples from credentials?

11•falsework•4d ago•7 comments