主要更新: - 新增 transform 意图:支持 Word/Excel/Markdown 格式互转 - 新增 edit 意图:使用 LLM 润色编辑文档内容 - 智能指令接口增加异步执行模式(async_execute 参数) - 修复 Word 模板导出文档损坏问题(改用临时文件方式) - 优化 intent_parser 增加 transform/edit 关键词识别 新增文件: - app/api/endpoints/instruction.py: 智能指令 API 端点 - app/services/multi_doc_reasoning_service.py: 多文档推理服务 其他优化: - RAG 服务混合搜索(BM25 + 向量)融合 - 模板填充服务表头匹配增强 - Word AI 解析服务返回结构完善 - 前端 InstructionChat 组件对接真实 API
15 lines
325 B
Python
15 lines
325 B
Python
"""
|
|
指令执行模块
|
|
|
|
支持文档智能操作交互,包括意图解析和指令执行
|
|
"""
|
|
from .intent_parser import IntentParser, intent_parser
|
|
from .executor import InstructionExecutor, instruction_executor
|
|
|
|
__all__ = [
|
|
"IntentParser",
|
|
"intent_parser",
|
|
"InstructionExecutor",
|
|
"instruction_executor",
|
|
]
|