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

Project 25: Chat App Assistant

AI Engineer
Current Task

Objective

Review day: assemble a retrieval chain like day 12 for a chat app's knowledge base question.

Task: invoke a retrieval chain with a chat app question and print its answer.

index.py
from langchain.chains import create_retrieval_chain retrieval_chain = create_retrieval_chain(retriever, question_answer_chain) response = retrieval_chain.invoke({"input": "How do I mute a conversation?"}) print(response["answer"])

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

Live Preview
🖼️

Verify your code to see the preview