Spaces:
Running
Running
Update rag.py
Browse files
rag.py
CHANGED
@@ -19,6 +19,10 @@ groq_client = Groq(api_key=os.getenv("GROQ_API_KEY"))
|
|
19 |
# Load models and dataset
|
20 |
similarity_model = SentenceTransformer('paraphrase-MiniLM-L6-v2')
|
21 |
|
|
|
|
|
|
|
|
|
22 |
# Load dataset (automatically using the path)
|
23 |
with open('dataset.json', 'r') as f:
|
24 |
dataset = json.load(f)
|
|
|
19 |
# Load models and dataset
|
20 |
similarity_model = SentenceTransformer('paraphrase-MiniLM-L6-v2')
|
21 |
|
22 |
+
# Config
|
23 |
+
HF_DATASET_REPO = "midrees2806/unmatched_queries"
|
24 |
+
HF_TOKEN = os.getenv("HF_TOKEN")
|
25 |
+
|
26 |
# Load dataset (automatically using the path)
|
27 |
with open('dataset.json', 'r') as f:
|
28 |
dataset = json.load(f)
|