Skip to content

Commit

Permalink
update benchmark e2e parameter for retrieval
Browse files Browse the repository at this point in the history
Signed-off-by: letonghan <[email protected]>
  • Loading branch information
letonghan committed Nov 27, 2024
1 parent 5422bcb commit cb048b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ Before testing, upload a specified file to make sure the llm input have the toke
Get files:
```bash
wget https://github.com/opea-project/GenAIEval/tree/main/evals/benchmark/data/upload_file_no_rerank.txt
wget https://github.com/opea-project/GenAIEval/tree/main/evals/benchmark/data/upload_file.txt
```
Expand All @@ -164,14 +163,9 @@ Use the following `cURL` command to upload file:
```bash
cd GenAIEval/evals/benchmark/data
# RAG with Rerank
curl -X POST "http://${cluster_ip}:6007/v1/dataprep" \
-H "Content-Type: multipart/form-data" \
-F "files=@./upload_file.txt"
# RAG without Rerank
curl -X POST "http://${cluster_ip}:6007/v1/dataprep" \
-H "Content-Type: multipart/form-data" \
-F "files=@./upload_file_no_rerank.txt"
```
#### Run Benchmark Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test_cases:
service_name: "chatqna-retriever-usvc" # Replace with your service name
parameters:
search_type: "similarity"
k: 4
k: 1
fetch_k: 20
lambda_mult: 0.5
score_threshold: 0.2
Expand Down Expand Up @@ -65,3 +65,4 @@ test_cases:
e2e:
run_test: true
service_name: "chatqna" # Replace with your service name
k: 1

0 comments on commit cb048b4

Please sign in to comment.