Poetry is really hard for the current API, so this is going to have its own prompt type.

Here's a gist that has some code which queries the API until it gets rhymes; it doesn't work well but maybe it's a start. It tries to find a rhyming word and then a sentence with the rhyming word. https://gist.github.com/brockmanmatt/9c1b465ff0b853cef201dc7b7d607931.

There's a bit of a question over what causes the API to do poorly on Poetry. It maybe that the byte pair encoding, or BPEs, prevents the API from being able to identify where different parts of words are the same. However, there are a few reasons to think that the difficulty with rhyming has more to do with how difficult it is to predict the words that a phrase will end with.

Difficulties: Progress Subcomponents Examples Evaluation Metric
Identify End of Word Pretty Much Solved
Find Rhyming Word Partially Solved
Get rhyming word at end of sentence Partially Solved hard to get ANY word at end of sentence

Examples in the Wild

Andrew Brown posted a 0 shot prompt on Twitter that can generate rhyming lines with a topic; unsure how often it works/lengths.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License