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

Sqlit – A lazygit-style TUI for SQL databases

7•MaxTeabag•3h ago•0 comments

Did the Linux memory management maintainer "just quit"?

5•hliyan•5h ago•0 comments

S there room for a VPN with zero Five Eyes servers and RAM-only infrastructure?

3•yanbinette•7h ago•2 comments

Forensic analysis of STM32F7 firmware failure modes in drone swarms

3•ArchiveForensic•7h ago•1 comments

Ask HN: How do you prepare to tech interview? Any tip and tricks?

6•DmitriyBuchilin•7h ago•14 comments

Ask HN: Why do we snore? And what to do about it?

18•simonebrunozzi•14h ago•15 comments

Ask HN: Why didn't the C64 come with Simons' BASIC in the box from 1983 onward?

14•amichail•1d ago•11 comments

Ask HN: How to get back into programming without AI?

7•coolcoder613•18h ago•13 comments

Ask HN: Did Messages get removed from Google Takeout?

22•MollyRealized•2d ago•1 comments

Ask HN: Best worldwide / classic phone games?

7•bix6•1d ago•7 comments

Is a Claw driven Hacker News user a problem?

7•delichon•1d ago•15 comments

Ask HN: Shouldn't Google need to give a public statement about Railway incident?

179•srameshc•5d ago•105 comments

Are Tech Meetups Dead?

11•mlinhares•1d ago•12 comments

$100 to upgrade Fresh IDE for ePub TUI reading

4•jph•1d ago•4 comments

Using games/cards to learn new skills

6•dominikz•2d ago•0 comments

Ask HN: Is $300/HR too low these days for custom full stack?

17•noduerme•2d ago•13 comments

Alternatives to HN for "tech outside of AI" discussion?

61•summonerOS•5d ago•35 comments

Ask HN: Are there any serious efforts to organize tech labor now?

37•0rganize•5d ago•28 comments

Ask HN: Do you have a colophon for your personal website?

10•susam•2d ago•7 comments

Ask HN: How will you manage your digital assets when you die?

8•chistev•11h ago•4 comments

Ask HN: Failing interviews for mid-level SWE in UK, advice please

19•mjb8086•4d ago•12 comments

The solution the supply chain problems is removing your deps from .gitignore

9•SchizoDuckie•2d ago•8 comments

Ask HN: How much AI is in your writing?

10•js98•3d ago•36 comments

Ask HN: How to learn how to develop real time applications?

5•creatorcoder•2d ago•6 comments

Tell HN: Google banned Railway's account. Everything down

32•sergiotapia•6d ago•18 comments

Tell HN: I went to Alaska's northernmost town and this was the GeoIP location

5•ironmagma•3d ago•0 comments

Valgrind-3.27.1 Is Available

12•paulf38•4d ago•1 comments

Ask HN: OpenAI, SpaceX/xAI, Anthropic all to IPO, is this a sign of the peak?

9•virgildotcodes•3d ago•11 comments

Ask HN: What has HN given you?

6•chistev•11h ago•9 comments

You've reached the end!