🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 16: Login Help Chatbot

AI Engineer

Builds on these lessons

Current Task

Objective

.stream() yields a response incrementally, chunk by chunk, instead of waiting for the entire generation to finish before returning anything.

Task: stream a chain's response and print each chunk's content as it arrives.

index.py
for chunk in chain.stream({"input": "Explain what a login screen validates."}): print(chunk.content, end="")

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview