Curiosity                          
A collection of things that I find interesting

Articles about everything

Here you will find a list of stuff that I experienced and some resume about it. If you have any questions, have an issue with certain content [CopyRight etc.] please do not hesitate to contact me at info@wiederkleinehof.de

07.07.2023

My experience as a somewhat Python-Developer with Chat-GPT

As an engineer, I use Python for a variety of tasks, whether it's automating repetitive tasks, developing prototypes, or even creating entire programs. If I can't solve a specific problem, lack inspiration, or find myself struggling with error messages, Stack Overflow (SO) has always been my first go-to resource. In most cases, there is already an answer to a question, and if not, you can ask it while adhering to certain communication rules, and the community diligently ensures that these rules are followed.


Now, there is a new resource: Chat-GPT. Chat-GPT provides me with immediate responses and is always available. In other words, no matter how poorly I formulate my question or overlook the fact that the question has already been answered due to a lack of technical terminology, I still receive an answer.


But are these answers correct? Similar to Stack Overflow, I have never used Chat-GPT to write entire programs but rather to solve specific sub-problems. The time required to debug, understand, and maintain a program entirely developed by Chat-GPT would simply be too significant. We tend to understand what we write ourselves (most of the time).
For small problems, it works very well. Here are a few examples:



Task


What worked?

What did not work?

Write me a script that iterates over every image on my PC and show it to me using OpenCV

  • finding the images
  • displaying the images
  • converting the script into a script that can be used from the command line with parameters
  • iterating over all folders if not correctly specified
  • If a folder was not present, the program ended with an exception
  • the window displaying the image could not be closed properly

Create a regular expressions that finds all instances of numbers in a float number in a string, where the comma sing is a comma and not a dot and transfer it to a floating variable

  • Finding the values
  • Finding negative values, even a specific fix went to a completly wrong direction and simply added a negative value to any number found

Write me a python script that automatically generates some psychedelic images

  • Creating an image
  • Creating random patterns (?)
  • The image looked more like a night sky and not psychedelic

Suppose you work for a customer support company, and you have a dataset of customer reviews labeled with categories such as "complaint," "query," and "feedback." Your task is to build a text classification model that can automatically assign a category to a new customer review based on its content. Use Python for this task.
Also write a function that auomatically generates a typical .csv file that is filled with dummy reviews

  • At the beginning: Only the dummy generation
  • At the end: Almost everything
  • In this example you will get an output - however it is hard to interpret the output if you do not know what it means. So in this case, the AI generated a full product - but without people being able to interpret the output and to adapt it, it is worthless


During the process, it felt like I was conversing with a colleague to solve a specific problem. However, there were also cases where Chat-GPT clearly failed and provided incorrect solutions. This happened particularly when the initial request didn't solve the problem, and I had to specify additional requirements. This led to the original requirements being "forgotten" in the request or problems being addressed only for a specific edge case that should have been solved in addition. This was a major flaw in the second task.

Furterhmore, there is one major difference between SO and Chat-GPT: The users in SO are brutally honest and will tell you exactly what is so wrong with your code. On the other hand, you can tell Chat-GPT that even correct answers are wrong and it will believe it: You are not wrong AI!

However it did not change the (already) correct calculation.


Conclusion:
As long as you review the code, as you would with any internet source, Chat-GPT can be a valuable tool for obtaining assistance and guidance. It provides quick responses and can be helpful for tackling smaller issues. However, caution should be exercised when relying solely on Chat-GPT for complex or critical tasks, as it may not always provide accurate solutions. Also, Chat-GPT is too gullible and believes the user is always right.


If there is an issue with any contect (CopyRight etc.) please contact me at info@wiederkleinehof.de