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

Ask HN: Programmable Watches with WiFi?

31•dakiol•3d ago•19 comments

1Password pricing increasing up to 33% in March

120•otterley•18h ago•174 comments

Ask HN: Share your productive usage of OpenClaw

75•aavci•7h ago•50 comments

New Claude Code Feature "Remote Control"

4•rob•10h ago•0 comments

AI isn't killing SaaS – it's killing single-purpose SaaS

5•JB_5000•12h ago•4 comments

Persistent Prompts and Built in Search

2•lazybusy•10h ago•0 comments

Ask HN: Chromebook leads for K-8 school in need?

45•techteach00•2d ago•43 comments

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

31•dmpyatyi•1d ago•22 comments

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

5•2muchclout•13h ago•9 comments

Using "Hi Claudette " on Claude.ai

3•mlongval•14h ago•2 comments

Looking 4 open-source knowledge base and project management tool 4 personal use

3•TheAlgorist•15h ago•3 comments

ChatGPT finds an error in Terence Tao's math research

41•codexon•1d ago•8 comments

Would you choose the Microsoft stack today if starting greenfield?

17•JB_5000•1d ago•17 comments

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

4•thesvp•1d ago•17 comments

Ask HN: Who has seen productivity increases from AI

6•Kapura•20h ago•8 comments

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

13•Cyberis•1d ago•18 comments

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

2•Swadesh9422•23h ago•2 comments

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

6•personality0•1d ago•4 comments

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

2•thesssaism•1d ago•4 comments

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

5•parvardegr•1d ago•8 comments

Ask HN: Where do you save links, notes and random useful stuff?

17•a_protsyuk•1d ago•39 comments

Does anyone use CrewAI or LangChain anymore?

9•rakan1•1d ago•5 comments

Ask HN: What is up with all the glitchy and off-topic comments?

9•marginalia_nu•1d ago•3 comments

Ask HN: Why doesn't HN have a rec algorithm?

9•sujayk_33•3d ago•21 comments

Ask HN: What breaks when you run AI agents unsupervised?

12•marvin_nora•2d ago•8 comments

GLP-1 Second-Order Effects

22•7777777phil•1d ago•9 comments

I'm 15 and built a platform for developers to showcase WIP projects

12•amin2011•3d ago•6 comments

Ask HN: Cognitive Offloading to AI

12•daringrain32781•2d ago•9 comments

So Claude's stealing our business secrets, right?

26•arm32•3d ago•18 comments

Ask HN: What Comes After Markdown?

8•YuukiJyoudai•2d ago•13 comments