Skip to content

Commit

Permalink
Fix script issue
Browse files Browse the repository at this point in the history
Signed-off-by: zepan <[email protected]>
  • Loading branch information
ZePan110 committed Aug 13, 2024
1 parent 0341c49 commit 6253926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_reranks_langchain-mosec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function start_service() {
}

function validate_microservice() {
mosec_service_port=5002
result=$(http_proxy="" curl http://${ip_address}:$mosec_service_port/v1/embeddings \
mosec_service_port=5007
result=$(http_proxy="" curl http://${ip_address}:${mosec_service_port}/v1/reranking\
-X POST \
-d '{"text":"What is Deep Learning?"}' \
-d '{"initial_query":"What is Deep Learning?", "retrieved_docs": [{"text":"Deep Learning is not..."}, {"text":"Deep learning is..."}]}' \
-H 'Content-Type: application/json')
if [[ $result == *"Human"* ]]; then
echo "Result correct."
Expand Down

0 comments on commit 6253926

Please sign in to comment.