Chain-of-thought per scoprire il ragionamento
Ti viene presentato un classico problema di matematica per determinare il numero di frutti in un cesto. Vuoi che ChatGPT lo risolva per te, fornendo anche un ragionamento passo dopo passo.
La funzione get_response() per comunicare con ChatGPT è già caricata per te.
Questo esercizio fa parte del corso
Explainable AI in Python
Istruzioni dell'esercizio
- Completa il
promptper ottenere un ragionamento chain-of-thought per questo problema.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# Complete the chain-of-thought prompt
prompt = "In a basket, there are twice as many apples as oranges and three times as many oranges as bananas. If there are 6 bananas in the basket, how many fruits are there in total? ____"
response = get_response(prompt)
print(response)