Sample code for: LangChain Tutorial: Build Your First Chains and Agents#794
Open
martin-martin wants to merge 1 commit into
Open
Sample code for: LangChain Tutorial: Build Your First Chains and Agents#794martin-martin wants to merge 1 commit into
martin-martin wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Where to put new files:
my-awesome-articleHow to merge your changes:
Code examples for the LangChain Tutorial: Build Your First Chains and Agents tutorial. Files live in the
langchain-tutorial/top-level folder, named after the article slug.The
langchain_intro/package holds the finalchatbot.py(chat model → prompt templates → LCEL chain → ChromaDB RAG retriever → tool-calling agent), alongsidecreate_retriever.py(builds the vector database) andtools.py. Also included:data/reviews.csv, arequirements.txtwith the pinned versions from the tutorial, and a.env.example.The code was executed end-to-end against the OpenAI API and verified before pushing (
ruff format+ruff checkclean against the repo's pinned ruff).