Spaces:
Running
Running
Update custom_utils.py
Browse files- custom_utils.py +6 -4
custom_utils.py
CHANGED
@@ -19,10 +19,12 @@ def rag_ingestion(collection):
|
|
19 |
collection.insert_many(dataset)
|
20 |
return "Manually create a vector search index (in free tier, this feature is not available via SDK)"
|
21 |
|
22 |
-
def rag_retrieval_naive(openai_api_key,
|
23 |
-
prompt,
|
24 |
-
|
25 |
-
|
|
|
|
|
26 |
vector_index="vector_index"):
|
27 |
# Naive RAG: Semantic search
|
28 |
|
|
|
19 |
collection.insert_many(dataset)
|
20 |
return "Manually create a vector search index (in free tier, this feature is not available via SDK)"
|
21 |
|
22 |
+
def rag_retrieval_naive(openai_api_key,
|
23 |
+
prompt,
|
24 |
+
accomodates,
|
25 |
+
bedrooms,
|
26 |
+
db,
|
27 |
+
collection,
|
28 |
vector_index="vector_index"):
|
29 |
# Naive RAG: Semantic search
|
30 |
|