Skip to content

Commit 619d941

Browse files
Set no wrapper ChatQnA as default (#891)
Signed-off-by: lvliang-intel <liang1.lv@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b71a12d commit 619d941

File tree

66 files changed

+634
-4781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+634
-4781
lines changed

ChatQnA/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ RUN git clone https://github.com/opea-project/GenAIComps.git
1919

2020
WORKDIR /home/user/GenAIComps
2121
RUN pip install --no-cache-dir --upgrade pip && \
22-
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt
22+
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt && \
23+
pip install --no-cache-dir langchain_core
2324

2425
COPY ./chatqna.py /home/user/chatqna.py
2526

ChatQnA/Dockerfile.guardrails

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ RUN git clone https://github.com/opea-project/GenAIComps.git
1919

2020
WORKDIR /home/user/GenAIComps
2121
RUN pip install --no-cache-dir --upgrade pip && \
22-
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt
22+
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt && \
23+
pip install --no-cache-dir langchain_core
2324

24-
COPY ./chatqna_guardrails.py /home/user/chatqna_guardrails.py
25+
COPY ./chatqna.py /home/user/chatqna.py
2526

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

@@ -31,4 +32,4 @@ WORKDIR /home/user
3132

3233
RUN echo 'ulimit -S -n 999999' >> ~/.bashrc
3334

34-
ENTRYPOINT ["python", "chatqna_guardrails.py"]
35+
ENTRYPOINT ["python", "chatqna.py", "--with-guardrails"]

ChatQnA/Dockerfile.no_wrapper

Lines changed: 0 additions & 31 deletions
This file was deleted.

ChatQnA/Dockerfile.no_wrapper_without_rerank

Lines changed: 0 additions & 31 deletions
This file was deleted.

ChatQnA/Dockerfile.without_rerank

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
FROM python:3.11-slim
77

88
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
9+
git \
910
libgl1-mesa-glx \
10-
libjemalloc-dev \
11-
git
11+
libjemalloc-dev
1212

1313
RUN useradd -m -s /bin/bash user && \
1414
mkdir -p /home/user && \
@@ -19,9 +19,10 @@ RUN git clone https://github.com/opea-project/GenAIComps.git
1919

2020
WORKDIR /home/user/GenAIComps
2121
RUN pip install --no-cache-dir --upgrade pip && \
22-
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt
22+
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt && \
23+
pip install --no-cache-dir langchain_core
2324

24-
COPY ./chatqna_without_rerank.py /home/user/chatqna_without_rerank.py
25+
COPY ./chatqna.py /home/user/chatqna.py
2526

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

@@ -31,4 +32,4 @@ WORKDIR /home/user
3132

3233
RUN echo 'ulimit -S -n 999999' >> ~/.bashrc
3334

34-
ENTRYPOINT ["python", "chatqna_without_rerank.py"]
35+
ENTRYPOINT ["python", "chatqna.py", "--without-rerank"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ spec:
327327
envFrom:
328328
- configMapRef:
329329
name: qna-config
330-
image: opea/tei-gaudi:latest
330+
image: ghcr.io/huggingface/tei-gaudi:latest
331331
imagePullPolicy: IfNotPresent
332332
name: reranking-dependency-deploy
333333
ports:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ spec:
327327
envFrom:
328328
- configMapRef:
329329
name: qna-config
330-
image: opea/tei-gaudi:latest
330+
image: ghcr.io/huggingface/tei-gaudi:latest
331331
imagePullPolicy: IfNotPresent
332332
name: reranking-dependency-deploy
333333
ports:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ spec:
327327
envFrom:
328328
- configMapRef:
329329
name: qna-config
330-
image: opea/tei-gaudi:latest
330+
image: ghcr.io/huggingface/tei-gaudi:latest
331331
imagePullPolicy: IfNotPresent
332332
name: reranking-dependency-deploy
333333
ports:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ spec:
327327
envFrom:
328328
- configMapRef:
329329
name: qna-config
330-
image: opea/tei-gaudi:latest
330+
image: ghcr.io/huggingface/tei-gaudi:latest
331331
imagePullPolicy: IfNotPresent
332332
name: reranking-dependency-deploy
333333
ports:

0 commit comments

Comments
 (0)