ソースを参照

Add huqie trie to docker image. (#4084)

### What problem does this PR solve?



### Type of change

- [x] Performance Improvement
tags/v0.15.0
Kevin Hu 10ヶ月前
コミット
742eef028f
コミッターのメールアドレスに関連付けられたアカウントが存在しません
2個のファイルの変更3行の追加1行の削除
  1. 2
    1
      Dockerfile
  2. 1
    0
      download_deps.py

+ 2
- 1
Dockerfile ファイルの表示

# Copy models downloaded via download_deps.py # Copy models downloaded via download_deps.py
RUN mkdir -p /ragflow/rag/res/deepdoc /root/.ragflow RUN mkdir -p /ragflow/rag/res/deepdoc /root/.ragflow
RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/huggingface.co,target=/huggingface.co \ RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/huggingface.co,target=/huggingface.co \
cp /huggingface.co/InfiniFlow/huqie/huqie.txt.trie /ragflow/rag/res/ && \
tar --exclude='.*' -cf - \ tar --exclude='.*' -cf - \
/huggingface.co/InfiniFlow/text_concat_xgb_v1.0 \ /huggingface.co/InfiniFlow/text_concat_xgb_v1.0 \
/huggingface.co/InfiniFlow/deepdoc \ /huggingface.co/InfiniFlow/deepdoc \
| tar -xf - --strip-components=3 -C /ragflow/rag/res/deepdoc
| tar -xf - --strip-components=3 -C /ragflow/rag/res/deepdoc
RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/huggingface.co,target=/huggingface.co \ RUN --mount=type=bind,from=infiniflow/ragflow_deps:latest,source=/huggingface.co,target=/huggingface.co \
if [ "$LIGHTEN" != "1" ]; then \ if [ "$LIGHTEN" != "1" ]; then \
(tar -cf - \ (tar -cf - \

+ 1
- 0
download_deps.py ファイルの表示

repos = [ repos = [
"InfiniFlow/text_concat_xgb_v1.0", "InfiniFlow/text_concat_xgb_v1.0",
"InfiniFlow/deepdoc", "InfiniFlow/deepdoc",
"InfiniFlow/huqie",
"BAAI/bge-large-zh-v1.5", "BAAI/bge-large-zh-v1.5",
"BAAI/bge-reranker-v2-m3", "BAAI/bge-reranker-v2-m3",
"maidalun1020/bce-embedding-base_v1", "maidalun1020/bce-embedding-base_v1",

読み込み中…
キャンセル
保存