From aecfc920dda843129bcad388d6694bc2ba85e74f Mon Sep 17 00:00:00 2001 From: "chen, suyue" Date: Tue, 14 May 2024 21:31:56 +0800 Subject: [PATCH] fix dockerfile path for rerank (#135) Signed-off-by: chensuyue --- .github/workflows/ChatQnA_gaudi.yml | 1 + .github/workflows/ChatQnA_xeon.yml | 1 + ChatQnA/microservice/gaudi/README.md | 2 +- ChatQnA/microservice/xeon/README.md | 2 +- ChatQnA/tests/test_chatqna_on_gaudi.sh | 2 +- ChatQnA/tests/test_chatqna_on_xeon.sh | 2 +- 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ChatQnA_gaudi.yml b/.github/workflows/ChatQnA_gaudi.yml index f5a58096d..33f1fc462 100644 --- a/.github/workflows/ChatQnA_gaudi.yml +++ b/.github/workflows/ChatQnA_gaudi.yml @@ -9,6 +9,7 @@ on: types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: - ChatQnA/microservice/gaudi/** + - ChatQnA/tests/test_chatqna_on_gaudi.sh - "!**.md" - "!**/ui/**" - .github/workflows/ChatQnA_gaudi.yml diff --git a/.github/workflows/ChatQnA_xeon.yml b/.github/workflows/ChatQnA_xeon.yml index 1c764da1f..a64871747 100644 --- a/.github/workflows/ChatQnA_xeon.yml +++ b/.github/workflows/ChatQnA_xeon.yml @@ -9,6 +9,7 @@ on: types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: - ChatQnA/microservice/xeon/** + - ChatQnA/tests/test_chatqna_on_xeon.sh - "!**.md" - "!**/ui/**" - .github/workflows/ChatQnA_xeon.yml diff --git a/ChatQnA/microservice/gaudi/README.md b/ChatQnA/microservice/gaudi/README.md index 6800efff5..50fe8124d 100644 --- a/ChatQnA/microservice/gaudi/README.md +++ b/ChatQnA/microservice/gaudi/README.md @@ -29,7 +29,7 @@ docker build -t opea/gen-ai-comps:retriever-redis-server --build-arg https_proxy ### 4. Build Rerank Image ```bash -docker build -t opea/gen-ai-comps:reranking-tei-server --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/reranks/docker/Dockerfile . +docker build -t opea/gen-ai-comps:reranking-tei-server --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/reranks/langchain/docker/Dockerfile . ``` ### 5. Build LLM Image diff --git a/ChatQnA/microservice/xeon/README.md b/ChatQnA/microservice/xeon/README.md index 0463d07cd..2fa106eae 100644 --- a/ChatQnA/microservice/xeon/README.md +++ b/ChatQnA/microservice/xeon/README.md @@ -36,7 +36,7 @@ docker build -t opea/gen-ai-comps:retriever-redis-server --build-arg https_proxy ### 3. Build Rerank Image ```bash -docker build -t opea/gen-ai-comps:reranking-tei-xeon-server --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/reranks/docker/Dockerfile . +docker build -t opea/gen-ai-comps:reranking-tei-xeon-server --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/reranks/langchain/docker/Dockerfile . ``` ### 4. Build LLM Image diff --git a/ChatQnA/tests/test_chatqna_on_gaudi.sh b/ChatQnA/tests/test_chatqna_on_gaudi.sh index dcb1a79ed..e5317ca2d 100644 --- a/ChatQnA/tests/test_chatqna_on_gaudi.sh +++ b/ChatQnA/tests/test_chatqna_on_gaudi.sh @@ -30,7 +30,7 @@ function build_docker_image() { docker build -t opea/gen-ai-comps:embedding-tei-server -f comps/embeddings/langchain/docker/Dockerfile . docker build -t opea/gen-ai-comps:retriever-redis-server -f comps/retrievers/langchain/docker/Dockerfile . - docker build -t opea/gen-ai-comps:reranking-tei-server -f comps/reranks/docker/Dockerfile . + docker build -t opea/gen-ai-comps:reranking-tei-server -f comps/reranks/langchain/docker/Dockerfile . docker build -t opea/gen-ai-comps:llm-tgi-gaudi-server -f comps/llms/langchain/docker/Dockerfile . cd .. diff --git a/ChatQnA/tests/test_chatqna_on_xeon.sh b/ChatQnA/tests/test_chatqna_on_xeon.sh index bc6ee3268..b50e70aea 100644 --- a/ChatQnA/tests/test_chatqna_on_xeon.sh +++ b/ChatQnA/tests/test_chatqna_on_xeon.sh @@ -30,7 +30,7 @@ function build_docker_image() { docker build -t opea/gen-ai-comps:embedding-tei-server -f comps/embeddings/langchain/docker/Dockerfile . docker build -t opea/gen-ai-comps:retriever-redis-server -f comps/retrievers/langchain/docker/Dockerfile . - docker build -t opea/gen-ai-comps:reranking-tei-xeon-server -f comps/reranks/docker/Dockerfile . + docker build -t opea/gen-ai-comps:reranking-tei-xeon-server -f comps/reranks/langchain/docker/Dockerfile . docker build -t opea/gen-ai-comps:llm-tgi-server -f comps/llms/langchain/docker/Dockerfile . docker images