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

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.

πŸ“‹ 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.

πŸ€– Agent Examples

πŸ’¬ Chatbot Examples

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

πŸ“Š Dataset & Experiment Examples

πŸ“š Additional Resources

πŸ“– Read the Docs

πŸ“¦ Requirements

🍎 Use Cases

The examples cover several common LLM application patterns:

  • Chatbots: Simple conversational applications
  • RAG: Retrieval-Augmented Generation applications that combine knowledge bases with LLMs
  • Agents: Systems where LLMs use tools and make decisions
    • Weather Vibes Agent: A multi-function agent that provides weather info, recommendations, and matching YouTube videos
  • Datasets & Experiments: Managing test data and running controlled experiments

🚒 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/
β”œβ”€β”€ typescript/         # TypeScript implementation examples
β”‚   β”œβ”€β”€ agent/          # Agent implementation using Galileo SDK
β”‚   β”œβ”€β”€ chatbot/        # Simple chatbot example
β”‚   β”œβ”€β”€ datasets-experiments/ # Dataset and experiment examples
β”‚   └── rag/            # Retrieval-Augmented Generation examples
β”‚
β”œβ”€β”€ python/             # Python implementation examples
β”‚   β”œβ”€β”€ agent/          # Agent implementation using Galileo SDK
β”‚   β”œβ”€β”€ chatbot/        # Simple chatbot example
β”‚   β”œβ”€β”€ dataset-experiments/ # Dataset and experiment examples
β”‚   └── rag/            # Retrieval-Augmented Generation examples

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7