Skip to content

Commit c9001a3

Browse files
XinyaoWachensuyue
authored andcommitted
Fix SearchQnA tests bug (#857)
Signed-off-by: Xinyao Wang <[email protected]> (cherry picked from commit daf2a4f)
1 parent 08fa591 commit c9001a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SearchQnA/tests/test_compose_on_gaudi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ function start_services() {
7373

7474

7575
function validate_megaservice() {
76-
result=$(http_proxy="" curl http://${ip_address}:3008/v1/searchqna -XPOST -d '{"messages": "How many gold medals does USA win in olympics 2024? Give me also the source link.", "stream": "False"}' -H 'Content-Type: application/json')
76+
result=$(http_proxy="" curl http://${ip_address}:3008/v1/searchqna -XPOST -d '{"messages": "What is black myth wukong?", "stream": "False"}' -H 'Content-Type: application/json')
7777
echo $result
7878

79-
if [[ $result == *"2024"* ]]; then
79+
if [[ $result == *"the"* ]]; then
8080
docker logs web-retriever-chroma-server > ${LOG_PATH}/web-retriever-chroma-server.log
8181
docker logs searchqna-gaudi-backend-server > ${LOG_PATH}/searchqna-gaudi-backend-server.log
8282
docker logs tei-embedding-gaudi-server > ${LOG_PATH}/tei-embedding-gaudi-server.log

SearchQnA/tests/test_compose_on_xeon.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ function start_services() {
7171

7272

7373
function validate_megaservice() {
74-
result=$(http_proxy="" curl http://${ip_address}:3008/v1/searchqna -XPOST -d '{"messages": "How many gold medals does USA win in olympics 2024? Give me also the source link.", "stream": "False"}' -H 'Content-Type: application/json')
74+
result=$(http_proxy="" curl http://${ip_address}:3008/v1/searchqna -XPOST -d '{"messages": "What is black myth wukong?", "stream": "False"}' -H 'Content-Type: application/json')
7575
echo $result
7676

77-
if [[ $result == *"2024"* ]]; then
77+
if [[ $result == *"the"* ]]; then
7878
docker logs web-retriever-chroma-server
7979
docker logs searchqna-xeon-backend-server
8080
echo "Result correct."

0 commit comments

Comments
 (0)