@@ -189,8 +189,8 @@ export RERANK_SERVICE_HOST_IP=${host_ip}
189189export LLM_SERVICE_HOST_IP=${host_ip}
190190export BACKEND_SERVICE_ENDPOINT=" http://${host_ip} :8888/v1/chatqna"
191191export 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
196196If 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
367367Also, 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
374374To 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```
0 commit comments