Today I Learned

fasthtml

FastHTML Loading Spinner

I've enjoyed using fasthtml to deploy small, easily hosted webpages for little apps I've been building. I'm still getting used to it but it almost no effort at all to deploy. Recently, I built an app that would benefit from having a loading spinner upon submitting a form, but I couldn't quite...

prompting

Prefill And Stop Sequences

I revisited Eugene's excellent work, "Prompting Fundamentals and How to Apply Them Effectively". From this I learned about the ability to prefill Claude's responses. Using this technique, you can quickly get Claude to output JSON without any negotiation and avoid issues with leading codefences...

fasthtml

Upload Multiple Images with FastHTML

I've been experimenting with FastHTML for making quick demo apps, often involving language models. It's a pretty simple but powerful framework, which allows me to deploy a client and server in a single main.py -- something I appreciate a lot for little projects I want to ship quickly. I currently...

html2text

Summarizing webpages with language models

Similar to (and perhaps more simply than) analyzing Youtube video transcripts with language models, I wanted to apply a similar approach to webpages like articles, primarily for the purposes of determining the subject content of lengthy pieces and experimenting to see if this is useful at all.