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

Is aerc better than neomutt now?

3•hardikxk•2h ago•0 comments

Ask HN: Homeless, Former Software Developer, What Now?

9•current_robot•3h ago•8 comments

Ask HN: How do you handle QA at a startup with no QA team? Genuinely curious

3•ovi_firstqa•3h ago•4 comments

Ask HN: Where is the programming profession going?

157•syntaxbush•4d ago•168 comments

The open source DOCX editor submitted to HN a few weeks ago has been deleted

104•gcanyon•2d ago•44 comments

Ask HN: Is "no source code was copied" still a sufficient copyright defense?

66•oscgam1•3d ago•79 comments

Ask HN: Books about Genetic Algorithms

14•andyjohnson0•22h ago•7 comments

Ask HN: What do SRE do at your company?

7•petemc_•22h ago•8 comments

Everyone feared AI taking over; the real danger is AI serving just the few

109•PhilipDaineko•1d ago•74 comments

Ask HN: MacBook vs. Dedicated GPU for LLM

35•mzubairtahir•2d ago•66 comments

Ask HN: How much coding should beginners learn in the AI era?

38•JohnDSDev•5d ago•52 comments

Ask HN: Is there a bad employers (who have a records of not paying) list?

52•trowa159•1d ago•65 comments

I patched llama.cpp to gain 20% prompt processing TPS. Help me make a PR

6•i_am_rocoe•1d ago•2 comments

Ask HN: Smallest amount of working ML weights that can be tattooed on a body?

8•thoughtpeddler•2d ago•6 comments

We need tech news sources which exclude AI

128•botfriendsarent•19h ago•74 comments

Ask HN: How do I capture the right audience and find the product market fit

7•akarshhegde18•1d ago•13 comments

Ask HN: What do you predict the world will look like in 5-10 years?

10•justanything•2d ago•12 comments

Ask HN: What GUI/desktop app do you use to keep track of different AI sessions?

5•howToTestFE•2d ago•5 comments

Ask HN: Norway bans AI in elementary schools

15•mellosty•3d ago•19 comments

Tell Zillow: Fee-Simple vs. Leasehold Filter

6•HoldOnAMinute•2d ago•1 comments

Ask HN: Has Ilya Sutskever spoken publicly lately?

11•aurenvale•2d ago•2 comments

Fast feedback loops is the way

5•skyglider•1d ago•0 comments

Recursive self improvement for human skills

4•rando77•1d ago•2 comments

Ask HN: What home printer do you use/recommend?

20•niyazpk•5d ago•23 comments

Ask HN: Techniques for learning things quickly using coding agents?

6•throwaw12•2d ago•2 comments

Roblox parental controls are a dystopian security disaster

23•notsure357•2d ago•5 comments

Data Privacy while using API tools

4•11shyam11•2d ago•5 comments

Tell HN: Mojo is becoming open source

8•theanonymousone•2d ago•4 comments

Ask HN: Is there a quiet market for 'no enforced AI' dev jobs?

7•reinhardt•2d ago•11 comments

Ask HN: Who remembers Fry's Electronics – the "church" of IT people?

8•netfortius•3d ago•4 comments