Remember that 'AI' doesn't understand what it is saying. They are statistical models stringing 'words' together based on the text that they trained on. Essentially pseudo-randomly stringing one word after another on the basis of how probable the next word would be in the training corpus.
Because the AI generated text looks lots like the source text, it often comes up with useful descriptions and summations, but only if that useful information is already buried in the source text. Since lots of humans are writing lots of stuff all the time, the same useful bit of knowledge gets written down lots of times in slightly different ways. AI does a pretty good job of distilling that out.
But if the source text is full of nonsense, AI will simply repeat that nonsense, possibly with slightly different wording.
If you ask AI for something that its been exposed to but doesn't really understand, you might get a 'hallucination', where the AI system just makes up something that looks like what you are asking for.
When a lawyer asked an AI system to generate a legal brief, it generated some text that statistically looked like a legal brief. Even the case citations looked like proper case citations. Unfortunately the AI had no clue what a case citation was; it didn't go looking into the corpus of prior cases to find relevant ones. The AI just knew that legal briefs had strings of words that followed a certain pattern and just made up new strings of words that followed that pattern. So this 'legal brief' had things that looked like case citations that were simply made up.
If you understand what the AI system is doing, it is a great tool. Ask AI to summarize some text? Pretty good job. Ask AI to do a grammar check on your writing? Pretty good job. Ask AI to create new practice questions from a set of old practice questions? Also pretty good. Feed AI a code book and ask it to search for relevant sections? That would probably work (I've not tried it). Feed AI a code book and ask for an interpretation? You will probably get nonsense.
-Jonathan