Skip to content

Commit

Permalink
Merge branch 'main' into docsum
Browse files Browse the repository at this point in the history
  • Loading branch information
chensuyue authored Nov 14, 2024
2 parents cc8ced9 + 73879d3 commit 90b23bf
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions FaqGen/docker_compose/intel/cpu/xeon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export TGI_LLM_ENDPOINT="http://${your_ip}:8008"
export HUGGINGFACEHUB_API_TOKEN=${your_hf_api_token}
export MEGA_SERVICE_HOST_IP=${host_ip}
export LLM_SERVICE_HOST_IP=${host_ip}
export LLM_SERVICE_PORT=9000
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/faqgen"
```

Expand Down
3 changes: 2 additions & 1 deletion FaqGen/docker_compose/intel/cpu/xeon/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ services:
- http_proxy=${http_proxy}
- MEGA_SERVICE_HOST_IP=${MEGA_SERVICE_HOST_IP}
- LLM_SERVICE_HOST_IP=${LLM_SERVICE_HOST_IP}
- LLM_SERVICE_PORT=${LLM_SERVICE_PORT}
ipc: host
restart: always
faqgen-xeon-ui-server:
Expand All @@ -59,7 +60,7 @@ services:
- no_proxy=${no_proxy}
- https_proxy=${https_proxy}
- http_proxy=${http_proxy}
- DOC_BASE_URL=${BACKEND_SERVICE_ENDPOINT}
- FAQ_BASE_URL=${BACKEND_SERVICE_ENDPOINT}
ipc: host
restart: always
networks:
Expand Down
1 change: 1 addition & 0 deletions FaqGen/docker_compose/intel/hpu/gaudi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export TGI_LLM_ENDPOINT="http://${your_ip}:8008"
export HUGGINGFACEHUB_API_TOKEN=${your_hf_api_token}
export MEGA_SERVICE_HOST_IP=${host_ip}
export LLM_SERVICE_HOST_IP=${host_ip}
export LLM_SERVICE_PORT=9000
export BACKEND_SERVICE_ENDPOINT="http://${host_ip}:8888/v1/faqgen"
```

Expand Down
3 changes: 2 additions & 1 deletion FaqGen/docker_compose/intel/hpu/gaudi/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ services:
- http_proxy=${http_proxy}
- MEGA_SERVICE_HOST_IP=${MEGA_SERVICE_HOST_IP}
- LLM_SERVICE_HOST_IP=${LLM_SERVICE_HOST_IP}
- LLM_SERVICE_PORT=${LLM_SERVICE_PORT}
ipc: host
restart: always
faqgen-gaudi-ui-server:
Expand All @@ -69,7 +70,7 @@ services:
- no_proxy=${no_proxy}
- https_proxy=${https_proxy}
- http_proxy=${http_proxy}
- DOC_BASE_URL=${BACKEND_SERVICE_ENDPOINT}
- FAQ_BASE_URL=${BACKEND_SERVICE_ENDPOINT}
ipc: host
restart: always

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ spec:
containers:
- name: faqgen-react-ui
env:
- name: DOC_BASE_URL
- name: FAQ_BASE_URL
value: "http://faqgen:8888/v1/faqgen"
- name: http_proxy
value:
Expand Down
2 changes: 1 addition & 1 deletion FaqGen/kubernetes/intel/cpu/xeon/manifest/faqgen_ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
containers:
- name: faq-mega-ui-deploy
env:
- name: DOC_BASE_URL
- name: FAQ_BASE_URL
value: http://{insert_your_ip_here}:7779/v1/faqgen
image: opea/faqgen-ui:latest
imagePullPolicy: IfNotPresent
Expand Down
2 changes: 1 addition & 1 deletion FaqGen/kubernetes/intel/hpu/gaudi/manifest/faqgen_ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
containers:
- name: faq-mega-ui-deploy
env:
- name: DOC_BASE_URL
- name: FAQ_BASE_URL
value: http://{insert_your_ip_here}:7779/v1/faqgen
image: opea/faqgen-ui:latest
imagePullPolicy: IfNotPresent
Expand Down
1 change: 1 addition & 0 deletions FaqGen/tests/test_compose_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function start_services() {
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
export MEGA_SERVICE_HOST_IP=${ip_address}
export LLM_SERVICE_HOST_IP=${ip_address}
export LLM_SERVICE_PORT=9000
export BACKEND_SERVICE_ENDPOINT="http://${ip_address}:8888/v1/faqgen"

sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env
Expand Down
1 change: 1 addition & 0 deletions FaqGen/tests/test_compose_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function start_services() {
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
export MEGA_SERVICE_HOST_IP=${ip_address}
export LLM_SERVICE_HOST_IP=${ip_address}
export LLM_SERVICE_PORT=9000
export BACKEND_SERVICE_ENDPOINT="http://${ip_address}:8888/v1/faqgen"

sed -i "s/backend_address/$ip_address/g" $WORKPATH/ui/svelte/.env
Expand Down

0 comments on commit 90b23bf

Please sign in to comment.