I wrote a short Racket AI projects book that you can read online using the link Practical Artificial Intelligence Development With Racket that contains many short AI examples including LLMs, vector datastore, NLP, semantic web and non-AI utilities.
This s a "live" book - there will never be a second edition. I just add to it every few months as I have additional material.