by gamegoblin · 3y ago · 0 comments
For instance, this prompt:
best_artists = search(year=2014, genre="hip-hop")
assert(len(best_artists) == 10)
for i, artist in enumerate(best_artists):
print(f"{i}. {artist}")
Stdout:
Yields this output: 0. Kendrick Lamar
1. Drake
2. J. Cole
3. Logic
4. Childish Gambino
5. Joey Bada$$
6. Chance the Rapper
7. Schoolboy Q
8. Vince Staples
9. Run the Jewels
Note how the `assert` is used to constrain the output. The `search` method is not defined but what it does is obvious so the LLM hallucinates its output.I'm not saying your approach is wrong or anything, but I am trying to understand the value you get from it? I get almost the same output, modulo different ranking in the later ranks. (and that'll happening anyways, ChatGPT is deliberately not deterministic)
list top 10 hip hop artists from the year 2014 |> sortBy(chart performance, descending)