Lesson Complete!
Add an Interactive Loop
What you learned
- How the REPL pattern works:
while Trueloops that read input and respond until interrupted - How to extract the file list from indexed chunks and inject it into every prompt
- How to wire
chat_loopintomain()so setup and the interactive session run in sequence
Next up
In the next lesson, you will add conversation history so the assistant can follow up on prior questions — and understand references like "what did they write it about?"