Files
MemoryBear/api/env.example
lanceyq c27ca5a380 chore(config): update gitignore and env.example
- Add .qoder/repowiki/zh/ to .gitignore to exclude generated repowiki content
- Update CORE_GENERAL_TYPES in env.example to align with ontology.md 13-category entity taxonomy (Chinese labels)
- Add PIPELINE_SNAPSHOT_ENABLED config for extraction pipeline stage snapshot output
- Fix missing newline at end of env.example
2026-05-08 11:28:44 +08:00

152 lines
4.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Neo4j Configuration (记忆系统数据库)
NEO4J_URI=
NEO4J_USERNAME=
NEO4J_PASSWORD=
# External Order API Configuration
EXTERNAL_ORDER_API_URL=https://api.example.com/v1
EXTERNAL_ORDER_API_KEY=your_api_key_here
# Postgres Database configuration
DB_HOST=
DB_PORT=
DB_USER=
DB_PASSWORD=
DB_NAME=
# Database Migration Configuration
# Set to true to automatically upgrade database schema on startup
DB_AUTO_UPGRADE=true
# Redis configuration
REDIS_HOST=
REDIS_PORT=
REDIS_DB=
REDIS_PASSWORD=password
#celery
# NOTE: 不要使用 BROKER_URL / RESULT_BACKEND / CELERY_BROKER / CELERY_BACKEND
# 这些名称会被 Celery CLI 劫持,详见 docs/celery-env-bug-report.md
REDIS_DB_CELERY_BROKER=
REDIS_DB_CELERY_BACKEND=
# Memory Cache Regeneration Configuration
# Interval in hours for regenerating memory insight and user summary cache
# Default: 24 hours
MEMORY_CACHE_REGENERATION_HOURS=24
# ElasticSearch configuration
ELASTICSEARCH_HOST=
ELASTICSEARCH_PORT=
ELASTICSEARCH_USERNAME=
ELASTICSEARCH_PASSWORD=
ELASTICSEARCH_VERIFY_CERTS=
ELASTICSEARCH_CA_CERTS=
ELASTICSEARCH_REQUEST_TIMEOUT=
ELASTICSEARCH_RETRY_ON_TIMEOUT=
ELASTICSEARCH_MAX_RETRIES=
# xinference configuration
XINFERENCE_URL=
# LangSmith configuration
LANGCHAIN_TRACING_V2=
LANGCHAIN_TRACING=
LANGCHAIN_API_KEY=
LANGCHAIN_ENDPOINT=
# This key is used for signing JWT tokens.
# It should be a long, random string and kept secret.
# Generate a new one with: openssl rand -hex 32
SECRET_KEY=your-secret-key-here-generate-with-openssl-rand-hex-32
# official environment system version
SYSTEM_VERSION=
# JWT Token expiration settings
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# Single Sign-On configuration
ENABLE_SINGLE_SESSION=
# File Upload
MAX_FILE_SIZE=52428800 # 50MB:50 * 1024 * 1024
FILE_PATH=/files
FILE_LOCAL_SERVER_URL="http://localhost:8000/api"
# Storage Backend Configuration
# Supported values: local, oss, s3
# Default: local
STORAGE_TYPE=local
# Aliyun OSS Configuration (required when STORAGE_TYPE=oss)
OSS_ENDPOINT=https://oss-cn-hangzhou.aliyuncs.com
OSS_ACCESS_KEY_ID=your_oss_access_key_id
OSS_ACCESS_KEY_SECRET=your_oss_access_key_secret
OSS_BUCKET_NAME=your_bucket_name
# AWS S3 Configuration (required when STORAGE_TYPE=s3)
S3_REGION=us-east-1
S3_ACCESS_KEY_ID=your_s3_access_key_id
S3_SECRET_ACCESS_KEY=your_s3_secret_access_key
S3_BUCKET_NAME=your_bucket_name
# RAG Setting
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
HF_ENDPOINT=https://hf-mirror.com
MINERU_EXECUTABLE=mineru
MINERU_APISERVER=http://host.docker.internal:9987
MINERU_OUTPUT_DIR=/files
MINERU_BACKEND=pipeline
MINERU_DELETE_OUTPUT=1
TEXTLN_APISERVER=https://api.textin.com/ai/service/v1/pdf_to_markdown
TEXTLN_APP_ID=
TEXTLN_SECRET_CODE=
# vision model
QWEN3_OMNI_API_KEY=
QWEN3_OMNI_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
QWEN3_OMNI_MODEL_NAME=qwen3-omni-flash
# VOLC ASR
VOLC_APP_KEY=
VOLC_ACCESS_KEY=
VOLC_SUBMIT_URL=
VOLC_QUERY_URL=
# Server Configuration
SERVER_IP=127.0.0.1
web_search=
KB_embedding_id=
KB_reranker_id=
KB_llm_id=
KB_image2text_id=
config_id=
reranker_id=
# Email Configuration
SMTP_SERVER=
SMTP_PORT=
SMTP_USER=
SMTP_PASSWORD=
# 本体类型融合配置 (记得写入env_example)
GENERAL_ONTOLOGY_FILES=api/app/core/memory/ontology_services/General_purpose_entity.ttl # 指定要加载的本体文件路径,多个文件用逗号分隔
ENABLE_GENERAL_ONTOLOGY_TYPES=true # 总开关,控制是否启用通用本体类型融合功能(false = 不使用任何本体类型指导)
MAX_ONTOLOGY_TYPES_IN_PROMPT=100 # 限制传给 LLM 的类型数量,防止 Prompt 过长
# 核心类型白名单,与 ontology.md Entity Ontology 的 13 类保持一致
CORE_GENERAL_TYPES=人物,组织,群体,角色职业,地点设施,物品设备,软件平台,识别联系信息,文档媒体,知识能力,偏好习惯,具体目标,称呼别名
ONTOLOGY_EXPERIMENT_MODE=true # 是否允许通过 API 动态切换本体配置
# 萃取阶段快照:将每个阶段的输出保存到 logs/memory-output/snapshots/
PIPELINE_SNAPSHOT_ENABLED=false