mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-12 06:05:43 +02:00
tesT
This commit is contained in:
@ -154,7 +154,11 @@ def _measure_vespa_latency(filters: dict = {}):
|
||||
"timeout": "10s",
|
||||
}
|
||||
start = time.monotonic()
|
||||
_query_vespa(params)
|
||||
hits = _query_vespa(params)
|
||||
hit_content_len = 0
|
||||
for hit in hits:
|
||||
hit_content_len += len(hit["fields"].get("content", ""))
|
||||
print("Content length", hit_content_len)
|
||||
# print(response)
|
||||
return time.monotonic() - start
|
||||
|
||||
|
Reference in New Issue
Block a user