Ask HN: Most interesting tech you built for just yourself?
1901 pointsMaybe you've created your own AR program for wearables that shows the definition of a word when you highlight it IRL, or you've built a personal calendar app for your family to display on a monitor in the kitchen. Whatever it is, I'd love to hear it.
Comments (1,792) 625 threads
Show all comments
Showing thread 88 of 625
Normal recipe sites tend to be full of irrelevant (SEO optimized) text, ads and tracking, and I wanted something to just get the recipe in a clean form.
It’s a basic web application (mostly in Go) to manage recipes. New recipes are imported from an URL, after which it extracts the plain text from the site and uses GPT to get a markdown formatted recipe and list of ingredients.
This would’ve been much harder pre-GPT, but now was trivial to implement.
As a minor detail I also translate everything to the same language as part of the transformation. Just a bit of prompt experimentation.
I wonder how close looking for a group of lines that start with a number, then taking all the text following that group of lines would get you. I bet that would get you pretty close to the desired effect most of the time.
I also wonder if more standard NLP methods might work here, rather than using the full power of an LLM. Instructions are grammatically constructed as commands, so if you start with doing what I mentioned in the previous paragraph, then parse each sentence following the group of lines starting with numbers, you should be able to determine which ones are commands. If a paragraph contains no commands, it's obviously not directions.
Just some random thoughts. I do see what you mean, though: definitely not trivial sans assistance from an LLM.
I prompt GPT to return what I want in JSON format and that works surprisingly well, so it turned out easy to parse too.