Skip to content

Examples on how to get started with the Galileo SDKs for AI Evaluation and Observability (both in Python and Typescript)

Notifications You must be signed in to change notification settings

rungalileo/sdk-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“– Galileo.ai SDK Examples

PRs Welcome Last Updated Examples

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.

🍳 Cookbooks & Tutorials

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

πŸ“‹ Table of Contents

Sample projects

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.

Python

Typescript

πŸ€– Agent Examples

Python Agents 🐍

TypeScript Agents πŸ“œ

πŸ’¬ Chatbot Examples

Python Chatbots 🐍

TypeScript Chatbots πŸ“œ

πŸ” RAG (Retrieval-Augmented Generation) Examples

Python RAG 🐍

TypeScript RAG πŸ“œ

πŸ“Š Dataset & Experiment Examples

Python Datasets 🐍

TypeScript Datasets πŸ“œ

πŸ“š Additional Resources

πŸ“– Read the Docs

Core Documentation

πŸ“¦ Requirements

πŸŽ† Key Features & Use Cases

πŸš€ What You'll Learn

  • 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

🎯 Application Patterns Covered

  • πŸ€– 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

🚒 Get Started

Each directory contains standalone examples with their own setup instructions and dependencies.

  1. Create a free account on Galileo.ai and obtain an API key
  2. Install the Galileo SDK for your language of choice
  3. Clone this repository
  4. Navigate to the example you want to run
  5. Install dependencies
  6. Run the example

🀝 Contributing

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

πŸ—ΊοΈ Repository Structure

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

TypeScript Examples

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

Setup

npm install galileo

Python Examples

The Python examples show how to use the Galileo.ai Python SDK in your applications, covering similar use cases as the TypeScript examples.

Setup

pip install galileo

About

Examples on how to get started with the Galileo SDKs for AI Evaluation and Observability (both in Python and Typescript)

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9