Skip to content

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

Open
martin-martin wants to merge 2 commits into
masterfrom
langchain-tutorial
Open

martin-martin wants to merge 2 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

This branch has not been deployed

No deployments
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.

2 participants