Skip to content

Commit f930638

Browse files
authored
Update Multimodal Docker File Path (#1252)
Signed-off-by: letonghan <letong.han@intel.com>
1 parent 5613add commit f930638

File tree

9 files changed

+28
-25
lines changed

9 files changed

+28
-25
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ docker build --no-cache -t opea/embedding-multimodal:latest --build-arg https_pr
124124
### 2. Build retriever-multimodal-redis Image
125125

126126
```bash
127-
docker build --no-cache -t opea/retriever-multimodal-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/retrievers/multimodal/redis/langchain/Dockerfile .
127+
docker build --no-cache -t opea/retriever-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/retrievers/redis/langchain/Dockerfile .
128128
```
129129

130130
### 3. Build LVM Images

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ services:
7474
MMEI_EMBEDDING_ENDPOINT: ${MMEI_EMBEDDING_ENDPOINT}
7575
MM_EMBEDDING_PORT_MICROSERVICE: ${MM_EMBEDDING_PORT_MICROSERVICE}
7676
restart: unless-stopped
77-
retriever-multimodal-redis:
78-
image: ${REGISTRY:-opea}/retriever-multimodal-redis:${TAG:-latest}
79-
container_name: retriever-multimodal-redis
77+
retriever-redis:
78+
image: ${REGISTRY:-opea}/retriever-redis:${TAG:-latest}
79+
container_name: retriever-redis
8080
depends_on:
8181
- redis-vector-db
8282
ports:
@@ -88,6 +88,7 @@ services:
8888
https_proxy: ${https_proxy}
8989
REDIS_URL: ${REDIS_URL}
9090
INDEX_NAME: ${INDEX_NAME}
91+
BRIDGE_TOWER_EMBEDDING: ${BRIDGE_TOWER_EMBEDDING}
9192
restart: unless-stopped
9293
lvm-llava:
9394
image: ${REGISTRY:-opea}/lvm-llava:${TAG:-latest}
@@ -121,7 +122,7 @@ services:
121122
- redis-vector-db
122123
- dataprep-multimodal-redis
123124
- embedding-multimodal
124-
- retriever-multimodal-redis
125+
- retriever-redis
125126
- lvm-llava-svc
126127
- asr
127128
ports:

MultimodalQnA/docker_compose/intel/hpu/gaudi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ docker build --no-cache -t opea/embedding-multimodal:latest --build-arg https_pr
7575
### 2. Build retriever-multimodal-redis Image
7676

7777
```bash
78-
docker build --no-cache -t opea/retriever-multimodal-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/retrievers/multimodal/redis/langchain/Dockerfile .
78+
docker build --no-cache -t opea/retriever-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/retrievers/redis/langchain/Dockerfile .
7979
```
8080

8181
### 3. Build LVM Images

MultimodalQnA/docker_compose/intel/hpu/gaudi/compose.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ services:
7474
MMEI_EMBEDDING_ENDPOINT: ${MMEI_EMBEDDING_ENDPOINT}
7575
MM_EMBEDDING_PORT_MICROSERVICE: ${MM_EMBEDDING_PORT_MICROSERVICE}
7676
restart: unless-stopped
77-
retriever-multimodal-redis:
78-
image: ${REGISTRY:-opea}/retriever-multimodal-redis:${TAG:-latest}
79-
container_name: retriever-multimodal-redis
77+
retriever-redis:
78+
image: ${REGISTRY:-opea}/retriever-redis:${TAG:-latest}
79+
container_name: retriever-redis
8080
depends_on:
8181
- redis-vector-db
8282
ports:
@@ -88,6 +88,7 @@ services:
8888
https_proxy: ${https_proxy}
8989
REDIS_URL: ${REDIS_URL}
9090
INDEX_NAME: ${INDEX_NAME}
91+
BRIDGE_TOWER_EMBEDDING: ${BRIDGE_TOWER_EMBEDDING}
9192
restart: unless-stopped
9293
tgi-gaudi:
9394
image: ghcr.io/huggingface/tgi-gaudi:2.0.6
@@ -138,7 +139,7 @@ services:
138139
- redis-vector-db
139140
- dataprep-multimodal-redis
140141
- embedding-multimodal
141-
- retriever-multimodal-redis
142+
- retriever-redis
142143
- lvm-tgi
143144
- asr
144145
ports:

MultimodalQnA/docker_image_build/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ services:
2929
dockerfile: comps/embeddings/multimodal/multimodal_langchain/Dockerfile
3030
extends: multimodalqna
3131
image: ${REGISTRY:-opea}/embedding-multimodal:${TAG:-latest}
32-
retriever-multimodal-redis:
32+
retriever-redis:
3333
build:
3434
context: GenAIComps
35-
dockerfile: comps/retrievers/multimodal/redis/langchain/Dockerfile
35+
dockerfile: comps/retrievers/redis/langchain/Dockerfile
3636
extends: multimodalqna
37-
image: ${REGISTRY:-opea}/retriever-multimodal-redis:${TAG:-latest}
37+
image: ${REGISTRY:-opea}/retriever-redis:${TAG:-latest}
3838
lvm-llava:
3939
build:
4040
context: GenAIComps

MultimodalQnA/multimodalqna.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def add_remote_service(self):
5454
name="retriever",
5555
host=MM_RETRIEVER_SERVICE_HOST_IP,
5656
port=MM_RETRIEVER_SERVICE_PORT,
57-
endpoint="/v1/multimodal_retrieval",
57+
endpoint="/v1/retrieval",
5858
use_remote_service=True,
5959
service_type=ServiceType.RETRIEVER,
6060
)

