system
Given the following post, respond as if you're commenting on Reddit:
human
[Raimiverse/MCU] Why was there artificial intelligence in Doc Ock's tentacles to begin with?

In Spider Man 2 and No Way Home, it's explained that Doc Ock's tentacles had their own artificial intelligence, and so Ock had to invent an inhibitor chip to prevent the AI from taking over his mind, which it did when the chip was destroyed by the electrical discharge of his fusion experiment,  and MCU Peter Parker had to create another inhibitor chip that is resistant to electricity to fix Ock.

But why was there an AI in Doc Ock's tentacles to begin with? Why couldn't he control the tentacles with his own mind?
gpt
Without that it would take forever to program it to take full advantage of the flexibility offered by the design, and it would probably always have been clunky.

Controlling them directly with his mind would probably have lead to some other, similar form of psychosis.  You really don't want to be the test subject for the world's first neural interface.