You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"[ $SERVICE_NAME ] HTTP status is 200. Checking content..."
129
+
fi
130
+
# check response body
131
+
if [[ "$RESPONSE_BODY"!=*"$EXPECTED_RESULT"* ]];then
132
+
echo"[ $SERVICE_NAME ] Content does not match the expected result: $RESPONSE_BODY"
133
+
exit 1
134
+
else
135
+
echo"[ $SERVICE_NAME ] Content is as expected."
120
136
fi
137
+
121
138
sleep 1s
122
139
}
123
140
124
141
functionvalidate_microservices() {
125
142
# Check if the microservices are running correctly.
126
143
127
144
# tei for embedding service
128
-
validate_services \
145
+
validate_service \
129
146
"${ip_address}:8090/embed" \
130
-
"\[\[" \
147
+
"[[" \
131
148
"tei-embedding" \
132
149
"tei-embedding-gaudi-server" \
133
150
'{"inputs":"What is Deep Learning?"}'
134
151
135
152
# embedding microservice
136
-
validate_services \
153
+
validate_service \
137
154
"${ip_address}:6000/v1/embeddings" \
138
-
'"text":"What is Deep Learning?","embedding":\[' \
139
-
"embedding" \
155
+
'"text":"What is Deep Learning?","embedding":[' \
156
+
"embedding-microservice" \
140
157
"embedding-tei-server" \
141
158
'{"text":"What is Deep Learning?"}'
142
159
143
160
sleep 1m # retrieval can't curl as expected, try to wait for more time
144
161
162
+
# test /v1/dataprep upload file
163
+
echo"Deep learning is a subset of machine learning that utilizes neural networks with multiple layers to analyze various levels of abstract data representations. It enables computers to identify patterns and make decisions with minimal human intervention by learning from large amounts of data.">$LOG_PATH/dataprep_file.txt
echo"[ $SERVICE_NAME ] HTTP status is 200. Checking content..."
115
+
fi
116
+
# check response body
117
+
if [[ "$RESPONSE_BODY"!=*"$EXPECTED_RESULT"* ]];then
118
+
echo"[ $SERVICE_NAME ] Content does not match the expected result: $RESPONSE_BODY"
119
+
exit 1
120
+
else
121
+
echo"[ $SERVICE_NAME ] Content is as expected."
106
122
fi
123
+
107
124
sleep 1s
108
125
}
109
126
110
127
functionvalidate_microservices() {
111
128
# Check if the microservices are running correctly.
112
129
113
130
# tei for embedding service
114
-
validate_services \
131
+
validate_service \
115
132
"${ip_address}:6006/embed" \
116
-
"\[\[" \
133
+
"[[" \
117
134
"tei-embedding" \
118
135
"tei-embedding-server" \
119
136
'{"inputs":"What is Deep Learning?"}'
120
137
121
138
# embedding microservice
122
-
validate_services \
139
+
validate_service \
123
140
"${ip_address}:6000/v1/embeddings" \
124
-
'"text":"What is Deep Learning?","embedding":\[' \
125
-
"embedding" \
141
+
'"text":"What is Deep Learning?","embedding":[' \
142
+
"embedding-microservice" \
126
143
"embedding-tei-server" \
127
144
'{"text":"What is Deep Learning?"}'
128
145
129
146
sleep 1m # retrieval can't curl as expected, try to wait for more time
130
147
148
+
# test /v1/dataprep upload file
149
+
echo"Deep learning is a subset of machine learning that utilizes neural networks with multiple layers to analyze various levels of abstract data representations. It enables computers to identify patterns and make decisions with minimal human intervention by learning from large amounts of data.">$LOG_PATH/dataprep_file.txt
0 commit comments