Skip to content

Commit

Permalink
fix reorg bug (#779)
Browse files Browse the repository at this point in the history
Signed-off-by: Xinyao Wang <xinyao.wang@intel.com>
  • Loading branch information
XinyaoWa authored Sep 10, 2024
1 parent d73129c commit 504228e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ repos:
- id: check-json
exclude: |
(?x)^(
ChatQnA/svelte/tsconfig.json|
ChatQnA/ui/svelte/tsconfig.json|
SearchQnA/ui/svelte/tsconfig.json|
DocSum/svelte/tsconfig.json
DocSum/ui/svelte/tsconfig.json
)$
- id: check-yaml
args: [--allow-multiple-documents]
Expand Down
7 changes: 4 additions & 3 deletions DocIndexRetriever/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

FROM python:3.11-slim

COPY GenAIComps /home/user/GenAIComps

RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
libgl1-mesa-glx \
libjemalloc-dev \
Expand All @@ -14,11 +12,14 @@ RUN useradd -m -s /bin/bash user && \
mkdir -p /home/user && \
chown -R user /home/user/

WORKDIR /home/user/
RUN git clone https://github.com/opea-project/GenAIComps.git

WORKDIR /home/user/GenAIComps
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt

COPY GenAIExamples/DocIndexRetriever/retrieval_tool.py /home/user/retrieval_tool.py
COPY ./retrieval_tool.py /home/user/retrieval_tool.py

ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps

Expand Down
1 change: 1 addition & 0 deletions DocIndexRetriever/docker_image_build/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
context: ../
dockerfile: ./Dockerfile
image: ${REGISTRY:-opea}/doc-index-retriever:${TAG:-latest}
embedding-tei:
Expand Down
6 changes: 3 additions & 3 deletions DocIndexRetriever/tests/test_compose_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function build_docker_images() {
docker pull ghcr.io/huggingface/tgi-gaudi:latest
docker pull redis/redis-stack:7.2.0-v9

cd $WORKPATH/../../
docker build -t opea/doc-index-retriever:latest -f GenAIExamples/DocIndexRetriever/Dockerfile .
cd $WORKPATH/
docker build -t opea/doc-index-retriever:latest -f ./Dockerfile .
}

function start_services() {
Expand All @@ -47,7 +47,7 @@ function start_services() {
export RERANK_SERVICE_PORT=18000

# Start Docker Containers
docker compose -f docker_compose.yaml up -d
docker compose up -d
sleep 20
}

Expand Down

0 comments on commit 504228e

Please sign in to comment.