Spaces:
Running
Running
Update custom_utils.py
Browse files- custom_utils.py +1 -1
custom_utils.py
CHANGED
@@ -340,7 +340,7 @@ def get_millis_elapsed(db, collection, pipeline):
|
|
340 |
|
341 |
print(explain_vector_search)
|
342 |
|
343 |
-
return explain_vector_search["explain"]["
|
344 |
|
345 |
def get_text_embedding(openai_api_key, text):
|
346 |
if not text or not isinstance(text, str):
|
|
|
340 |
|
341 |
print(explain_vector_search)
|
342 |
|
343 |
+
return explain_vector_search["explain"]["collectors"]["allCollectorStats"]["millisElapsed"]
|
344 |
|
345 |
def get_text_embedding(openai_api_key, text):
|
346 |
if not text or not isinstance(text, str):
|