Files
AIEC-new/AIEC-RAG/.env.example
2025-10-17 09:31:28 +08:00

87 lines
2.0 KiB
Plaintext
Raw Permalink 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.

# =======================
# AIEC-RAG 环境配置示例
# =======================
# 复制此文件为 .env 并填入实际配置值
# =======================
# API配置
# =======================
# OneAPI/DashScope API密钥
# 获取地址https://dashscope.console.aliyun.com/
ONEAPI_KEY=sk-your-api-key-here
# =======================
# 模型配置
# =======================
# 主语言模型(用于生成答案)
# 可选qwen2-7b-instruct, qwen-max, gpt-3.5-turbo等
ONEAPI_MODEL=qwen2-7b-instruct
# 生成模型(用于查询分解等任务)
ONEAPI_MODEL_GEN=qwen2-7b-instruct
# 最大上下文模型(用于处理长文本)
ONEAPI_MODEL_MAX=qwen2-7b-instruct
# 嵌入模型(用于向量化)
# 可选text-embedding-v3, text-embedding-ada-002等
ONEAPI_MODEL_EMBED=text-embedding-v3
# =======================
# Elasticsearch配置
# =======================
# Elasticsearch服务器地址
# 本地部署http://localhost:9200
# 远程部署http://your-es-server:9200
ELASTICSEARCH_HOST=http://localhost:9200
# Elasticsearch认证信息
ELASTICSEARCH_USERNAME=elastic
ELASTICSEARCH_PASSWORD=your-password-here
# =======================
# LangSmith配置可选
# =======================
# 是否启用LangSmith追踪
# true: 启用追踪false: 禁用追踪
LANGCHAIN_TRACING_V2=false
# LangSmith API端点
LANGCHAIN_ENDPOINT=https://api.smith.langchain.com
# LangSmith API密钥
# 获取地址https://smith.langchain.com/
LANGCHAIN_API_KEY=lsv2_pt_your_api_key_here
# LangSmith项目名称
LANGCHAIN_PROJECT=aiec-rag
# =======================
# 服务配置(可选)
# =======================
# 服务端口默认8100
# SERVICE_PORT=8100
# 服务主机默认0.0.0.0
# SERVICE_HOST=0.0.0.0
# 调试模式默认false
# DEBUG_MODE=false
# =======================
# 性能配置(可选)
# =======================
# 最大并发请求数
# MAX_CONCURRENT_REQUESTS=10
# 请求超时时间(秒)
# REQUEST_TIMEOUT=120
# 缓存大小MB
# CACHE_SIZE=512