build-flow.api/src/BuildFlow.Host/appsettings.json
xiangning 54dc3fc26e refactor(rag): 重构AI对话和工作流集成实现
- 移除IWorkflowTriggerService接口及其实现,改用Mediator模式直接发送命令
- 更新AiBotHandler移除workflowTrigger依赖,使用新命令模式触发工作流
- 修改ApproveTaskEndpoint和RejectTaskEndpoint返回bool类型并使用Send.OkAsync
- 更新appsettings.json中AI助手的默认指令配置
- 在BuildFlowHostModule.cs中移除旧的工作流触发服务注册
- 添加SSE流式响应路径前缀配置以支持RAG聊天流
- 重构ChatAgentService使用HTTP客户端工厂和运行时配置解析
- 实现AiChatOutputSanitizer用于清洗AI输出中的模板内容
- 更新EmbeddingService使用运行时配置解析器动态创建客户端
- 调整RAG查询处理器中的系统提示指令内容
- 添加构建流按钮操作的单元测试验证发布和禁用功能
- 扩展即时消息集成测试覆盖文件消息元数据处理场景
- 更新平台权限种子数据添加按钮发布和禁用权限
- 实现AI模型运行时配置解析器支持动态模型切换
2026-07-04 21:29:37 +08:00

73 lines
2.1 KiB
JSON
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.

{
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://localhost:5667",
"Protocols": "Http1AndHttp2"
}
},
"Limits": {
"MaxRequestBodySize": 104857600
}
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"Default": "Host=43.134.235.58;Port=15432;Username=rag;Password=REDACTED_PG_PASSWORD",
"MongoDb": "mongodb://appuser:REDACTED_MONGO_PASSWORD@43.134.235.58:17017/im_system?authSource=app",
"Redis": "43.134.235.58:16379,password=REDACTED_REDIS_PASSWORD,abortConnect=false"
},
"DatabaseNames": {
"Rag": "rag",
"File": "file_system",
"Im": "im_system",
"Workflow": "workflow",
"Platform": "platform"
},
"RabbitMq": {
"Host": "43.134.235.58",
"Port": 25672,
"Username": "rag",
"Password": "REDACTED_RABBITMQ_PASSWORD"
},
"S3": {
"Endpoint": "http://43.134.235.58:39200",
"AccessKey": "REDACTED_S3_ACCESS",
"SecretKey": "REDACTED_S3_SECRET",
"Region": "us-east-1"
},
"KkFileView": {
"BaseUrl": "http://localhost:8012"
},
"Jwt": {
"RequireHttps": false,
"SigningKey": "REDACTED_JWT_SIGNING_KEY_MIN_32_CHARS!!",
"Issuer": "http://localhost:5211",
"Audience": "rag-frontend"
},
"Cookie": {
"Secure": false
},
"FileService": {
"BaseUrl": "http://localhost:8080",
"Bucket": "build-flow"
},
"OpenTelemetry": {
"OtlpEndpoint": "http://localhost:4316"
},
"Ai": {
"BaseUrl": "http://localhost:1234/v1",
"ApiKey": "lm-studio",
"ChatModel": "qwen/qwen3.6-27b",
"EmbeddingModel": "text-embedding-embeddinggemma-300m",
"DefaultInstructions": "你是 BuildFlow AI 助手。普通对话直接回答;当消息明确包含知识库上下文时,优先基于上下文回答。不要输出“作为RAG知识库助手”等身份开场、Markdown标题或推理过程;不要因为普通对话没有上下文就要求用户补充资料。",
"MaxTokens": 2000,
"Temperature": 0.7
}
}