Spaces:
Sleeping
Sleeping
Bharath Gajula
commited on
Commit
·
7a9f0a8
1
Parent(s):
297ce1a
Add README.md with HuggingFace Spaces configuration
Browse files
README.md
CHANGED
@@ -1,6 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Hybrid Search Chatbot
|
2 |
|
3 |
-
A Streamlit app for hybrid search: SQL (
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
## Quick Start
|
6 |
|
@@ -17,7 +33,43 @@ A Streamlit app for hybrid search: SQL (Chinook DB) and semantic (RAG, AG News/C
|
|
17 |
streamlit run app.py
|
18 |
```
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
---
|
21 |
|
22 |
-
|
23 |
-
|
|
|
|
1 |
+
---
|
2 |
+
title:rag Chatbot
|
3 |
+
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
+
sdk: streamlit
|
7 |
+
sdk_version: "1.28.1"
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
---
|
11 |
+
|
12 |
# Hybrid Search Chatbot
|
13 |
|
14 |
+
A Streamlit app for hybrid search: SQL (Sakila DB) and semantic (RAG, AG News/ChromaDB).
|
15 |
+
|
16 |
+
## Features
|
17 |
+
|
18 |
+
- **SQL Mode**: Natural language queries on Sakila movie database
|
19 |
+
- **RAG Mode**: Semantic search on AG News articles with ChromaDB
|
20 |
|
21 |
## Quick Start
|
22 |
|
|
|
33 |
streamlit run app.py
|
34 |
```
|
35 |
|
36 |
+
## Configuration
|
37 |
+
|
38 |
+
- Edit `.env` for API keys:
|
39 |
+
```
|
40 |
+
GOOGLE_API_KEY=your-google-api-key-here
|
41 |
+
```
|
42 |
+
|
43 |
+
## Dependencies
|
44 |
+
|
45 |
+
See `requirements.txt` for full list:
|
46 |
+
- streamlit
|
47 |
+
- chromadb
|
48 |
+
- langchain
|
49 |
+
- langchain-google-genai
|
50 |
+
- sentence-transformers
|
51 |
+
- datasets
|
52 |
+
|
53 |
+
## Usage
|
54 |
+
|
55 |
+
1. Select mode from sidebar (SQL or RAG)
|
56 |
+
2. Ask questions in natural language
|
57 |
+
3. Get AI-powered answers
|
58 |
+
|
59 |
+
### Example Questions
|
60 |
+
|
61 |
+
**SQL Mode:**
|
62 |
+
- How many films are there?
|
63 |
+
- Show me the top 5 longest films
|
64 |
+
- Which actors have the most films?
|
65 |
+
|
66 |
+
**RAG Mode:**
|
67 |
+
- What's happening with oil prices?
|
68 |
+
- Tell me about technology news
|
69 |
+
- Any sports updates?
|
70 |
+
|
71 |
---
|
72 |
|
73 |
+
Created by Bharath Gajula | Powered by Gemini & LangChain
|
74 |
+
|
75 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|