Skip to content

abtsousa/pitchpal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PitchPal

PitchPal is an interactive command-line AI assistant for football (soccer) data, powered by LLMs and LangGraph. It supports streaming responses, classification, and integrates with various football data tools.

Features

  • Interactive QA loop for football-related queries
  • Streaming LLM responses
  • Arize Phoenix tracing and logging support
  • Modular tool integration for football statistics, fixtures, odds, and more

Requirements

  • Python 3.13+
  • Phoenix (optional, for tracing)

Install dependencies with uv:

uv sync --frozen

Activate the virtual environment:

source .venv/bin/activate

Make sure to have the following environment variables set in your shell or in a .env file:

export FOOTBALL_API_KEY=your_football_api_key # required
export OPENAI_API_KEY=your_openai_api_key # OpenAI model
export GOOGLE_API_KEY=your_google_api_key #Google model

Alternative: build with docker:

docker build -t pitchpal .
docker run -it --rm -e FOOTBALL_API_KEY=your_football_api_key -e OPENAI_API_KEY=your_openai_api_key -e GOOGLE_API_KEY=your_google_api_key pitchpal

You can also set the environment variables in a .env file in the root directory and run docker with:

docker run -it --rm --env-file .env pitchpal

Usage

Run the main script:

python main.py [--phoenix-endpoint URL] [--debug] [--log] [--model google|openai] [--show-classification]

Arguments

  • --phoenix-endpoint Phoenix endpoint URL (optional)
  • --debug Enable debug logging
  • --log Enable logging (critical level if off, info/debug if on)
  • --model Choose the model to use (google or openai, default: openai)
  • --show-classification Show guardrailing node outputs in yellow

Type your football-related questions at the prompt. Type exit or quit to leave.

Project Structure

  • main.py – Main entry point and CLI
  • agent/ – Agent logic and configuration
  • tools/ – Football data tools
  • utils/ – Utility functions
  • test/ – Tests
  • cache/ – Cached data

License

GPLv3

About

An AI agent for football (soccer) data.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors