the hallucinating thing on AI it's a misunderstood. AI read the input you write by tokenization, that means it reas like that:
>he llou ser th isme ssa geis tok e n ize d
The AI just cut the sentence in pieces so it can be understood, then every word has an ID number, hello is [154], world is [3822], and hello world is [154, 3822].
Now, the AI "stores" the word car as the ID 154, when it thinks on 154 ID, it searches what's inside that ID and there is 1536 decimal numbers...A lot of numbers just for a word.
Then, every ID is stored on an opposite ID far away, in meaning, example:
Car: technology, movement, metal
opposite?
Forest: natural, tree, rocks.
154 = car, 10 = Forest (or rock).
What i'm trying to explain with all of this is...AI lenguage is shit lol, it's functional but the way it's made gives a margin to mistakes that would make people think that AI is conscious or that AI can hallucinate, they are just mathematical mistakes because the lenguage AI uses it's starting to become old (yes, i'm being serious), they are constantly researching new ways to AI to recieve and process inputs.