I'm not getting it... what does the layover in Python achieve?
count(n for n in range(75129,85412) if is_prime(n))
and GPT does pretty well at writing that kind of code.Or in this case, have the LLM delegate to Python and then have the Python code delegate to another AI for "fuzzy" functions.
1. Python's code is abundant, so model should be well trained to generate correct Python code. The chance to make mistake is less. 2. Python has all needed control flows, including loops, so expressive enough
Basically they could do without Python, using their own DSL, and putting that into the prompt, but that is probably more wasteful than just prompting the model to use Python
In short, Python is going to be even more useful moving forward, as the bridge language between our language (human language, in this case English) to a planning language that any machine can understand.