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.
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
- 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
-
TypeScript
- 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
- Python Agents
- LangChain Agent - Basic LangChain agent with Galileo integration
- LangGraph FSI Agent - Financial services agent with before/after implementations
- Minimal Agent Example - Simple agent with basic tool usage
- Weather Vibes Agent - Multi-function agent for weather, recommendations, and YouTube videos
- TypeScript Agents
- Minimal Agent - Basic TypeScript agent implementation
- LangGraph FSI Agent - Financial services agent
- Python Chatbot Examples - Simple conversational application with context management
- Python LLM Chatbot with experiment - A chatbot that supports a range of LLMs, and can be run as an experiment in a unit test.
- TypeScript Chatbot - Basic chatbot implementation in TypeScript
- Python RAG
- CLI RAG Demo - Command-line RAG with chunk utilization challenges
- Elastic Chatbot RAG App - Full-stack RAG application with Elasticsearch
- TypeScript RAG - Basic RAG implementation in TypeScript
- Python Datasets - Managing test data and running controlled experiments
- TypeScript Datasets - Dataset management in TypeScript
- Galileo SDK Documentation - Comprehensive SDK documentation
- Galileo SDK Package - TypeScript SDK package
- Galileo.ai Documentation
- Galileo.ai Python SDK Documentation
- Galileo.ai TypeScript SDK Documentation
- A free account on Galileo.ai
- A free Galileo API key (found in the Galileo.ai dashboard)
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
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/
βββ 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
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