| Section | File | Colab | Kaggle |
|---|---|---|---|
| Multiple-choice question-answering agent | notebook | ||
| LangGraph streaming | notebook | ||
| Communication between agents | notebook | ||
| Tree-of-thoughts (ToT) agent | notebook | ||
| Cache on LangGraph | notebook |
To import any notebook to Kaggle:
- Click the Kaggle badge above
- Go to File → Import Notebook → GitHub
- Paste the corresponding GitHub URL:
- Question Answering Agent:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter6/question_answering.ipynb - LangGraph Streaming:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter6/streaming.ipynb - Communication Between Agents:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter6/communication.ipynb - Tree-of-Thoughts (ToT) Agent:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter6/tot.ipynb - Cache on LangGraph:
https://github.com/benman1/generative_ai_with_langchain/blob/second_edition/chapter6/cache.ipynb
- Question Answering Agent:
Please make sure you set up your environment with pip, conda, poetry, or docker! You can set up the keys for the different providers in a config.py as recommended in the book. Please check the setup instructions for dependencies and API keys before you start.