Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Add huqie trie to docker image. (#4084)

Kevin Hu742eef028fe3
diff --git a/Dockerfile b/Dockerfile
index 56fb92f84c..94365566c3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,10 +12,11 @@ WORKDIR /ragflow
# Copy models downloaded via download_deps.py
RUN mkdir -p /ragflow/rag/res/deepdoc /root/.ragflow
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 - \
/huggingface.co/InfiniFlow/text_concat_xgb_v1.0 \
/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 \
if [ "$LIGHTEN" != "1" ]; then \
(tar -cf - \
diff --git a/download_deps.py b/download_deps.py
index c859007c95..aa09c0ae52 100644
--- a/download_deps.py
+++ b/download_deps.py
@@ -22,6 +22,7 @@ urls = [
repos = [
"InfiniFlow/text_concat_xgb_v1.0",
"InfiniFlow/deepdoc",
+ "InfiniFlow/huqie",
"BAAI/bge-large-zh-v1.5",
"BAAI/bge-reranker-v2-m3",
"maidalun1020/bce-embedding-base_v1",