frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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 was your "oh shit" moment with GenAI?

684•andrehacker•3d ago•1068 comments

Ask HN: Why is the HN crowd so anti-AI?

440•Ekami•1d ago•734 comments

Ask HN: How are thinking efforts implemented?

18•simianwords•12h ago•13 comments

Ask HN: Job market for SDMs/Engineering Managers. Any reliable data?

4•ed_balls•4h ago•1 comments

Ask HN: I made an image watermarking tool. What are the issues open-sourcing it?

3•minimaxir•5h ago•2 comments

Tell HN: Stripe ToS update demands biometrics, freezes payments until given

11•cuz-reasons•6h ago•1 comments

Ask HN: So what happened to Facebook "localhost" tracking?

105•juliusceasar•3d ago•102 comments

Tell HN: Helium is the best browser I ever used

4•prmph•7h ago•5 comments

Ask HN: What is your (AI) dev tech stack / workflow?

158•dv35z•2d ago•130 comments

Ask HN: How do you find deep technical content?

37•f311a•3d ago•28 comments

Ask HN: How to get my contact info off US political party's list

9•kaycebasques•1d ago•3 comments

Ask HN: Where do you get the latest updates about AI?

5•d0able•23h ago•2 comments

Ask HN: Gin rummy strategies

24•bix6•3d ago•4 comments

Bad MCP design costs your agent 5x more tokens

15•JohnnyZhang483•2d ago•1 comments

Ask HN: Is the web for machines (/llm.txt) the one we wished we had as humans?

36•sunshine-o•2d ago•57 comments

New Biochemistry-Based Metabolic Protocol Seeking Alpha Concierge Members

3•joshwprinceton•22h ago•1 comments

Does anyone know since when we are close to building in space?

6•kingleopold•1d ago•2 comments

Ask HN: My competitors have flawed products but I can't get traction

11•saveitincork•3d ago•17 comments

Ask HN: Does robotics capabilities research accelerate AGI timelines?

8•themasterchief•1d ago•1 comments

I'm tired of LLM skill slop, so I built mine with regression tests

7•iliaov•3d ago•0 comments

Ask HN: Were CS profs right to look down on programming in light of modern AI?

4•amichail•1d ago•3 comments

Ask HN: How did you discover Hacker News?

10•chistev•2d ago•30 comments

Supply chain attack alert: .github/setup.js

25•antihero•2d ago•13 comments

Life saving / first aid posters

37•cpu_•5d ago•4 comments

Google killed my $1M ARR startup overnight

23•vadumo•3d ago•13 comments

Ask HN: What would you name your own LLM?

4•akashwadhwani35•1d ago•2 comments

Ask HN: Is Everyone an Engineer Now?

7•piratesAndSons•3d ago•12 comments

Ask HN: Is Azure capacity this constraind or am I doing it wrong?

11•lanycrost•2d ago•15 comments

Ask HN: What are the best unknown books you have read?

7•chistev•12h ago•3 comments

Ask HN: Why isn't AI image generation closely linked with graphics code gen?

3•amichail•2d ago•2 comments