Skip to content

Sample code for: LangChain Tutorial: From Prompts to RAG and AI Agents - #794

Merged
bzaczynski merged 4 commits into
masterfrom
langchain-tutorial
Oct 15, 2026
Merged

bzaczynski merged 4 commits into
masterfrom
langchain-tutorial

Conversation

@martin-martin

@martin-martin martin-martin commented Jul 11, 2026 •

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: From Prompts to RAG and AI Agents tutorial. Files live in the langchain-tutorial/ top-level folder, named after the article slug.

The folder holds the three scripts built in the tutorial: build_vector_db.py (loads reviews.csv into ChromaDB), rag.py (RAG chain over the reviews), and agents.py (tool-calling agent with count_reviews and find_physician_hospitals tools). Also included: reviews.csv, a requirements.txt with the pinned versions from the tutorial, and a .env.example.

All scripts were executed end-to-end against the OpenAI API with the pinned versions (ruff format + ruff check clean against the repo's pinned ruff).

🤖 Generated with Claude Code

@lpozo lpozo changed the title Sample code for: LangChain Tutorial: Build Your First Chains and Agents Sample code for: LangChain Tutorial: From Prompts to RAG and AI Agents Oct 1, 2026
realpython-bot and others added 2 commits October 15, 2026 09:18
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

@bzaczynski bzaczynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final QA: materials tested, all scripts run and match the tutorial.

@bzaczynski
bzaczynski merged commit 051c133 into master Oct 15, 2026
1 check passed
@bzaczynski
bzaczynski deleted the langchain-tutorial branch October 15, 2026 09:33
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.

4 participants