mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 11:58:34 +02:00
tesT
This commit is contained in:
parent
b427fac6d7
commit
17866dcf8b
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user