Settings

Theme

Ask HN: How to Handle Randomness with AI?

2 points by dorianmariecom a month ago · 1 comment · 1 min read


hi,

i end up making the ai (openai) chose 20 random words, then taking a random word from those and passing it to the next call to the ai.

i also use the seed parameter but it keeps giving the same answers even with different seeds

what do you think?

thanks, dorian

PaulHoule a month ago

Humans are terrible at generating randomness, this is why we have coins, dice, cards, the I Ching and such. So are LLMs.

In the case of AI you generate randomness outside the AI. For instance a Python script that picks a random word out of /usr/share/dict/words; ask the AI to write the script if you want. Or call out to a tool.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection