Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,65 +1,70 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
|
| 5 |
๐ **Live Demo:** https://huggingface.co/spaces/siddheshrj/Stranger_things_rag
|
| 6 |
|
| 7 |
---
|
| 8 |
|
| 9 |
-
## ๐ What this
|
| 10 |
-
|
| 11 |
-
This Space is a **RAG-based chatbot** that:
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
-
|
| 17 |
-
-
|
| 18 |
-
- iconic traits & personality
|
| 19 |
-
|
| 20 |
-
Example query:
|
| 21 |
-
> **"Who is Mike Wheeler?"**
|
| 22 |
|
| 23 |
---
|
| 24 |
|
| 25 |
-
##
|
| 26 |
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
| 30 |
-
2. The system searches the most relevant text chunks using embeddings
|
| 31 |
-
3. The LLM generates the final response using that context
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
|
|
|
| 38 |
|
| 39 |
-
|
| 40 |
-
โ
Fast semantic search (retrieval)
|
| 41 |
-
โ
Context-grounded answers
|
| 42 |
-
โ
Character-based response formatting
|
| 43 |
-
โ
Hosted on Hugging Face Spaces
|
| 44 |
|
| 45 |
---
|
| 46 |
|
| 47 |
## ๐ ๏ธ Tech Stack
|
| 48 |
|
| 49 |
-
- **LangChain** (RAG
|
| 50 |
-
- **Vector Store** (for similarity search)
|
| 51 |
- **Embeddings**
|
| 52 |
-
- **
|
| 53 |
-
- **
|
|
|
|
|
|
|
| 54 |
|
| 55 |
---
|
| 56 |
|
| 57 |
-
##
|
| 58 |
|
| 59 |
### Easy
|
| 60 |
- Who is Eleven?
|
| 61 |
- What is the Upside Down?
|
| 62 |
-
- Who are Mikeโs friends?
|
| 63 |
|
| 64 |
### Medium
|
| 65 |
- Explain Hawkins Lab in short
|
|
@@ -71,32 +76,17 @@ This makes answers more **reliable**, **context-aware**, and reduces hallucinati
|
|
| 71 |
|
| 72 |
---
|
| 73 |
|
| 74 |
-
## ๐ Project Goal
|
| 75 |
-
|
| 76 |
-
The goal of this project is to build a clean **RAG pipeline** and deploy it as an interactive chatbot,
|
| 77 |
-
showing practical skills in:
|
| 78 |
-
|
| 79 |
-
โ
Prompt engineering
|
| 80 |
-
โ
LangChain pipelines
|
| 81 |
-
โ
Retrieval + embeddings
|
| 82 |
-
โ
Deployment (Docker + Hugging Face Spaces)
|
| 83 |
-
|
| 84 |
-
---
|
| 85 |
-
|
| 86 |
## ๐ฎ Future Improvements
|
| 87 |
|
| 88 |
- Add chat memory (multi-turn conversation)
|
| 89 |
- Add citations / sources in answers
|
| 90 |
-
- Improve retrieval accuracy
|
| 91 |
-
-
|
| 92 |
-
- Multimodal
|
| 93 |
|
| 94 |
---
|
| 95 |
|
| 96 |
## ๐ค Author
|
| 97 |
|
| 98 |
**Siddhesh Jajurley**
|
| 99 |
-
|
| 100 |
-
---
|
| 101 |
-
|
| 102 |
-
โญ If you like this Space, give it a **Like** on Hugging Face!
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Hawkins Archive RAG (Stranger Things)
|
| 3 |
+
emoji: ๐
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: red
|
| 6 |
+
sdk: docker
|
| 7 |
+
sdk_version: "3.10"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: true
|
| 10 |
+
---
|
| 11 |
|
| 12 |
+
# ๐ Hawkins Archive RAG โ Stranger Things Chatbot
|
| 13 |
+
|
| 14 |
+
A **Retrieval-Augmented Generation (RAG)** chatbot that answers questions about the **Stranger Things universe** using **semantic search + context-grounded generation**.
|
| 15 |
|
| 16 |
๐ **Live Demo:** https://huggingface.co/spaces/siddheshrj/Stranger_things_rag
|
| 17 |
|
| 18 |
---
|
| 19 |
|
| 20 |
+
## ๐ What this Space does
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
This chatbot:
|
| 23 |
+
- Takes your question (example: **"Who is Mike Wheeler?"**)
|
| 24 |
+
- Retrieves the most relevant context from the Stranger Things knowledge base
|
| 25 |
+
- Generates a natural response using an LLM
|
| 26 |
+
- Ensures answers are structured with **relationships, role/passion, and iconic traits**
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
---
|
| 29 |
|
| 30 |
+
## โจ Features
|
| 31 |
|
| 32 |
+
โ
Context-aware answers using RAG (reduces hallucination)
|
| 33 |
+
โ
Stranger Things themed UI (Hawkins Lab vibe)
|
| 34 |
+
โ
Fast retrieval using embeddings + similarity search
|
| 35 |
+
โ
Character-focused response formatting
|
| 36 |
+
โ
Hosted & deployed on Hugging Face Spaces (Docker)
|
| 37 |
|
| 38 |
+
---
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
## ๐ง How RAG Works (Simple)
|
| 41 |
|
| 42 |
+
RAG = **Retrieve + Generate**
|
| 43 |
|
| 44 |
+
1. **Retrieve:** find relevant context chunks using embeddings
|
| 45 |
+
2. **Generate:** pass context + question to LLM for final answer
|
| 46 |
|
| 47 |
+
This makes responses more accurate and grounded compared to plain chatbots.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
---
|
| 50 |
|
| 51 |
## ๐ ๏ธ Tech Stack
|
| 52 |
|
| 53 |
+
- **LangChain** (RAG pipeline)
|
|
|
|
| 54 |
- **Embeddings**
|
| 55 |
+
- **Vector Database / Similarity Search**
|
| 56 |
+
- **LLM API**
|
| 57 |
+
- **Docker**
|
| 58 |
+
- **Hugging Face Spaces**
|
| 59 |
|
| 60 |
---
|
| 61 |
|
| 62 |
+
## โ
Example Questions to Try
|
| 63 |
|
| 64 |
### Easy
|
| 65 |
- Who is Eleven?
|
| 66 |
- What is the Upside Down?
|
| 67 |
+
- Who are Mikeโs best friends?
|
| 68 |
|
| 69 |
### Medium
|
| 70 |
- Explain Hawkins Lab in short
|
|
|
|
| 76 |
|
| 77 |
---
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
## ๐ฎ Future Improvements
|
| 80 |
|
| 81 |
- Add chat memory (multi-turn conversation)
|
| 82 |
- Add citations / sources in answers
|
| 83 |
+
- Improve retrieval accuracy (better chunking + reranking)
|
| 84 |
+
- Multi-agent support (MCP + tools)
|
| 85 |
+
- Multimodal extension (image + text)
|
| 86 |
|
| 87 |
---
|
| 88 |
|
| 89 |
## ๐ค Author
|
| 90 |
|
| 91 |
**Siddhesh Jajurley**
|
| 92 |
+
Hugging Face: https://huggingface.co/siddheshrj
|
|
|
|
|
|
|
|
|