frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Ask HN: How did you land your first projects as a solo engineer/consultant?

241•modelcroissant•14h ago•109 comments

Opus 4.7 vs. 4.6 after 3 days of real coding side by side from my actual session

5•agentseal•7h ago•5 comments

Ask HN: May be a basic question, but how can I use AI well?

7•jdw64•15h ago•1 comments

Ask HN: Who is using OpenClaw?

337•misterchocolat•4d ago•386 comments

Ask HN: Building a solo business is impossible?

59•fnoef•2d ago•83 comments

Tell HN: Fiverr left customer files public and searchable

827•morpheuskafka•5d ago•231 comments

I built a real-time AR plane spotter, here's the math that makes it work

4•ananddhruv29•15h ago•2 comments

Why don't we just ask AI to write assembler?

10•canterburry•1d ago•15 comments

Tell HN: 48 absurd web projects – one every month

78•absurdwebsite•3d ago•26 comments

Ask HN: Anyone know of that "levels of AI programming" blog post?

5•tuvix•1d ago•5 comments

Ask HN: Does magic link authentication use HTML canvassing?

4•trinsic2•1d ago•5 comments

Ask HN: Getting depressed day by day, how to cope?

23•throwaw12•2d ago•22 comments

Ask HN: How did you get your first users with zero audience?

16•arikusi•3d ago•15 comments

Ask HN: ChatAi web-based session notation?

2•xtiansimon•1d ago•0 comments

Ask HN: How do you find motivation to do stuff?

25•RockstarSprain•4d ago•25 comments

Ask HN: How do you maintain flow when vibe coding?

31•fny•3d ago•30 comments

Aliens.gov Resolves – To a WordPress "Site Not Found" Error

13•ascarola•3d ago•6 comments

Do I Stop Learning Coding? DSA?

6•s_u_d_o•2d ago•15 comments

Tell HN: Security Incident at Porter (YC S20)

7•leetrout•2d ago•0 comments

Ask HN: How are you using LLMs in production?

14•Anon84•3d ago•12 comments

Durable Object alarm loop: $34k in 8 days, zero users, no platform warning

31•thewillmoss•4d ago•3 comments

Advice for tracking down a listening device?

9•comrade1234•3d ago•5 comments

Ask HN: How do you search the web programmatically these days?

6•coreyp_1•2d ago•7 comments

Ask HN: Who is your favourite Entrepreneur/Visionary?

13•wasimsk•3d ago•32 comments

Tell HN: Anthropic no longer allows you to fix to specific model version

27•baobabKoodaa•4d ago•2 comments

Ask HN: Teaching life skills through games, am I crazy?

2•shivaniShimpi_•2d ago•3 comments

Ask HN: Is Claude Getting Worse?

9•sahli•4d ago•19 comments

Surely no brand is more hated by web users that Cloudflare

31•chrisjj•22h ago•33 comments

Ask HN: How are you actively keeping your thinking sharp while using LLMs daily?

16•smonk108•3d ago•10 comments

GitHub gave webhook secrets away in webhook call

12•time4tea•5d ago•1 comments