CategorizeLabel/config/config.yaml
2025-10-15 17:19:26 +08:00

31 lines
1.4 KiB
YAML
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.

# 产品分类模块配置文件
# 文件路径配置
files:
input_file: "input/product_list.xlsx" # 产品列表Excel文件路径
category_file: "config/product_type.jsonl" # 产品类别配置JSONL文件路径
output_file: "output/classification_result.jsonl" # 分类结果JSONL输出文件路径
csv_output_file: "output/classification_result.csv" # 分类结果CSV输出文件路径可选包含原始数据+分类结果设置为null则不输出CSV
temp_request_file: "temp_batch_requests.jsonl" # 临时请求文件路径
# API配置
api:
mode: "direct" # 调用模式batch(批量模式,异步,成本低) 或 direct(直接模式,同步,成本高)
api_key: "sk-bd5ee62703bc41fc9b8a55d748dc1eb8" # API Key如果为null则从环境变量DASHSCOPE_API_KEY读取
base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1" # API服务地址
model: "qwen-flash" # 使用的模型名称
completion_window: "24h" # Batch任务等待时间
max_retries: 3 # Direct模式最大重试次数
retry_delay: 1 # Direct模式重试延迟
# 日志配置
logging:
log_dir: "logs" # 日志目录
log_level: "INFO" # 日志级别DEBUG, INFO, WARNING, ERROR
# Batch任务配置
batch:
poll_interval: 60 # 轮询间隔(秒)
max_wait_time: 86400 # 最大等待时间默认24小时