Get the code
/python/agent/langgraph-fsi-agent/after/ or /typescript/agent/langgraph-fsi-agent/ folder.Evaluate the app
The sample project comes with a Log stream pre-populated with a set of traces for some sample interactions with the chatbot - some asking relevant questions, some asking questions unrelated to the banking agents capabilities.Investigate the Log stream
Navigate to the Default Log stream by selecting this project, and selecting the Default Log stream in the dashboard.

Get insights
Galileo has an Insights Engine that reviews your traces and metrics, and gives suggestions to improve your application. To generate insights, select the Log Stream Insights button.

Summary The supervisor agent exhibits inconsistent behavior that undermines the multi-agent system’s effectiveness. In a credit score inquiry, the supervisor correctly identified the query type and transferred it to the credit-score-agent, which successfully retrieved the user’s credit score (550) and provided helpful context about the score’s meaning. However, when control returned to the supervisor, it responded with ‘I don’t know’ despite the specialist having successfully completed the task. This creates a frustrating user experience where the system retrieves the requested information but then claims ignorance, potentially making users think the system is broken or unreliable. Suggestions Ensure the supervisor agent properly processes and relays the results from specialist agents instead of defaulting to ‘I don’t know’ responses.To see how you can use these insights to improve the app, get the code and try some different agent prompts.
Run the sample app
You can run the sample app to generate more traces, and test out different agent prompts.Prerequisites
To run the code yourself to generate more traces, you will need:- Access to an OpenAI compatible API, such as
- An OpenAI API key
- Access to an OpenAI compatible API, such as Google Vertex
- Ollama installed locally with a model downloaded
- A Pinecone account. The free Starter tier is more than enough for this project. You will need your Pinecone API key.
- Either Python 3.10 or later, or Node installed
-
An integration with an LLM configured. If you don’t have an integration configured, then:
2
Add an integration
Locate the LLM provider you are using (or specify a custom integration), then select the +Add Integration button.
3Add settings
Specify settings for your integration (such as an API key), then select Save changes.
Get the code
Clone the SDK examples repo
Navigate to the relevant project folder
after. If you want to learn more about adding logging with Galileo to a LangGraph app, check out the add evaluations to a multi-agent LangGraph application cookbook.SDK Examples
Set up Pinecone
This project uses Pinecone as a vector database to power a RAG agent that retrieves data around the fictional credit cards offered by a bank. Before you can run the app, you will need to upload the documents.Configure environment variables
.env.example file. Rename this file to .env and populate the PINECONE_API_KEY value. You can leave the other values for now as you will populate them laterUpload the documents
scripts folder. Run this script to create a new index in Pinecone and upload the documents.Run the code
Install required dependencies
Configure environment variables
.env file, populate the Galileo values:Run the project

- The different credit cards offered by the bank
- Your credit score
Improve the app
The insights you viewed earlier suggested improving how the supervisor agent processes messages, especially with credit scores. You can try this out to see what issues might occur:Run the sample app as an experiment
Galileo allows you to run experiments against datasets of known data, generating traces in an experiment Log stream and evaluating these for different metrics. Experiments allow you to take a known set of inputs and evaluate different prompts, LLMs, or versions of your apps. This sample project has a unit test that runs the chatbot against a pre-defined dataset, containing a mixture of sensible and irrelevant questions:Run the unit test
Evaluate the experiment

Try different supervisor agent prompts
Compare experiments

Next steps
Logging with the SDKs
Learn how to log experiments
Galileo logger
Log decorator
Galileo context
How-to guides
Log Using the OpenAI Wrapper
Python
Log Using the @log Decorator
Python
Create Traces and Spans
Python
