File size: 1,476 Bytes
949c084
2dffde8
 
 
 
949c084
2dffde8
949c084
 
cbeaa9c
949c084
 
2dffde8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: Hockey Mind AI Chatbot
emoji: πŸ’
colorFrom: green
colorTo: blue
sdk: gradio
sdk_version: 4.8.0
app_file: app.py
pinned: false
license: mit
---

# πŸ’ Hockey Mind AI Chatbot

An intelligent field hockey coaching assistant that provides personalized advice, training recommendations, and video content suggestions.

## Features

- **Multilingual Support**: English and Dutch language support
- **Role-Based Coaching**: Tailored responses for coaches, players, and trainers
- **Video Recommendations**: AI-powered content suggestions using FAISS similarity search
- **Domain-Specific**: Focused exclusively on field hockey topics
- **Smart Filtering**: Automatic detection of hockey-related vs out-of-domain queries

## Technology Stack

- **Frontend**: Gradio 4.8.0 for interactive web interface
- **AI Model**: OpenRouter API with GPT-4o for intelligent responses
- **Embeddings**: Sentence Transformers with multilingual support
- **Vector Search**: FAISS for fast similarity search
- **Database**: SQLite with pre-computed embeddings

## Usage

Ask questions about:
- Field hockey training and drills
- Shooting techniques (backhand, forehand, drag flicks)
- Penalty corners and set pieces
- Player positioning and strategies
- Equipment and rules
- Youth coaching (U8, U10, etc.)

## Environment Variables

Required for deployment:
- `OPENROUTER_API_KEY`: Your OpenRouter API key
- `DATABASE_PATH`: Path to the hockey video database (defaults to HockeyFood.db)