RAG数据库生成

This commit is contained in:
2026-04-19 15:01:40 +08:00
parent c18e8a9860
commit cc8ef41ef9
17 changed files with 1089 additions and 577 deletions

View File

@@ -18,6 +18,10 @@ ENV QDRANT_COLLECTION_NAME=mem0_user_memories
ENV MEMORY_SUMMARIZE_INTERVAL=10
ENV ENABLE_GRAPH_TRACE=false
# unstructured 库 spaCy 模型配置
ENV UNSTRUCTURED_LANGUAGE=eng
ENV SPACY_MODEL=en_core_web_sm
# 日志配置
ENV LOG_LEVEL=WARNING
ENV DEBUG=false
@@ -28,6 +32,13 @@ ENV DEBUG=false
COPY requirement.txt .
RUN pip install --no-cache-dir -r requirement.txt
# =============================================================================
# 预下载 spaCy 语言模型(避免容器启动时重复下载)
# =============================================================================
RUN pip install --no-cache-dir spacy && \
python -m spacy download en_core_web_sm && \
python -m spacy download zh_core_web_sm
# =============================================================================
# 复制项目代码 (只复制必需的文件夹,避免依赖被忽略的目录)
# =============================================================================