Lab 06: Observability with LangFuse and Evaluation with RAGAS
This directory contains notebooks and resources to learn about observability and evaluation of AI agents using LangFuse and RAGAS.

Contents
- 06_Observability_with_LangFuse_and_Evaluation_with_RAGAS.ipynb: Main notebook that demonstrates how to implement observability and evaluation for a restaurant recommendation agent.
- restaurant-data/: Directory with restaurant data in DOCX format.
Description
In these notebooks you will learn:
- What observability is and why it's important for AI agents
- How to create a local vector database from data files
- How to build a restaurant recommendation agent with Strands Agent
- How to set up LangFuse for observability and tracing
- How to use RAGAS to evaluate the quality of agent responses
- How to send evaluation results to LangFuse
Observability Components
- Metrics: Essential for understanding agent performance
- Traces: Provide detailed information about agent execution
- Logs: Visibility into agent operations
- Evaluation: Measurement of agent performance
Requirements
See the requirements.txt file for necessary dependencies.
Getting Started
Create a Python virtual environment:
python -m venv .venvActivate the virtual environment:
- On Windows:
.venv\Scripts\activate - On macOS/Linux:
source .venv/bin/activate
- On Windows:
Install dependencies:
pip install -r requirements.txtCreate an account on LangFuse
Get your LangFuse API keys
Open one of the notebooks in Jupyter or a compatible environment:
jupyter notebookFollow the step-by-step instructions in the notebook