Spaces:
Sleeping
Sleeping
Update rag.py
Browse files
rag.py
CHANGED
|
@@ -20,6 +20,13 @@ similarity_model = SentenceTransformer('paraphrase-MiniLM-L6-v2')
|
|
| 20 |
HF_DATASET_REPO = "midrees2806/unmatched_queries"
|
| 21 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
# Load local dataset
|
| 24 |
try:
|
| 25 |
with open('dataset.json', 'r') as f:
|
|
|
|
| 20 |
HF_DATASET_REPO = "midrees2806/unmatched_queries"
|
| 21 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 22 |
|
| 23 |
+
# Greeting list
|
| 24 |
+
GREETINGS = [
|
| 25 |
+
"hi", "hello", "hey", "good morning", "good afternoon", "good evening",
|
| 26 |
+
"assalam o alaikum", "salam", "aoa", "hi there",
|
| 27 |
+
"hey there", "greetings"
|
| 28 |
+
]
|
| 29 |
+
|
| 30 |
# Load local dataset
|
| 31 |
try:
|
| 32 |
with open('dataset.json', 'r') as f:
|