Skip to content

配置参考

PieKBS 通过 KB 根目录下的 config.yaml 配置。

示例

yaml
server:
  port: 8766
  api_key: "your-secret-key"   # 省略则禁用认证

distill:
  provider: openai              # openai | anthropic | ollama
  model: gpt-4o-mini
  api_key: "${OPENAI_API_KEY}"
  base_url: ""                  # 可选,用于自定义端点

watcher:
  debounce_ms: 500              # 文件变化防抖延迟

server

默认值描述
port8766HTTP 服务器端口
api_keyMCP 认证 API Key,省略则禁用认证。

distill

piekbs distillpiekbs synthesize 需要此配置。

默认值描述
providerLLM 提供商:openaianthropicollama
model模型名称
api_keyAPI Key(支持环境变量替换)
base_url自定义 API 端点(可选)

watcher

默认值描述
debounce_ms500最后一次文件变化后等待多少毫秒再触发提炼

Released under the MIT License.