mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-22 03:14:06 -05:00
test
This commit is contained in:
1 parent
8de8c00531
commit
340f703ff5
2 files changed
+2
-1
No files matched your search
@@ -451,6 +451,7 @@ def _query_vespa(query_params: Mapping[str, str | int]) -> list[InferenceChunk]:
|
||||
|
||||
response_json = response.json()
|
||||
logger.debug("Response: %s", response_json)
|
||||
logger.info("timing info: %s", response_json.get("timing"))
|
||||
hits = response_json["root"].get("children", [])
|
||||
|
||||
for hit in hits:
|
||||
|
||||
@@ -141,7 +141,7 @@ def _measure_vespa_latency(filters: dict = {}):
|
||||
)
|
||||
query = generate_random_sentence()
|
||||
query_embedding = embed_query(query)
|
||||
num_to_retrieve = 50
|
||||
num_to_retrieve = 1
|
||||
params: dict[str, str | int] = {
|
||||
"yql": yql,
|
||||
"query": query,
|
||||
|
||||
Reference in new issue
Block a user