Practice Project: AI Chat Assistant
Build a complete chat assistant with memory and streaming
🔑 Key Concepts
- Project goal — Build a command-line chat assistant that maintains conversation history, streams responses, and handles errors gracefully.
- Requirements — Conversation memory (last 10 messages), streaming output, error handling, token counting, cost tracking.
- Extensions — Add system prompt customisation, multiple model support, conversation export, RAG integration.
- Success criteria — Runs for 50+ turns without errors, shows streaming output, tracks cost per conversation.
💡 Practice: Try implementing each concept yourself before moving on. Reading about RAG and building RAG are very different things.