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: What's your current AI agentic setup?

113•eggbrain•10h ago•127 comments

Ask HN: What cryptography book do you recommend for reading with 10 year olds?

42•mike_richards•1d ago•44 comments

Tell HN: Gemini trains on chat history, even for subscribers (personal accounts)

627•jameslk•15h ago•163 comments

Ask HN: What your experience with the monthly "who wants to be hired" thread?

45•newswangerd•3h ago•38 comments

Canva lays off 22% of its workforce; 1,270 people

14•princevegeta89•2h ago•0 comments

Tell HN: Don't use Postman, they proxy your info without your permission

96•neya•22h ago•3 comments

OpenAI seems to be silently re-enabling model training on Codex chats

518•user052919•1d ago•154 comments

Gitbook Breached

163•punchmesan•1d ago•39 comments

Ask HN: Which TV do you recommend for privacy?

728•LecroJS•3d ago•879 comments

Ask HN: Who is hiring? (November 2026)

248•whoishiring•2d ago•255 comments

Ask HN: Which agent harness do you use for working with multiple Models?

4•avucenovic•7h ago•0 comments

Ask HN: Impact of US Elections on AI?

8•talmr•17h ago•11 comments

Ask HN: Does anyone have a contact with Cleveland-area Ham club?

166•stockresearcher•2d ago•23 comments

Ask HN: What's on Your Learning List?

4•carlos-menezes•10h ago•1 comments

WorkOS reports security breach

79•werrett•2d ago•11 comments

Ask HN: Is AI good enough for math exercises?

3•Qision•10h ago•4 comments

Ask HN: Is it worth reading The Art of Computer Programming now?

7•weavie•16h ago•2 comments

Tell HN: Scribd Breached

359•x______________•4d ago•123 comments

Ask HN: How to Keep the Edge as an Engineer?

9•spacebuffer•17h ago•5 comments

Ask HN: Is it still worth building and documenting projects the "old way"?

3•dhruv_ahuja•12h ago•5 comments

Tell HN: GitHub Is Down

29•yuvadam•15h ago•16 comments

Tell HN: You now need a government id in order to create an Anthropic account

19•I_am_tiberius•1d ago•10 comments

Ask HN: Will cheap high-quality AI end this December?

7•amichail•1d ago•3 comments

Ask HN: What is the best non mainstream programming language or stack in 2026?

5•kbrannigan•1d ago•7 comments

Ask HN: Design My YouTube Feed

4•mrkn1•1d ago•8 comments

Ask HN: Are you building your own personal webapps?

3•viejaquerida•21h ago•2 comments

Ask HN: Does anyone enjoy work anymore?

27•jackmalpo•2d ago•26 comments

Ask HN: What is Google Flights' business model and has it changed recently?

8•lastofthemojito•1d ago•7 comments

Google reCAPTCHA on archive.is asking to scan a QR with a mobile device

4•linuxhdr•1d ago•1 comments

How did we end up with Frontier Lab oligopoly rather than a monopoly?

3•bdhe•1d ago•2 comments