Email or username:

Password:

Forgot your password?
Simon Willison

Calling LLMs from client-side JavaScript, converting PDFs to HTML + weeknotes
simonwillison.net/2024/Sep/6/w

10 comments
Jeff Triplett

@simon TIL anthropic-dangerous-direct-browser-access - Would that make it possible to access Projects and Artifacts?

Simon Willison

@webology sadly I think it still only provides access to their documented API, not the fun stuff

Dominik Moritz

@simon love that you found again

> Within six hours of posting it my Pipe Syntax in SQL conversion was ranked third on Google for the title of the paper, […]. Yet more evidence that HTML is better than PDF!

Simon Willison

@prem_k ollama? Yeah it’s pretty good, they’re very on top of adding new models

Prem Kumar Aparanji πŸ‘ΆπŸ€–πŸ˜

@simon no, wllama is the WASM binding for llama.cpp & can Inference the gguf files of the models within the browser itself. It is an alternative to Transformers.js (onnx files) and WebLLM (bin shards).

github.com/ngxson/wllama

Simon Willison

@prem_k oh fantastic! I’ve played with github.com/mlc-ai/web-llm but I didn’t know about the llama.cpp port, that’s awesome

Prem Kumar Aparanji πŸ‘ΆπŸ€–πŸ˜

@simon #WASM is such an interesting development for web apps that can run locally in the browser, even when offline. πŸ˜ƒ

Slightly related note, Motherduck's 1.5 tier architecture powered by WASM is pretty cool too, especially when are able to join between tables on your browser and in your cloud in a single SQL query.

Wonder what else will WASM bring. 🀞🏼

Simon Willison

@prem_k I love how easy WASM makes it to run tools like Tesseract - I built this OCR tool using Tesseract.js and PDF.js and it works really well tools.simonwillison.net/ocr

Prem Kumar Aparanji πŸ‘ΆπŸ€–πŸ˜

@simon wow! Didn't know about tesseract.js.

This could potentially remove the need for RPA πŸ˜„

Go Up