File size: 1,464 Bytes
c9764b1
 
 
 
0a6b400
c9764b1
b55e0b8
c9764b1
 
 
 
b53c482
 
 
 
 
 
 
 
 
 
 
 
 
c9764b1
 
 
b53c482
 
 
 
 
 
 
 
 
 
c9764b1
 
 
b53c482
 
 
 
 
 
 
c9764b1
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
---
title: "Sports Chatbot"
emoji: "🏀"
colorFrom: "blue"
colorTo: "yellow"
sdk: "gradio"  # Change to "streamlit" if you're using Streamlit instead of Gradio
sdk_version: "5.4.0"  # Replace with the Gradio version you are using
app_file: app.py  # Update this to the main file of your app if it’s named differently
pinned: false
---

# Sports Chatbot

This is a sports-focused chatbot that can answer questions about Ice Hockey, Baseball, American Football, Soccer, and Basketball. The chatbot uses the ESPN API data and is powered by a RAG (Retrieval-Augmented Generation) system with Mistral-7B.

## Features

- Answers questions about multiple sports
- Uses up-to-date ESPN API data
- Powered by Mistral-7B model
- Retrieval-augmented generation for accurate responses

## Usage

1. Type your sports-related question in the text box.
2. Click "Get Answer" or press Enter.
3. Wait for the response to be generated.

## Examples

Try asking questions like:
- "Who won the NBA championship in 2023?"
- "What are the basic rules of ice hockey?"
- "Tell me about the NFL playoffs format."

## Limitations

- The knowledge base is limited to ESPN API data.
- Responses may take a few seconds to generate.
- Only covers the five major sports mentioned above.

## Technical Details

The application uses:
- Gradio for the interface
- Sentence Transformers for embedding generation
- Mistral-7B (GGUF) for text generation
- RAG pipeline for context-aware responses