Skip to content

Commit

Permalink
Fix rerank benchmark script (#107)
Browse files Browse the repository at this point in the history
Signed-off-by: Li Gang <[email protected]>
  • Loading branch information
gavinlichn authored Sep 5, 2024
1 parent 58502c5 commit 8edda1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion evals/benchmark/stresscli/locust/rerankingfixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def getUrl():


def getReqData():
return ({"initial_query": my_query, "retrieved_docs": [{"text": query_rerank_1}, {"text": query_rerank_2}]},)
return {"initial_query": my_query, "retrieved_docs": [{"text": query_rerank_1}, {"text": query_rerank_2}]}


def respStatics(environment, resp):
Expand Down
2 changes: 1 addition & 1 deletion evals/benchmark/stresscli/locust/rerankservefixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def getUrl():


def getReqData():
return ({"query": my_query, "texts": [query_rerank_1, query_rerank_2]},)
return {"query": my_query, "texts": [query_rerank_1, query_rerank_2]}


def respStatics(environment, resp):
Expand Down

0 comments on commit 8edda1c

Please sign in to comment.