Spaces:
Sleeping
Sleeping
tonyliu404
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def vector_search(user_query, collection):
|
|
99 |
def mongo_retriever(query):
|
100 |
print("mongo retriever query: ", query)
|
101 |
documents = vector_search(query, mongo_collection)
|
102 |
-
print("
|
103 |
return documents
|
104 |
|
105 |
|
@@ -171,9 +171,8 @@ rag_chain = (
|
|
171 |
)
|
172 |
|
173 |
def get_response(query):
|
174 |
-
|
175 |
-
|
176 |
-
return temp
|
177 |
|
178 |
|
179 |
##############################################
|
|
|
99 |
def mongo_retriever(query):
|
100 |
print("mongo retriever query: ", query)
|
101 |
documents = vector_search(query, mongo_collection)
|
102 |
+
print("Documents Retrieved: ", documents)
|
103 |
return documents
|
104 |
|
105 |
|
|
|
171 |
)
|
172 |
|
173 |
def get_response(query):
|
174 |
+
print("get_response query: ", query)
|
175 |
+
return rag_chain.invoke(query)
|
|
|
176 |
|
177 |
|
178 |
##############################################
|