MultimodalQnA/tests/test_compose_on_gaudi.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function build_docker_images() {
2222
cd $WORKPATH/docker_image_build
2323
git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout "${opea_branch:-"main"}" && cd ../
2424
echo "Build all the images with --no-cache, check docker_image_build.log for details..."
25-
service_list="multimodalqna multimodalqna-ui embedding-multimodal-bridgetower embedding-multimodal retriever-multimodal-redis lvm-tgi dataprep-multimodal-redis whisper asr"
25+
service_list="multimodalqna multimodalqna-ui embedding-multimodal-bridgetower embedding-multimodal retriever-redis lvm-tgi dataprep-multimodal-redis whisper asr"
2626
docker compose -f build.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log
2727

2828
docker pull ghcr.io/huggingface/tgi-gaudi:2.0.6
@@ -41,6 +41,7 @@ function setup_env() {
4141
export REDIS_URL="redis://${host_ip}:6379"
4242
export REDIS_HOST=${host_ip}
4343
export INDEX_NAME="mm-rag-redis"
44+
export BRIDGE_TOWER_EMBEDDING=true
4445
export LLAVA_SERVER_PORT=8399
4546
export LVM_ENDPOINT="http://${host_ip}:8399"
4647
export EMBEDDING_MODEL_ID="BridgeTower/bridgetower-large-itm-mlm-itc"
@@ -192,13 +193,13 @@ function validate_microservices() {
192193
sleep 1m
193194

194195
# multimodal retrieval microservice
195-
echo "Validating retriever-multimodal-redis"
196+
echo "Validating retriever-redis"
196197
your_embedding=$(python3 -c "import random; embedding = [random.uniform(-1, 1) for _ in range(512)]; print(embedding)")
197198
validate_service \
198-
"http://${host_ip}:7000/v1/multimodal_retrieval" \
199+
"http://${host_ip}:7000/v1/retrieval" \
199200
"retrieved_docs" \
200-
"retriever-multimodal-redis" \
201-
"retriever-multimodal-redis" \
201+
"retriever-redis" \
202+
"retriever-redis" \
202203
"{\"text\":\"test\",\"embedding\":${your_embedding}}"
203204

204205
sleep 3m

MultimodalQnA/tests/test_compose_on_xeon.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function build_docker_images() {
2222
cd $WORKPATH/docker_image_build
2323
git clone https://github.com/opea-project/GenAIComps.git && cd GenAIComps && git checkout "${opea_branch:-"main"}" && cd ../
2424
echo "Build all the images with --no-cache, check docker_image_build.log for details..."
25-
service_list="multimodalqna multimodalqna-ui embedding-multimodal-bridgetower embedding-multimodal retriever-multimodal-redis lvm-llava lvm-llava-svc dataprep-multimodal-redis whisper asr"
25+
service_list="multimodalqna multimodalqna-ui embedding-multimodal-bridgetower embedding-multimodal retriever-redis lvm-llava lvm-llava-svc dataprep-multimodal-redis whisper asr"
2626
docker compose -f build.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log
2727

2828
docker images && sleep 1m
@@ -39,6 +39,7 @@ function setup_env() {
3939
export REDIS_URL="redis://${host_ip}:6379"
4040
export REDIS_HOST=${host_ip}
4141
export INDEX_NAME="mm-rag-redis"
42+
export BRIDGE_TOWER_EMBEDDING=true
4243
export LLAVA_SERVER_PORT=8399
4344
export LVM_ENDPOINT="http://${host_ip}:8399"
4445
export LVM_MODEL_ID="llava-hf/llava-1.5-7b-hf"
@@ -190,13 +191,13 @@ function validate_microservices() {
190191
sleep 1m
191192

192193
# multimodal retrieval microservice
193-
echo "Validating retriever-multimodal-redis"
194+
echo "Validating retriever-redis"
194195
your_embedding=$(python3 -c "import random; embedding = [random.uniform(-1, 1) for _ in range(512)]; print(embedding)")
195196
validate_service \
196-
"http://${host_ip}:7000/v1/multimodal_retrieval" \
197+
"http://${host_ip}:7000/v1/retrieval" \
197198
"retrieved_docs" \
198-
"retriever-multimodal-redis" \
199-
"retriever-multimodal-redis" \
199+
"retriever-redis" \
200+
"retriever-redis" \
200201
"{\"text\":\"test\",\"embedding\":${your_embedding}}"
201202

202203
sleep 3m

docker_images_list.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ Take ChatQnA for example. ChatQnA is a chatbot application service based on the
9191
| [opea/reranking-langchain-mosec-endpoint](https://hub.docker.com/r/opea/reranking-langchain-mosec-endpoint) | [Link](https://github.com/opea-project/GenAIComps/blob/main/comps/reranks/mosec/langchain/dependency/Dockerfile) | The docker image exposed the OPEA mosec reranking endpoint microservice base on Langchain framework for GenAI application use |
9292
| [opea/reranking-tei](https://hub.docker.com/r/opea/reranking-tei) | [Link](https://github.com/opea-project/GenAIComps/blob/main/comps/reranks/tei/Dockerfile) | The docker image exposed the OPEA reranking microservice based on tei docker image for GenAI application use |
9393
| [opea/retriever-milvus](https://hub.docker.com/r/opea/retriever-milvus) | [Link](https://github.com/opea-project/GenAIComps/blob/main/comps/retrievers/milvus/langchain/Dockerfile) | The docker image exposed the OPEA retrieval microservice based on milvus vectordb for GenAI application use |
94-
| [opea/retriever-multimodal-redis](https://hub.docker.com/r/opea/retriever-multimodal-redis) | [Link](https://github.com/opea-project/GenAIComps/blob/main/comps/retrievers/multimodal/redis/langchain/Dockerfile) | The docker image exposed the OPEA retrieval microservice based on multimodal redis vectordb for GenAI application use |
9594
| [opea/retriever-pathway](https://hub.docker.com/r/opea/retriever-pathway) | [Link](https://github.com/opea-project/GenAIComps/blob/main/comps/retrievers/pathway/langchain/Dockerfile) | The docker image exposed the OPEA retrieval microservice with pathway for GenAI application use |
9695
| [opea/retriever-pgvector](https://hub.docker.com/r/opea/retriever-pgvector) | [Link](https://github.com/opea-project/GenAIComps/blob/main/comps/retrievers/pgvector/langchain/Dockerfile) | The docker image exposed the OPEA retrieval microservice based on pgvector vectordb for GenAI application use |
9796
| [opea/retriever-pinecone](https://hub.docker.com/r/opea/retriever-pinecone) | [Link](https://github.com/opea-project/GenAIComps/blob/main/comps/retrievers/pinecone/langchain/Dockerfile) | The docker image exposed the OPEA retrieval microservice based on pinecone vectordb for GenAI application use |

0 commit comments

Comments
 (0)