Skip to content

Commit 981ba2a

Browse files
author
longbingljw
authored
fix:table structure parsing (#29)
1 parent 6295c29 commit 981ba2a

File tree

4 files changed

+11
-83
lines changed

4 files changed

+11
-83
lines changed

api/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ COPY --from=packages ${VIRTUAL_ENV} ${VIRTUAL_ENV}
6868
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
6969

7070
# Download nltk data
71-
RUN python -c "import nltk; nltk.download('punkt'); nltk.download('averaged_perceptron_tagger')"
71+
RUN mkdir -p /app/api/nltk_data && \
72+
python -c "import nltk; \
73+
downloader = nltk.downloader.Downloader('https://mirrors.tuna.tsinghua.edu.cn/nltk_data/'); \
74+
downloader.download('punkt', download_dir='/app/api/nltk_data'); \
75+
downloader.download('averaged_perceptron_tagger', download_dir='/app/api/nltk_data'); \
76+
"
7277

7378
ENV TIKTOKEN_CACHE_DIR=/app/api/.tiktoken_cache
7479

@@ -77,9 +82,6 @@ RUN python -c "import tiktoken; tiktoken.encoding_for_model('gpt2')"
7782
# Copy source code
7883
COPY . /app/api/
7984

80-
# Fix pyobvector bug
81-
RUN python /app/api/fix_pyobvector_bug.py
82-
8385
# Copy entrypoint
8486
COPY docker/entrypoint.sh /entrypoint.sh
8587
RUN chmod +x /entrypoint.sh

api/fix_pyobvector_bug.py

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

api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ vdb = [
199199
"pgvector==0.2.5",
200200
"pymilvus~=2.5.0",
201201
"pymochow==1.3.1",
202-
"pyobvector~=0.1.6",
202+
"pyobvector~=0.2.15",
203203
"qdrant-client==1.9.0",
204204
"tablestore==6.2.0",
205205
"tcvectordb~=1.6.4",

api/uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)