File size: 2,083 Bytes
641bcfa
aaa201d
 
 
 
641bcfa
aaa201d
67ac29c
641bcfa
 
aaa201d
641bcfa
 
aaa201d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
04ca737
aaa201d
 
04ca737
 
 
 
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
title: LoL Multi-Agent Coach
emoji: ๐ŸŽฎ
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: "6.2.0"
app_file: app.py
pinned: false
license: mit
short_description: AI-powered League of Legends coaching system
---

# League of Legends Multi-Agent Coach ๐ŸŽฎ

A sophisticated multi-agent AI coaching system for League of Legends that provides:
- ๐ŸŽฏ Match analysis and performance insights
- ๐Ÿ› ๏ธ Build recommendations with real-time meta data
- ๐ŸŽฌ Video guides and educational content
- ๐Ÿ“š LoL knowledge base with FAISS vector search
- ๐ŸŽฒ Pregame strategy (bans, picks, team comp analysis)

## Features

- **5 Specialized AI Agents** working collaboratively
- **14 Tools** for comprehensive coaching
- **Real-time data** from Riot API, Tavily, and YouTube
- **FAISS Vector Database** for knowledge retrieval

## Setup

This Space requires three API keys to be set as Secrets:

1. **OPENAI_API_KEY** - Get from https://platform.openai.com/
2. **RIOT_API_KEY** - Get from https://developer.riotgames.com/
3. **TAVILY_API_KEY** - Get from https://tavily.com/

Optional: Configure your summoner information:
- **SUMMONER_NAME** - Your League summoner name
- **SUMMONER_TAG** - Your tagline (e.g., NA1)
- **REGION** - Your region (e.g., na1)

## Usage

Simply type your questions in the chat interface:
- "Analyze my last 5 games"
- "What's the best build for Yasuo?"
- "Find Yasuo vs Zed matchup videos"
- "What should I ban if playing mid?"
- "Analyze this team comp: Darius, Lee Sin, Ahri, Jinx, Thresh"

## Technology Stack

- **LangChain/LangGraph** - Multi-agent framework
- **OpenAI GPT-4** - Language model
- **Gradio 6.2.0** - Web interface
- **FAISS** - Vector database (optional, see FAISS_SETUP.md)
- **Riot API** - Live game data
- **Tavily** - Real-time web search

## Note: FAISS Knowledge Base

The FAISS knowledge base is **optional** and provides enhanced LoL knowledge retrieval. If not available, the system will work perfectly using Tavily web search instead. See [FAISS_SETUP.md](./FAISS_SETUP.md) for upload instructions if you want to enable it.