Using AI to help build expressions & filters

The support form people on this forum to help with creating filters and expressions is amazing, but there must be a point where the same question is asked and it becomes difficult to find answers as the number of posts grows.

At the start, the learning curve is steep so I've started using AI - specifically co-pilot in this instance (Other AI's are available...) to ask it to build code for me.

Ask it a question and it comes back with a detailed explanation of how it works, with an example and the code - so you learn as well as getting the answer. Here's a simple example

Hope it helps!

Nice idea.

The problem with AI is in this case:
It does not test its own suggestion with real examples.
It does not tell you, that this regular expression would delete everything before the LAST colon.

So if you have more then one colon : in your TITLE like in
Super:Artist : with : in its Name
it results in
in its Name

Example:
image

I would suggest to test such AI generated code very carefully.
And please create a backup from your files, just in case...

TBH I have wondered if it would be possible to train an AI with all the contents of the forum and see if that would not give good answers for a lot of cases.

But currently, it would have to be considered that an AI always gives an answer regardless of its validity.
Esp. with regular expressions the pattern has to be described as accurate as possible and a number of threads first of all circle around narrowing down the problem with additional questions before a reasonable answer could be given.

Also, there are a lot of threads that ask for a regular expression where it is not really needed or would make the whole thing overly complicated.

Actually, in a way a lot of use-cases for a lot of basic functions have been described in the documentation

and the FAQs

But still - if you find a way to train an AI and find a way to make it accessible for the forum, it could be that it would improve the forum responce time even more.

btw. I prefer to ask ChatGPT, he/"it" ist more polite and not so unfriendly. even if you point out a mistake he tries to help you to find the correct answer.
Have you tried to compare quality of the answers?

yea, sometimes AI is wrong and tries to explaing wrong answer.
But anyway, I find it helpfully in such cases but it don't free you from using own brain :wink:
i look forward to seeing how the technology continues to develop

@LyricsLover don't worry, technics is still fare away from LyricsLover_AI as an replacement for you in that forum * scnr *

I'm not afraid of an AI.
I am only afraid of all the upcoming "(Your) AI destroyed my collection" topics...

yea, unfortunately this will / can happen

If I look closely at the example then I find the answer not really helpful. The prompt asked for a $regexp but the answer recommends an action of the type "Replace with regular expression".
The action could not be used as part of a format string.
So I wonder how the prompt would have to be changed that the answer really gave valid code for $regexp.

I have tried a few times to get ChatGPT to create regex’es, and sometimes it is able to do what I expect it to be, but quite often it has problems. Even if I ask afterwards it to explain each step.