Deep Diver Setup: Containerized
For developers who want to run the code with minimal local dependencies using containers.
Prerequisites
- Development experience with basic command line and containerization
- Container runtime (Docker, Podman, Colima, etc.) installed and running
- Git installed
Before the Workshop
1. Clone and navigate to the repository
2. Prepare environment file
3. Test the setup
The container should build, but fail with an error about missing environment variables - this is correct behavior unless you've added your own API keys. You'll add the workshop API keys later.
4. Stop the container
5. Optional: Set up your own LangSmith account
If you want to debug your own traces instead of using shared workshop access:
- Sign up for a free account at https://smith.langchain.com
- Get your API key from the account settings
- Add
LANGCHAIN_API_KEY
to your.env
file
During the Workshop
1. Get latest code
2. Add API keys (provided during workshop)
Edit .env
file with the API keys we provide.
3. Start the application
4. Access the application
The application will start and print a URL in the console. Click the link to access the Chainlit interface.
Debugging and Observability
You'll participate in debugging exercises using LangSmith:
- Shared access: We'll provide credentials to view workshop traces
- Your own traces: If you set up your own account above, you'll see your own traces
LangSmith access: https://smith.langchain.com
After the Workshop
Cleanup
# Stop and remove containers
docker-compose down
# Remove containers and image
export IMAGE="rag-beyond-the-basics-chainlit-gui"
docker rm -f $(docker ps -a -q --filter "ancestor=$IMAGE") || echo "No containers are using $IMAGE"
docker rmi -f $IMAGE
# Delete the entire repository (removes all dependencies)
cd ..
rm -rf rag-beyond-the-basics
Ready to dive deep! 🐋