I've been trying to use ChatGPT to produce pyflink...
# random
a
I've been trying to use ChatGPT to produce pyflink code, with mixed success. I believe the success could be greatly improved if there were better fully written examples of good Flink code in the documentation, so it could imitate the correct syntax better. This would similarly improve the usefulness of the documentation.
m
Isn't a bigger problem that ChatGPT actually doesn't use recent data in its training model?
It also still suggests DataSet API solutions, which have been deprecated for almost 3 years
a
If it had been trained with a newer version of Flink, it would produce better results, this much is true.
It is possible to give quite a lot of context to it, and it does understand Python and SQL. It probably can be made to provide quality code using context.
Especially if you use the API, and something like LangChain.
You also need to be quite clear what you ask, very clear.
p
GPT4 with the browser plug-in has been quite good with Flink SQL and PyFlink code gen in my experience. Definitely helping with my dev.
f
@Prashant Doolabh interesting. when you write your prompt do you point it the url for the docs to follow or do you let it run wild and seek it for you?
p
A combination of both, typically I ask it for the most recent approach and it tends to trigger the browser plug-in
f
acknowledge that the other day. works great! thanks 🤙