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

Tell HN: GitHub refuses to remove cracked copies of my software after a month

544•IvanK_net•1d ago•318 comments

Ask HN: Are there AI models for generating sounds based on a text and reference?

34•onemiketwelve•2d ago•17 comments

Tell HN: Amazon forgot how to write and test code

10•penskymaterial•15h ago•3 comments

Ask HN: What do you run on a $5 VPS that's worth keeping online 24/7?

35•mariocesar•1d ago•36 comments

Ask HN: Are we losing control of AI?

2•KinetiNode•4h ago•3 comments

What is the actual percentage of people for and against AI?

9•Zeruxe•10h ago•50 comments

Ask HN: What Is Your Personal Backup Methods

11•Crontab•1d ago•8 comments

Tell HN: HN has lost the joy for me

32•trencedamp•1d ago•25 comments

Ask HN: What games do you religiously play on your phone browser?

14•saimiam•1d ago•32 comments

Ask HN: Which frontier model can do code security reviews

6•Bender•16h ago•5 comments

Ask HN: Is the xcancel source code publicly available?

3•bigwheels•17h ago•1 comments

Ask HN: Is anyone still working on dLLMs

3•obonse•17h ago•0 comments

Ask HN: Is this the beginning of the end of open source?

5•potamic•20h ago•11 comments

Ask HN: How do you describe what your relationship brings you?

7•maxignol•1d ago•8 comments

Claude Mythos 5.1 System Prompt?

3•knifelemon•22h ago•0 comments

Ask HN: What do you think about Fractional CFOs

6•mtmosestn•1d ago•10 comments

Ask HN: Do you still own a printer?

16•nunorbatista•1d ago•26 comments

Google Chrome's AI API actively used for device fingerprinting and profiling

6•AlexanderHanff•1d ago•0 comments

Ask HN: How to deal with AI "true believer" leadership at work

5•microflash•1d ago•6 comments

Claude Agents SDK will no longer use subscription; API credits included in plans

5•nullishdomain•15h ago•6 comments

Ask HN: My Apple ID is locked for a week, Apple is a single point of failure

15•akg_67•1d ago•5 comments

Ask HN: What would you like to see in a new AI technology release?

2•ikishade•1d ago•3 comments

Ask HN: Vibecoding Follies

4•vegnus•1d ago•3 comments

Ask HN: How come everyone is an LLM expert?

5•delis-thumbs-7e•1d ago•4 comments

Ask HN: Show me your agentic SDE semantics

2•danielovichdk•1d ago•0 comments

Ask HN: Why is Ask HN only showing me 14 posts?

45•Gooblebrai•1d ago•46 comments

Orcah Studio: A local-first video agent that can search your videos

8•iliashad•2d ago•5 comments

Ask HN: Is observability broken for you?

4•tmach32•1d ago•0 comments

Ask HN: Agent access to chat data should require participant consent?

2•maxwellito•2d ago•1 comments

Ask HN: Alternatives to NeurIPS, ICLR and ICML

4•john-titor•2d ago•0 comments