Skip to content

Sample code for: LangChain Tutorial: Build Your First Chains and Agents#794

Open
martin-martin wants to merge 1 commit into
masterfrom
langchain-tutorial
Open

Sample code for: LangChain Tutorial: Build Your First Chains and Agents#794
martin-martin wants to merge 1 commit into
masterfrom
langchain-tutorial

Conversation

@martin-martin

Copy link
Copy Markdown
Contributor

Where to put new files:

  • New files should go into a top-level subfolder, named after the article slug. For example: my-awesome-article

How to merge your changes:

  1. Make sure the CI code style tests all pass (+ run the automatic code formatter if necessary).
  2. Find an RP Team member on Slack and ask them to review & approve your PR.
  3. Once the PR has one positive ("approved") review, GitHub lets you merge the PR.
  4. 🎉

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 final chatbot.py (chat model → prompt templates → LCEL chain → ChromaDB RAG retriever → tool-calling agent), alongside create_retriever.py (builds the vector database) and tools.py. Also included: data/reviews.csv, a requirements.txt with 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 check clean against the repo's pinned ruff).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant