That depends on what you understand to be AI. If you want something close to chatGPT that will always need an internet connection. If you want to explore AI in a different, local meaning, why do you not have a look and explore the possibilities that the work of our member schuler has done for his PH.d.
See a.o. this thread:
https://forum.lazarus.freepascal.org/index.php/topic,39049.0.htmlBy now it is much more than just about neural networks (which is a form of A.I.)
If you want something more or find it too difficult - it is difficult - I wrote an interface proof of concept for chatGPT but that now requires a payed subscription and can not run locally unless you run your own datacenters.
schuler's work requires a lot of training data for most solutions but is theoretically very, very sound and earned him his PH.d in artificial intelligence.
There is no such thing as "easy" regarding AI. but schuler's work is world class, written in freepascal and can be used locally. (if you put the effort in for the needed training data)
He is also very helpful and active on this forum.
A few experiments I have done myself with his software is simple voice recognition where the model can recognize the voice of all four members in the household and the two dogs and the cat too. Took me over a year... be prepared. I based that on his picture recognition example and used the wave forms of the voices in the same manner.
It can do this: recognize a voice and print the name of who is speaking miauwing or barking with about 92% accuracy. Nothing more...
for an introduction in fuzzy logic, which is much easier to understand and also a base of aI i wrote a zadeh logic a couple of years ago:
https://forum.lazarus.freepascal.org/index.php/topic,41144.msg295348.html#msg295348If you can work with that, you will probably also understand schuler's code.