Spaces:
Running
Running
Update custom_utils.py
Browse files- custom_utils.py +3 -1
custom_utils.py
CHANGED
|
@@ -340,10 +340,12 @@ def get_millis_elapsed(db, collection, pipeline):
|
|
| 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):
|
| 349 |
if not text or not isinstance(text, str):
|
|
|
|
| 340 |
|
| 341 |
print("###")
|
| 342 |
print(explain_vector_search)
|
| 343 |
+
print("###")
|
| 344 |
print(explain_vector_search["explain"])
|
| 345 |
+
print("###")
|
| 346 |
print(explain_vector_search["explain"]["collectStats"])
|
| 347 |
print("###")
|
| 348 |
+
return "123"#explain_vector_search["explain"]["collectStats"]["millisElapsed"]
|
| 349 |
|
| 350 |
def get_text_embedding(openai_api_key, text):
|
| 351 |
if not text or not isinstance(text, str):
|