-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
40 lines (34 loc) · 1.2 KB
/
.env.example
File metadata and controls
40 lines (34 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# DataMind 配置模板
# 复制为 .env 并填入你的实际值: cp .env.example .env
# ---- LLM ----
LLM_API_BASE=https://api.openai.com/v1
LLM_API_KEY=sk-your-api-key-here
LLM_MODEL=gpt-4o-mini
# ---- Embedding ----
USE_LOCAL_EMBEDDING=false
EMBEDDING_API_BASE=https://api.openai.com/v1
EMBEDDING_API_KEY=sk-your-api-key-here
EMBEDDING_MODEL=text-embedding-3-small
LOCAL_EMBEDDING_MODEL=BAAI/bge-small-zh-v1.5
# ---- Retriever ----
RETRIEVER_MODE=simple
MULTI_QUERY_COUNT=3
SIMILARITY_TOP_K=3
# ---- Memory ----
MEMORY_TOKEN_LIMIT=30000
CHAT_HISTORY_TOKEN_RATIO=0.7
# ---- Multi-Modal ----
# IMAGE_EMBEDDING_MODE: disabled (默认) | clip | vlm_describe
IMAGE_EMBEDDING_MODE=disabled
# CLIP_MODEL: CLIP 模型名 (clip 模式使用)
CLIP_MODEL=openai/clip-vit-base-patch32
# VLM_MODEL: VLM 模型 (vlm_describe 模式使用,为空时复用 LLM_MODEL)
VLM_MODEL=
# USE_MULTIMODAL_LLM: 回答时是否把检索到的图片传给多模态 LLM
USE_MULTIMODAL_LLM=false
# IMAGE_SIMILARITY_TOP_K: 图片检索返回数量
IMAGE_SIMILARITY_TOP_K=2
# ---- Data Profile ----
# 切换不同的知识库 profile (对应 data/profiles/{DATA_PROFILE}/ 目录)
# 索引会自动隔离到 storage/{DATA_PROFILE}/
DATA_PROFILE=default