Spaces:
Running
Running
Update custom_utils.py
Browse files- custom_utils.py +6 -1
custom_utils.py
CHANGED
@@ -337,7 +337,12 @@ def get_millis_elapsed(db, collection, pipeline):
|
|
337 |
verbosity="executionStats")
|
338 |
|
339 |
explain_vector_search = explain_query_execution["stages"][0]["$vectorSearch"]
|
340 |
-
|
|
|
|
|
|
|
|
|
|
|
341 |
return explain_vector_search["explain"]["collectStats"]["millisElapsed"]
|
342 |
|
343 |
def get_text_embedding(openai_api_key, text):
|
|
|
337 |
verbosity="executionStats")
|
338 |
|
339 |
explain_vector_search = explain_query_execution["stages"][0]["$vectorSearch"]
|
340 |
+
|
341 |
+
print("###")
|
342 |
+
print(explain_vector_search)
|
343 |
+
print(explain_vector_search["explain"])
|
344 |
+
print(explain_vector_search["explain"]["collectStats"])
|
345 |
+
print("###")
|
346 |
return explain_vector_search["explain"]["collectStats"]["millisElapsed"]
|
347 |
|
348 |
def get_text_embedding(openai_api_key, text):
|