← Back to context

Comment by Paul-Craft

3 years ago

> This would’ve been much harder pre-GPT, but now was trivial to implement.

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.

Was thinking the same thing initially, but it would have been quite a time investment. In this case I just make an API call and it’s done.

I prompt GPT to return what I want in JSON format and that works surprisingly well, so it turned out easy to parse too.