Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,22 +36,16 @@ def invoke(openai_api_key, prompt, rag_option):
|
|
36 |
|
37 |
if (RAG_INGESTION):
|
38 |
rag_ingestion(collection)
|
39 |
-
return
|
40 |
else:
|
41 |
"""
|
42 |
-
print("777")
|
43 |
-
search_path = "address.country"
|
44 |
-
|
45 |
-
print("888")
|
46 |
-
# Create a match stage
|
47 |
match_stage = {
|
48 |
"$match": {
|
49 |
-
|
50 |
"accommodates": { "$gt": 1, "$lt": 3}
|
51 |
}
|
52 |
}
|
53 |
|
54 |
-
print("999")
|
55 |
additional_stages = [match_stage]
|
56 |
"""
|
57 |
|
|
|
36 |
|
37 |
if (RAG_INGESTION):
|
38 |
rag_ingestion(collection)
|
39 |
+
return "Done"
|
40 |
else:
|
41 |
"""
|
|
|
|
|
|
|
|
|
|
|
42 |
match_stage = {
|
43 |
"$match": {
|
44 |
+
"address.country": re.compile(r"United States"),
|
45 |
"accommodates": { "$gt": 1, "$lt": 3}
|
46 |
}
|
47 |
}
|
48 |
|
|
|
49 |
additional_stages = [match_stage]
|
50 |
"""
|
51 |
|