58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
# BidMaster-CLI 默认配置
|
||
|
||
# LLM设置
|
||
llm:
|
||
# 提供商: openai, azure_openai, anthropic, zhipu, qwen, deepseek, ollama
|
||
llm_provider: "openai"
|
||
model_name: "gpt-4"
|
||
temperature: 0.1
|
||
max_tokens: 4000
|
||
|
||
# Azure OpenAI 特定配置(使用azure_openai时需要)
|
||
# azure_api_version: "2024-02-15-preview"
|
||
# azure_deployment: "your-deployment-name"
|
||
|
||
# Ollama 配置(使用ollama时需要)
|
||
# ollama_host: "http://localhost:11434"
|
||
|
||
# 向量数据库设置
|
||
vector_db:
|
||
persist_directory: "./data/kb"
|
||
collection_name: "bidmaster_kb"
|
||
|
||
# 嵌入模型设置
|
||
embedding:
|
||
model_name: "text-embedding-3-small"
|
||
chunk_size: 1000
|
||
chunk_overlap: 200
|
||
|
||
# 文档处理设置
|
||
document:
|
||
max_file_size: 50MB
|
||
supported_formats: [".pdf", ".docx", ".txt", ".md"]
|
||
|
||
# 性能设置
|
||
performance:
|
||
max_workers: 4
|
||
timeout: 300
|
||
|
||
# 交互设置
|
||
interaction:
|
||
interaction_timeout: 60 # 用户输入超时时间(秒)
|
||
|
||
# 日志设置
|
||
logging:
|
||
level: INFO
|
||
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
||
|
||
# RAG 检索与上下文控制(注意:这些必须是顶层字段,才能映射到 Settings)
|
||
rag_search_top_k: 3
|
||
rag_search_top_k_max: 20
|
||
rag_similarity_threshold: 0.0
|
||
|
||
tender_doc_search_top_k: 3
|
||
tender_doc_search_top_k_max: 20
|
||
tender_doc_similarity_threshold: 0.2
|
||
|
||
rag_context_dedup: true
|
||
rag_context_token_budget: 1200 |