This repository contains all examples discussed during the bootcamp.
script_1.py- Simple LangChain chat example with prompt template and langfuse tracingexample.env- Template for environment variablespyproject.toml- Project dependencies and configuration
The Chrome browser is recommended.
Python
- Installation steps: https://www.python.org/downloads/
- Recommended: Python 3.11 - 3.13. This version is required for optimal compatibility with LangChain.
uv package manager
- Installation steps: https://docs.astral.sh/uv/getting-started/installation/
- Recommended: Latest Version. Standalone Installer.
git
- Installation steps: https://git-scm.com/install
- Recommended: Latest Version.
Visual Studio Code
- Installation steps: https://code.visualstudio.com/docs/setup/setup-overview
- Recommended: Latest Version. No additional components, extensions or AI features needed.
You'll need a Google API key (Free Tier). If you don’t have a Google API key, you can sign up here: https://aistudio.google.com/api-keys
This would later be set in .env file as:
GOOGLE_API_KEY="..."
Create a Langfuse account and API key here:
- Signup here: https://us.cloud.langfuse.com/auth/sign-in?targetPath=%2F
- Create a new organization - Bootcamp
- Create a new project - Day1
- Go to Settings -> Under Project Settings -> API Keys -> Create new API Keys -> Create API Keys -> Copy the .env content
This would later be set in .env file as:
LANGFUSE_SECRET_KEY="sk-lf-..."
LANGFUSE_PUBLIC_KEY="pk-lf-..."
LANGFUSE_BASE_URL="https://us.cloud.langfuse.com"
git clone https://github.com/nsbisht/Bootcamp_Repository.gitcd Bootcamp_Repository
cp example.env .env- Open VS Code
- File -> Open Folder -> Navigate and select Bootcamp_Repository -> Open
Add in .env file:
GOOGLE_API_KEY="..."
Add in .env file:
LANGFUSE_SECRET_KEY="sk-lf-..."
LANGFUSE_PUBLIC_KEY="pk-lf-..."
LANGFUSE_BASE_URL="https://us.cloud.langfuse.com"
At the top,
Terminal -> New Terminaluv syncuv run script_1.pyIf you encounter import errors, ensure all dependencies are installed:
uv sync- Verify your
.envfile contains valid API keys - Ensure there are no extra spaces around the
=sign - Check that the
.envfile is in the project root directory
- Verify all three Langfuse environment variables are set correctly
- Check your project settings in the Langfuse dashboard
- Ensure you're using the correct region URL (US:
https://us.cloud.langfuse.com)
Check your version:
python --version
uv --version
git --version