Skip to content

Commit

Permalink
Dataprep | PGVector : Added support for new changes in utils.py (#269)
Browse files Browse the repository at this point in the history
* Added support for new changes in utils.py

Signed-off-by: Yogesh <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* trigger GitHub actions

Signed-off-by: Yogesh <[email protected]>

---------

Signed-off-by: Yogesh <[email protected]>
Co-authored-by: Yogesh <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: lvliang-intel <[email protected]>
  • Loading branch information
4 people authored Jul 9, 2024
1 parent 9ecc5c3 commit 54eb7ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions comps/dataprep/pgvector/langchain/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ FROM python:3.11-slim

ENV LANG C.UTF-8

ARG ARCH="cpu"

RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
build-essential \
libgl1-mesa-glx \
libjemalloc-dev \
default-jre \
vim

RUN useradd -m -s /bin/bash user && \
Expand All @@ -21,6 +24,7 @@ USER user
COPY comps /home/user/comps

RUN pip install --no-cache-dir --upgrade pip setuptools && \
if [ ${ARCH} = "cpu" ]; then pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu; fi && \
pip install --no-cache-dir -r /home/user/comps/dataprep/pgvector/langchain/requirements.txt

ENV PYTHONPATH=$PYTHONPATH:/home/user
Expand Down
4 changes: 4 additions & 0 deletions comps/dataprep/pgvector/langchain/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
beautifulsoup4
cairosvg
docarray[full]
docx2txt
easyocr
fastapi
huggingface_hub
langchain
langchain-community
langsmith
markdown
numpy
opentelemetry-api
opentelemetry-exporter-otlp
Expand All @@ -17,5 +20,6 @@ prometheus-fastapi-instrumentator==7.0.0
psycopg2-binary
pymupdf
python-docx
python-pptx
sentence_transformers
shortuuid

0 comments on commit 54eb7ab

Please sign in to comment.