diff --git a/SearchQnA/docker_compose/intel/cpu/xeon/README.md b/SearchQnA/docker_compose/intel/cpu/xeon/README.md index 8b45cf589..79e24e1e6 100644 --- a/SearchQnA/docker_compose/intel/cpu/xeon/README.md +++ b/SearchQnA/docker_compose/intel/cpu/xeon/README.md @@ -46,6 +46,16 @@ docker build --no-cache -t opea/searchqna:latest --build-arg https_proxy=$https_ cd ../../.. ``` +### 7. Build UI Docker Image + +Build frontend Docker image via below command: + +```bash +cd GenAIExamples/SearchQnA/ui +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 . +cd ../../../.. +``` + Then run the command `docker images`, you will have following images ready: 1. `opea/embedding-tei:latest` @@ -53,6 +63,7 @@ Then run the command `docker images`, you will have following images ready: 3. `opea/reranking-tei:latest` 4. `opea/llm-tgi:latest` 5. `opea/searchqna:latest` +6. `opea/searchqna-ui:latest` ## 🚀 Set the environment variables @@ -65,11 +76,12 @@ export GOOGLE_API_KEY= export HUGGINGFACEHUB_API_TOKEN= export EMBEDDING_MODEL_ID=BAAI/bge-base-en-v1.5 -export TEI_EMBEDDING_ENDPOINT=http://$host_ip:3001 +export TEI_EMBEDDING_ENDPOINT=http://${host_ip}:3001 export RERANK_MODEL_ID=BAAI/bge-reranker-base -export TEI_RERANKING_ENDPOINT=http://$host_ip:3004 +export TEI_RERANKING_ENDPOINT=http://${host_ip}:3004 +export BACKEND_SERVICE_ENDPOINT=http://${host_ip}:3008/v1/searchqna -export TGI_LLM_ENDPOINT=http://$host_ip:3006 +export TGI_LLM_ENDPOINT=http://${host_ip}:3006 export LLM_MODEL_ID=Intel/neural-chat-7b-v3-3 export MEGA_SERVICE_HOST_IP=${host_ip} diff --git a/SearchQnA/docker_compose/intel/cpu/xeon/compose.yaml b/SearchQnA/docker_compose/intel/cpu/xeon/compose.yaml index 380eddb30..0b7995118 100644 --- a/SearchQnA/docker_compose/intel/cpu/xeon/compose.yaml +++ b/SearchQnA/docker_compose/intel/cpu/xeon/compose.yaml @@ -129,7 +129,7 @@ services: - LLM_SERVICE_PORT=${LLM_SERVICE_PORT} ipc: host restart: always - searchqna-gaudi-ui-server: + searchqna-xeon-ui-server: image: ${REGISTRY:-opea}/searchqna-ui:${TAG:-latest} container_name: searchqna-xeon-ui-server depends_on: