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

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

2•JB_5000•13m ago•0 comments

1Password Raising Prices ~33%

81•iamben•5h ago•37 comments

Using "Hi Claudette " on Claude.ai

2•mlongval•2h ago•1 comments

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

3•TheAlgorist•3h ago•0 comments

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

45•techteach00•2d ago•43 comments

Ask HN: Who has seen productivity increases from AI

6•Kapura•8h ago•5 comments

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

29•dmpyatyi•1d ago•23 comments

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

3•thesvp•14h ago•15 comments

Would you choose the Microsoft stack today if starting greenfield?

16•JB_5000•19h ago•14 comments

ChatGPT finds an error in Terence Tao's math research

41•codexon•23h ago•6 comments

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

6•personality0•12h ago•4 comments

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

2•thesssaism•12h ago•3 comments

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

11•Cyberis•23h ago•19 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?

7•rakan1•20h ago•4 comments

Ask HN: Programmable Watches with WiFi?

11•dakiol•3d ago•5 comments

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

9•marginalia_nu•23h ago•3 comments

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

9•sujayk_33•2d ago•21 comments

GLP-1 Second-Order Effects

21•7777777phil•1d ago•9 comments

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

11•marvin_nora•2d ago•8 comments

Explanation of JEPA – Yann LeCun's proposed solution to self-supervised learning

2•helloplanets•14h ago•1 comments

Ask HN: Cognitive Offloading to AI

12•daringrain32781•2d ago•8 comments

Ask HN: What Comes After Markdown?

7•YuukiJyoudai•2d ago•13 comments

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

12•amin2011•3d ago•6 comments

So Claude's stealing our business secrets, right?

25•arm32•2d ago•18 comments

Ask HN: How are early-stage AI startups thinking about IP protection?

4•shaheeniquebal•1d ago•3 comments

Ask HN: If the "AI bubble" pops, will it really be that dramatic?

14•moomoo11•3d ago•11 comments

Back end where you just define schema, access policy, and functions

3•emilss•2d ago•5 comments

Ask HN: Why don't software developers make medical devices?

7•piratesAndSons•3d ago•19 comments