frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

Tell HN: YC companies scrape GitHub activity, send spam emails to users

618•miki123211•21h ago•231 comments

Ask HN: How do you handle duplicate side effects when jobs, workflows retry?

4•shineDaPoker•3h ago•2 comments

I don't need AI to build me a new app. I need it to make Jira bearable

15•niel_hu•14h ago•10 comments

How do you evaluate a person's ability to use AI?

3•imwoody•2h ago•1 comments

1Password pricing increasing up to 33% in March

142•otterley•2d ago•195 comments

I built a 151k-node GraphRAG swarm that autonomously invents SDG solutions

2•wisdomagi•13h ago•0 comments

Ask HN: Who Is Using XMPP?

23•nunobrito•1d ago•11 comments

Ask HN: What's it like working in big tech recently with all the AI tools?

19•ex-aws-dude•1d ago•8 comments

Claude Code Bug triggers Rate limits without usage

3•busssard•18h ago•2 comments

Comparing manual vs. AI requirements gathering: 2 sentences vs. 127-point spec

3•thesssaism•19h ago•2 comments

Ask HN: What will happen with Anthropics ultimatum?

7•maniacwhat•1d ago•3 comments

New Claude Code Feature "Remote Control"

8•rob•2d ago•0 comments

Ask HN: Starting a New Role with Ada

9•NoNameHaveI•1d ago•4 comments

LazyGravity – I made my phone control Antigravity so I never leave bed

4•masaTokyo•1d ago•3 comments

Ask HN: How do you know if AI agents will choose your tool?

37•dmpyatyi•3d ago•21 comments

Ask HN: Could you create a competitor to your company at 10% of the cost?

8•TheAlchemist•1d ago•14 comments

Fix cron routes: POST → GET (Vercel cron sends GET)

2•nishiohiroshi•1d ago•1 comments

Would you choose the Microsoft stack today if starting greenfield?

20•JB_5000•3d ago•23 comments

Ask HN: How are you controlling AI agents that take real actions?

7•thesvp•2d ago•18 comments

Comparing manual vs. AI requirements gathering: 2 sentences vs. 127-point spec

7•thesssaism•2d ago•6 comments

ChatGPT finds an error in Terence Tao's math research

42•codexon•3d ago•8 comments

Ask HN: Have top AI research institutions just given up on the idea of safety?

79•DietaryNonsense•1d ago•88 comments

Ask HN: Who has seen productivity increases from AI

12•Kapura•2d ago•13 comments

Ask HN: What Linux Would Be a Good Transition from Windows 11

13•Cyberis•3d ago•20 comments

Ask HN: Any DIY open-source Alexa/Google alternatives?

9•personality0•2d ago•4 comments

Ask HN: Is it better to have no Agent.md than a bad one?

10•parvardegr•3d ago•9 comments

Persistent Prompts and Built in Search

2•lazybusy•2d ago•0 comments

Ask HN: Is it worth avoiding AI while making a game?

7•2muchclout•2d ago•22 comments

Using "Hi Claudette " on Claude.ai

4•mlongval•2d ago•3 comments

Ask HN: Are AI "Chatbot Wrappers" ruining EdTech? I'm testing a proactive UX

2•Swadesh9422•2d ago•3 comments