Skip to content

Commit 5c67204

Browse files
Update SearchQnA document and compose.yaml (opea-project#774)
Signed-off-by: Wang, Xigui <xigui.wang@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d2bab99 commit 5c67204

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

SearchQnA/docker_compose/intel/cpu/xeon/README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,24 @@ docker build --no-cache -t opea/searchqna:latest --build-arg https_proxy=$https_
4646
cd ../../..
4747
```
4848

49+
### 7. Build UI Docker Image
50+
51+
Build frontend Docker image via below command:
52+
53+
```bash
54+
cd GenAIExamples/SearchQnA/ui
55+
docker build --no-cache -t opea/opea/searchqna-ui:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f ./docker/Dockerfile .
56+
cd ../../../..
57+
```
58+
4959
Then run the command `docker images`, you will have following images ready:
5060

5161
1. `opea/embedding-tei:latest`
5262
2. `opea/web-retriever-chroma:latest`
5363
3. `opea/reranking-tei:latest`
5464
4. `opea/llm-tgi:latest`
5565
5. `opea/searchqna:latest`
66+
6. `opea/searchqna-ui:latest`
5667

5768
## 🚀 Set the environment variables
5869

@@ -65,11 +76,12 @@ export GOOGLE_API_KEY=<your google api key>
6576
export HUGGINGFACEHUB_API_TOKEN=<your HF token>
6677

6778
export EMBEDDING_MODEL_ID=BAAI/bge-base-en-v1.5
68-
export TEI_EMBEDDING_ENDPOINT=http://$host_ip:3001
79+
export TEI_EMBEDDING_ENDPOINT=http://${host_ip}:3001
6980
export RERANK_MODEL_ID=BAAI/bge-reranker-base
70-
export TEI_RERANKING_ENDPOINT=http://$host_ip:3004
81+
export TEI_RERANKING_ENDPOINT=http://${host_ip}:3004
82+
export BACKEND_SERVICE_ENDPOINT=http://${host_ip}:3008/v1/searchqna
7183

72-
export TGI_LLM_ENDPOINT=http://$host_ip:3006
84+
export TGI_LLM_ENDPOINT=http://${host_ip}:3006
7385
export LLM_MODEL_ID=Intel/neural-chat-7b-v3-3
7486

7587
export MEGA_SERVICE_HOST_IP=${host_ip}

SearchQnA/docker_compose/intel/cpu/xeon/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ services:
129129
- LLM_SERVICE_PORT=${LLM_SERVICE_PORT}
130130
ipc: host
131131
restart: always
132-
searchqna-gaudi-ui-server:
132+
searchqna-xeon-ui-server:
133133
image: ${REGISTRY:-opea}/searchqna-ui:${TAG:-latest}
134134
container_name: searchqna-xeon-ui-server
135135
depends_on:

0 commit comments

Comments
 (0)