4 ms·
This inspired me to have Claude 3.5 Sonnet knock out a quick web page prototype for me, using PDF.js to load and render the PDFs to canvas elements and then dis
by simonw 2y ago
This inspired me to have Claude 3.5 Sonnet knock out a quick web page prototype for me, using PDF.js to load and render the PDFs to canvas elements and then display visual diffs between their pages.
Two prompts:
Build a tool where I can drag and drop on two PDF files and
it uses PDF.js to turn each of their pages into canvas
elements and then displays those pages side by side with a
third image that highlights any differences between them, if
any differences exist
rewrite that code to not use React at all
Here's the result: https://tools.simonwillison.net/compare-pdfs https://tools.simonwillison.net/compare-pdfs
It actually works quite well! Screenshot here: https://gist.github.com/simonw/9d7cbe02d448812f48070e7de13a5ae5?permalink_comment_id=5109044#gistcomment-5109044 https://gist.github.com/simonw/9d7cbe02d448812f48070e7de13a5...
- radicality 2y agoWhat’s the best way to effectively make use of Claude 3.5 ? I signed up a few days ago for the api access. Besides console.anthropic.com , do you recommend any other tools that I can run locally to give it api key and use claude effectively ?
- simonw 2y agoThe web interface gives you access to the Artifacts feature where it can build SPAs and render them in the browser. For terminal access I like using my own https://llm.datasette.io/ https://llm.datasette.io/ tool with the https://github.com/simonw/llm-claude-3 https://github.com/simonw/llm-claude-3 plugin For Python library access I recommend checking out Claudette: https://www.answer.ai/posts/2024-06-21-claudette.html https://www.answer.ai/posts/2024-06-21-claudette.html
- deleted 2y ago[deleted]
- kenjackson 2y agoHow much additional work did you have to do to get it into this form? Thats impressive work using those prompts.
- simonw 2y agoAlmost no extra work at all. You can see the full transcript here: https://gist.github.com/simonw/9d7cbe02d448812f48070e7de13a5ae5?permalink_comment_id=5109046#gistcomment-5109046 https://gist.github.com/simonw/9d7cbe02d448812f48070e7de13a5... - it really was just those two prompts, then I copied the result out into a document to test it. I modified the HTML a tiny bit before publishing it - I set the font to Helvetica and added the note at the bottom of the page showing the prompt I used. The whole project took less than 5 minutes - then another 10 to write it up.
- robertlagrant 2y agoThat's incredible.
- hallucinated 2y agoIt's hard to challenge a comment that is 4 days old: What's the difference between the 2 PDFs? I didn't find any actual difference. But - Maybe it's just me that's hallucinating