Spaces:
Running
Running
Rohit Rajpoot
commited on
Commit
·
1799ab9
1
Parent(s):
749d4de
add changes to README file
Browse files
README.md
CHANGED
@@ -1,35 +1,49 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
colorTo: green
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: "1.46.0"
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
---
|
11 |
|
12 |
-
|
13 |
|
14 |
-
|
|
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
- CLI commands: `hello`, `heatmap`, `chat`
|
20 |
-
- Live demo hosted via Docker on Hugging Face Spaces
|
21 |
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
|
25 |
-
|
|
|
26 |
|
27 |
---
|
28 |
|
29 |
-
##
|
30 |
|
31 |
-
###
|
32 |
|
33 |
```bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
35 |
streamlit run app.py
|
|
|
1 |
+
# RepoSage™ Chatbot
|
2 |
+
|
3 |
+
An MVP AI chatbot built in AML-3304 using Bayesian embeddings, a simple transformer block, and DeepSeek-R1 integration — all wired up with a GitHub-driven CI/CD pipeline to Hugging Face Spaces.
|
4 |
+
|
|
|
|
|
|
|
|
|
|
|
5 |
---
|
6 |
|
7 |
+
## 🚀 Live Demo
|
8 |
|
9 |
+
Try it out live:
|
10 |
+
👉 https://huggingface.co/spaces/rohitrajpoot/reposage-chatbot
|
11 |
|
12 |
+
---
|
13 |
|
14 |
+
## 📖 Overview
|
|
|
|
|
15 |
|
16 |
+
**What it is:**
|
17 |
+
- A command-line & web demo (via Streamlit) that shows:
|
18 |
+
1. **Embedding Q&A**: nearest‐neighbor lookup in a trained token embedding (`assist/chat.py`)
|
19 |
+
2. **Bayesian Q&A**: frequency‐based “co-occurrence” embedding lookup (`assist/bayes_chat.py`)
|
20 |
+
3. **Transformer Demo**: single‐block transformer next‐token prediction (`assist/transformer_demo.py`)
|
21 |
+
4. **DeepSeek-R1**: calls to a 1.3B-parameter model for generative Q&A (wrapped to skip gracefully in Colab)
|
22 |
|
23 |
+
**Why it matters:**
|
24 |
+
- Demonstrates core GPT “atoms” (token → embedding → attention → generation)
|
25 |
+
- Shows an end-to-end MLOps flow: local dev → GitHub Actions → Docker → Hugging Face Spaces
|
26 |
|
27 |
---
|
28 |
|
29 |
+
## ⚙️ Installation
|
30 |
|
31 |
+
### Local (macOS/Linux)
|
32 |
|
33 |
```bash
|
34 |
+
git clone https://github.com/rohitrajpoot/reposage.git
|
35 |
+
cd reposage
|
36 |
+
|
37 |
+
# 1) Create & activate venv
|
38 |
+
python3 -m venv .venv
|
39 |
+
source .venv/bin/activate
|
40 |
+
|
41 |
+
# 2) Install dependencies
|
42 |
+
pip install --upgrade pip setuptools wheel
|
43 |
pip install -r requirements.txt
|
44 |
+
|
45 |
+
# 3) Smoke-test CLI
|
46 |
+
python -m assist.main chat "hello world"
|
47 |
+
|
48 |
+
# 4) Run Streamlit demo
|
49 |
streamlit run app.py
|