Skip to content

Commit

Permalink
Merge branch 'master' into jobergum/ColQwen2-example
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 authored Oct 1, 2024
2 parents 951b4f3 + 55a0872 commit 531e661
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/integration/test_integration_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,9 @@ def setUp(self) -> None:
)

self.vespa_docker = VespaDocker(port=8089)
self.app = self.vespa_docker.deploy(application_package=self.app_package)
self.app = self.vespa_docker.deploy(
application_package=self.app_package, max_wait_deployment=600
)

def test_crossencoder_threads(self):
# Feed sample documents to the application
Expand All @@ -2105,21 +2107,24 @@ def test_crossencoder_threads(self):
}

# Warm-up query
self.app.query(body=query_body)
with self.app.syncio() as sess:
_ = sess.query(body=query_body)
query_body_reranking = {
**query_body,
"ranking.profile": "reranking",
}
# Query with default persearch threads (set to 4)
response_default = self.app.query(body=query_body_reranking)
with self.app.syncio() as sess:
response_default = sess.query(body=query_body_reranking)

# Query with num-threads-per-search overridden to 1
query_body_one_thread = {
**query_body,
"ranking.profile": "one-thread-profile",
"ranking.matching.numThreadsPerSearch": 1,
}
response_one_thread = self.app.query(body=query_body_one_thread)
with self.app.syncio() as sess:
response_one_thread = sess.query(body=query_body_one_thread)

# Extract query times
timing_default = response_default.json["timing"]
Expand Down

0 comments on commit 531e661

Please sign in to comment.