31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
# LLM API配置(支持 OpenAI SDK 格式的任意 LLM API)
|
||
# 推荐使用阿里百炼平台qwen-plus模型:https://bailian.console.aliyun.com/
|
||
# 注意消耗较大,可先进行小于40轮的模拟尝试
|
||
LLM_API_KEY=your_api_key_here
|
||
LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
|
||
LLM_MODEL_NAME=qwen-plus
|
||
|
||
# ===== Neo4j (Graphiti backend) =====
|
||
# Use bolt://localhost:7687 when running backend on host
|
||
# Use bolt://neo4j:7687 when running backend inside docker-compose
|
||
NEO4J_URI=bolt://localhost:7687
|
||
NEO4J_USER=neo4j
|
||
NEO4J_PASSWORD=your_neo4j_password
|
||
|
||
# ===== Embedding (for Graphiti vector search) =====
|
||
# Leave EMBEDDING_API_KEY empty to fall back to LLM_API_KEY
|
||
EMBEDDING_API_KEY=
|
||
EMBEDDING_BASE_URL=https://api.openai.com/v1
|
||
EMBEDDING_MODEL=text-embedding-3-small
|
||
|
||
# ===== Graphiti tuning (optional) =====
|
||
SEMAPHORE_LIMIT=10
|
||
CHUNK_TOKEN_SIZE=3000
|
||
USE_PARALLEL_RUNTIME=false
|
||
|
||
# ===== 加速 LLM 配置(可选)=====
|
||
# 注意如果不使用加速配置,env文件中就不要出现下面的配置项
|
||
LLM_BOOST_API_KEY=your_api_key_here
|
||
LLM_BOOST_BASE_URL=your_base_url_here
|
||
LLM_BOOST_MODEL_NAME=your_model_name_here
|