diff --git a/SearchQnA/tests/test_compose_on_gaudi.sh b/SearchQnA/tests/test_compose_on_gaudi.sh index dcdc1cd68..03091fae1 100644 --- a/SearchQnA/tests/test_compose_on_gaudi.sh +++ b/SearchQnA/tests/test_compose_on_gaudi.sh @@ -73,10 +73,10 @@ function start_services() { function validate_megaservice() { - 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') + 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') echo $result - if [[ $result == *"2024"* ]]; then + if [[ $result == *"the"* ]]; then docker logs web-retriever-chroma-server > ${LOG_PATH}/web-retriever-chroma-server.log docker logs searchqna-gaudi-backend-server > ${LOG_PATH}/searchqna-gaudi-backend-server.log docker logs tei-embedding-gaudi-server > ${LOG_PATH}/tei-embedding-gaudi-server.log diff --git a/SearchQnA/tests/test_compose_on_xeon.sh b/SearchQnA/tests/test_compose_on_xeon.sh index 574a836ba..5436cc1c5 100644 --- a/SearchQnA/tests/test_compose_on_xeon.sh +++ b/SearchQnA/tests/test_compose_on_xeon.sh @@ -71,10 +71,10 @@ function start_services() { function validate_megaservice() { - 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') + 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') echo $result - if [[ $result == *"2024"* ]]; then + if [[ $result == *"the"* ]]; then docker logs web-retriever-chroma-server docker logs searchqna-xeon-backend-server echo "Result correct."