This repository contains example implementations and reference code for using the Galileo.ai SDK across both Python and TypeScript applications. Galileo helps folks build reliable AI applications across a multitude of tech stacks.
β‘οΈ Sign up for a free account on Galileo.ai.
For comprehensive guides and step-by-step tutorials, check out our Galileo Cookbooks featuring:
- Agent Development - Multi-agent systems, LangGraph workflows, and OpenTelemetry integration
- RAG Applications - MongoDB Atlas, Elasticsearch, and vector search implementations
- Custom Metrics - Domain-specific evaluations and LLM-as-a-Judge patterns
- Production Monitoring - Observability, tracing, and reliability patterns
When you first sign up for Galileo, you will get 2 sample projects created, a simple chatbot, and a multi-agent banking chatbot. The code for these projects is in this repo.
You can read more about these in our Get started with sample projects documentation.
- Simple chatbot using OpenAI/Ollama - Simple chatbot using the OpenAI SDK to interact with OpenAI or Ollama
- Simple chatbot using Anthropic - Simple chatbot using the Anthropic SDK
- Simple chatbot using Azure AI Inference - Simple chatbot using the Azure AI Inference SDK to interact with models deployed to Azure AI Foundry
- Simple chatbot using OpenAI/Ollama - Simple chatbot using the OpenAI SDK to interact with OpenAI or Ollama
- Simple chatbot using Anthropic - Simple chatbot using the Anthropic SDK
- Simple chatbot using Azure AI Inference - Simple chatbot using the Azure AI Inference SDK to interact with models deployed to Azure AI Foundry
- LangChain Agent - Basic LangChain agent with Galileo integration
- LangGraph FSI Agent - Financial services agent with before/after implementations
- LangGraph + OpenTelemetry - π Featured - Comprehensive observability with OpenTelemetry and Galileo
- CrewAI Agent - Multi-agent collaboration using CrewAI framework
- Startup Simulator 3000 - Advanced agent with startup business simulation
- Weather Vibes Agent - Multi-function agent for weather, recommendations, and YouTube videos
- Minimal Agent Example - Simple agent with basic tool usage
- LangGraph FSI Agent - Financial services agent in TypeScript
- Stripe Agent Tool - π³ Agent with Stripe payment processing integration
- Mastra Template CSV to Questions - Galileo tracing with Mastra framework and OpenInference
- Minimal Agent Example - Basic TypeScript agent implementation
- Basic Examples - Simple conversational application with context management
- Sample Project Chatbot - Multi-LLM chatbot with experiment capabilities:
- Basic Examples - Fundamental chatbot patterns in TypeScript
- Sample Project Chatbot - Multi-LLM chatbot implementations:
- CLI RAG Demo - Command-line RAG with chunk utilization challenges
- Elastic Chatbot RAG App - Full-stack RAG application with Elasticsearch
- Healthcare Support Portal - Domain-specific RAG for healthcare queries
- Basic RAG Implementation - Fundamental RAG patterns in TypeScript
- Dataset Experiments - Managing test data and running controlled experiments
- Dataset Experiments - Dataset management and experimentation in TypeScript
- Galileo SDK Documentation - SDK documentation
- Galileo API Reference - TypeScript SDK package
- Galileo Release Notes
- Galileo.ai Documentation - Complete platform overview
- Galileo Cookbooks - π₯ Step-by-step tutorials and guides
- Python SDK Documentation - Python SDK reference
- TypeScript SDK Documentation - TypeScript SDK reference
- API Reference - REST API documentation
- Release Notes - Latest updates and features
- A free account on Galileo.ai
- A free Galileo API key (found in the Galileo.ai dashboard)
- Agent Development - Build AI systems that can use tools, make decisions, and collaborate
- Observability - Comprehensive tracing with OpenTelemetry and Galileo integration
- RAG Applications - Combine knowledge bases with LLMs for enhanced responses
- Multi-LLM Support - Work with OpenAI, Anthropic, Azure, and local models like Ollama
- Production Patterns - Error handling, evaluation, and monitoring best practices
- π€ AI Agents - Tool-using systems with decision-making capabilities
- Featured: LangGraph + OpenTelemetry - Complete observability setup
- Stripe Agent - Payment processing integration
- Weather Vibes - Multi-function agent with external APIs
- π¬ Chatbots - Conversational applications with context management
- π RAG Systems - Knowledge retrieval and generation pipelines
- π Data & Experiments - Testing, evaluation, and dataset management
Each directory contains standalone examples with their own setup instructions and dependencies.
- Create a free account on Galileo.ai and obtain an API key
- Install the Galileo SDK for your language of choice
- Clone this repository
- Navigate to the example you want to run
- Install dependencies
- Run the example
Have a great example of how to use Galileo? Or rather β have something you'd like to see how it works with Galileo? Please see our Contributing Guide for detailed information on how to:
- Open an issue to discuss your idea
- Add new examples
- Follow our coding standards
- Submit pull requests
- Test your contributions
sdk-examples/
βββ python/ # π Python Examples (20+ projects)
β βββ agent/ # AI Agents with tool usage
β β βββ langchain-agent/
β β βββ langgraph-fsi-agent/
β β βββ langgraph-otel/ # β Featured: OpenTelemetry integration
β β βββ crew-ai/
β β βββ startup-simulator-3000/
β β βββ weather-vibes-agent/
β β βββ minimal-agent-example/
β βββ chatbot/ # Conversational AI applications
β β βββ basic-examples/
β β βββ sample-project-chatbot/
β β βββ openai-ollama/
β β βββ anthropic/
β β βββ azure-inference/
β βββ rag/ # Retrieval-Augmented Generation
β β βββ cli-rag-demo/
β β βββ elastic-chatbot-rag-app/
β β βββ healthcare-support-portal/
β βββ dataset-experiments/ # Data management and testing
β
βββ typescript/ # π TypeScript Examples (15+ projects)
β βββ agent/ # AI Agents in TypeScript
β β βββ langgraph-fsi-agent/
β β βββ stripe-agent-tool/ # π³ Payment processing
β β βββ mastra-template-csv-to-questions/
β β βββ minimal-agent-example/
β βββ chatbot/ # TypeScript chatbots
β β βββ basic-examples/
β β βββ sample-project-chatbot/
β β βββ openai-ollama/
β β βββ anthropic/
β β βββ azure-inference/
β βββ rag/ # RAG implementations
β βββ datasets-experiments/ # Dataset management
β
βββ .github/ # GitHub templates and CI/CD
The TypeScript examples demonstrate how to integrate Galileo.ai into your Node.js/TypeScript applications. The SDK provides tools for:
- Tracing LLM interactions
- Monitoring retrieval operations in RAG applications
- Tracking agent tool usage and workflows
- Evaluating model outputs
npm install galileo
The Python examples show how to use the Galileo.ai Python SDK in your applications, covering similar use cases as the TypeScript examples.
pip install galileo