Skip to content

Commit 02a1536

Browse files
lkk12014402sdp
andauthored
update chatqna dataprep-redis port (#557)
Co-authored-by: sdp <sdp@srf797636.jf.intel.com>
1 parent f08d411 commit 02a1536

15 files changed

+29
-51
lines changed

ChatQnA/benchmark/two_gaudi/dataprep-microservice_run.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ spec:
4444
args: null
4545
ports:
4646
- containerPort: 6007
47-
- containerPort: 6008
48-
- containerPort: 6009
4947
serviceAccountName: default
5048
---
5149
kind: Service
@@ -60,9 +58,3 @@ spec:
6058
- name: port1
6159
port: 6007
6260
targetPort: 6007
63-
- name: port2
64-
port: 6008
65-
targetPort: 6008
66-
- name: port3
67-
port: 6009
68-
targetPort: 6009

ChatQnA/docker/gaudi/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ export RERANK_SERVICE_HOST_IP=${host_ip}
189189
export LLM_SERVICE_HOST_IP=${host_ip}
190190
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/chatqna"
191191
export DATAPREP_SERVICE_ENDPOINT="http://${host_ip}:6007/v1/dataprep"
192-
export DATAPREP_GET_FILE_ENDPOINT="http://${host_ip}:6008/v1/dataprep/get_file"
193-
export DATAPREP_DELETE_FILE_ENDPOINT="http://${host_ip}:6009/v1/dataprep/delete_file"
192+
export DATAPREP_GET_FILE_ENDPOINT="http://${host_ip}:6007/v1/dataprep/get_file"
193+
export DATAPREP_DELETE_FILE_ENDPOINT="http://${host_ip}:6007/v1/dataprep/delete_file"
194194
```
195195

196196
If guardrails microservice is enabled in the pipeline, the below environment variables are necessary to be set.
@@ -367,25 +367,25 @@ This command updates a knowledge base by submitting a list of HTTP links for pro
367367
Also, you are able to get the file/link list that you uploaded:
368368

369369
```bash
370-
curl -X POST "http://${host_ip}:6008/v1/dataprep/get_file" \
370+
curl -X POST "http://${host_ip}:6007/v1/dataprep/get_file" \
371371
-H "Content-Type: application/json"
372372
```
373373

374374
To delete the file/link you uploaded:
375375

376376
```bash
377377
# delete link
378-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
378+
curl -X POST "http://${host_ip}:6007/v1/dataprep/delete_file" \
379379
-d '{"file_path": "https://opea.dev"}' \
380380
-H "Content-Type: application/json"
381381

382382
# delete file
383-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
383+
curl -X POST "http://${host_ip}:6007/v1/dataprep/delete_file" \
384384
-d '{"file_path": "nke-10k-2023.pdf"}' \
385385
-H "Content-Type: application/json"
386386

387387
# delete all uploaded files and links
388-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
388+
curl -X POST "http://${host_ip}:6007/v1/dataprep/delete_file" \
389389
-d '{"file_path": "all"}' \
390390
-H "Content-Type: application/json"
391391
```

ChatQnA/docker/gaudi/compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ services:
1919
- tei-embedding-service
2020
ports:
2121
- "6007:6007"
22-
- "6008:6008"
23-
- "6009:6009"
2422
environment:
2523
no_proxy: ${no_proxy}
2624
http_proxy: ${http_proxy}

ChatQnA/docker/gaudi/compose_guardrails.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ services:
1919
- tei-embedding-service
2020
ports:
2121
- "6007:6007"
22-
- "6008:6008"
23-
- "6009:6009"
2422
environment:
2523
no_proxy: ${no_proxy}
2624
http_proxy: ${http_proxy}

ChatQnA/docker/gaudi/compose_vllm.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ services:
1919
- tei-embedding-service
2020
ports:
2121
- "6007:6007"
22-
- "6008:6008"
23-
- "6009:6009"
2422
environment:
2523
no_proxy: ${no_proxy}
2624
http_proxy: ${http_proxy}

ChatQnA/docker/gaudi/compose_vllm_ray.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ services:
1919
- tei-embedding-service
2020
ports:
2121
- "6007:6007"
22-
- "6008:6008"
23-
- "6009:6009"
2422
environment:
2523
no_proxy: ${no_proxy}
2624
http_proxy: ${http_proxy}

ChatQnA/docker/gpu/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export RERANK_SERVICE_HOST_IP=${host_ip}
100100
export LLM_SERVICE_HOST_IP=${host_ip}
101101
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/chatqna"
102102
export DATAPREP_SERVICE_ENDPOINT="http://${host_ip}:6007/v1/dataprep"
103-
export DATAPREP_GET_FILE_ENDPOINT="http://${host_ip}:6008/v1/dataprep/get_file"
104-
export DATAPREP_DELETE_FILE_ENDPOINT="http://${host_ip}:6009/v1/dataprep/delete_file"
103+
export DATAPREP_GET_FILE_ENDPOINT="http://${host_ip}:6007/v1/dataprep/get_file"
104+
export DATAPREP_DELETE_FILE_ENDPOINT="http://${host_ip}:6007/v1/dataprep/delete_file"
105105
```
106106

107107
Note: Please replace with `host_ip` with you external IP address, do **NOT** use localhost.
@@ -220,25 +220,25 @@ This command updates a knowledge base by submitting a list of HTTP links for pro
220220
Also, you are able to get the file list that you uploaded:
221221

222222
```bash
223-
curl -X POST "http://${host_ip}:6008/v1/dataprep/get_file" \
223+
curl -X POST "http://${host_ip}:6007/v1/dataprep/get_file" \
224224
-H "Content-Type: application/json"
225225
```
226226

227227
To delete the file/link you uploaded:
228228

229229
```bash
230230
# delete link
231-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
231+
curl -X POST "http://${host_ip}:6007/v1/dataprep/delete_file" \
232232
-d '{"file_path": "https://opea.dev"}' \
233233
-H "Content-Type: application/json"
234234

235235
# delete file
236-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
236+
curl -X POST "http://${host_ip}:6007/v1/dataprep/delete_file" \
237237
-d '{"file_path": "nke-10k-2023.pdf"}' \
238238
-H "Content-Type: application/json"
239239

240240
# delete all uploaded files and links
241-
curl -X POST "http://${host_ip}:6009/v1/dataprep/delete_file" \
241+
curl -X POST "http://${host_ip}:6007/v1/dataprep/delete_file" \
242242
-d '{"file_path": "all"}' \
243243
-H "Content-Type: application/json"
244244
```

ChatQnA/docker/gpu/compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ services:
1919
- tei-embedding-service
2020
ports:
2121
- "6007:6007"
22-
- "6008:6008"
23-
- "6009:6009"
2422
environment:
2523
no_proxy: ${no_proxy}
2624
http_proxy: ${http_proxy}

ChatQnA/docker/gpu/set_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export RERANK_SERVICE_HOST_IP=${host_ip}
1919
export LLM_SERVICE_HOST_IP=${host_ip}
2020
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/chatqna"
2121
export DATAPREP_SERVICE_ENDPOINT="http://${host_ip}:6007/v1/dataprep"
22-
export DATAPREP_GET_FILE_ENDPOINT="http://${host_ip}:6008/v1/dataprep/get_file"
23-
export DATAPREP_DELETE_FILE_ENDPOINT="http://${host_ip}:6009/v1/dataprep/delete_file"
22+
export DATAPREP_GET_FILE_ENDPOINT="http://${host_ip}:6007/v1/dataprep/get_file"
23+
export DATAPREP_DELETE_FILE_ENDPOINT="http://${host_ip}:6007/v1/dataprep/delete_file"

ChatQnA/docker/ui/svelte/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ CHAT_BASE_URL = 'http://backend_address:8888/v1/chatqna'
22

33
UPLOAD_FILE_BASE_URL = 'http://backend_address:6007/v1/dataprep'
44

5-
GET_FILE = 'http://backend_address:6008/v1/dataprep/get_file'
5+
GET_FILE = 'http://backend_address:6007/v1/dataprep/get_file'
66

7-
DELETE_FILE = 'http://backend_address:6009/v1/dataprep/delete_file'
7+
DELETE_FILE = 'http://backend_address:6007/v1/dataprep/delete_file'

0 commit comments

Comments
 (0)