
1/24/2024 · Jasmin Rubinovitz
What this post added
This post details the technical implementation of ShiffBot, an experimental AI tool for creative coding education powered by the Gemini API. It describes the use of prompt engineering, including static persona definitions and few-shot learning examples, to imbue the AI with Daniel Shiffman's teaching style. It also explains the application of semantic retrieval using text embeddings to ground the AI's responses in a corpus of educational videos and content, enabling it to surface relevant resources and provide context-aware assistance. The integration with the p5.js editor allows ShiffBot to access conversation and code context for personalized responses.