Spaces:
Sleeping
Sleeping
Update custom_utils.py
Browse files- custom_utils.py +2 -2
custom_utils.py
CHANGED
@@ -229,11 +229,11 @@ def get_remove_embedding_stage():
|
|
229 |
def invoke_search(db, collection, pipeline):
|
230 |
results = collection.aggregate(pipeline)
|
231 |
|
232 |
-
print(f"Vector search millis elapsed: {get_millis_elapsed(db)}")
|
233 |
|
234 |
return list(results)
|
235 |
|
236 |
-
def get_millis_elapsed(db):
|
237 |
explain_query_execution = db.command(
|
238 |
"explain", {
|
239 |
"aggregate": collection.name,
|
|
|
229 |
def invoke_search(db, collection, pipeline):
|
230 |
results = collection.aggregate(pipeline)
|
231 |
|
232 |
+
print(f"Vector search millis elapsed: {get_millis_elapsed(db, collection, pipeline)}")
|
233 |
|
234 |
return list(results)
|
235 |
|
236 |
+
def get_millis_elapsed(db, collection, pipeline):
|
237 |
explain_query_execution = db.command(
|
238 |
"explain", {
|
239 |
"aggregate": collection.name,
|