SuperAPI AI 工具集

zhimeng-agent

智能体与模型

查看项目

更新于 10-16 01:31

技能介绍

用途:zhimeng's Agent 是面向 Obsidian 知识库的 RAG 智能问答助手,支持知识库问答、日报同步到飞书、服务健康检查与向量索引重建。

主要能力与端点:POST /ask 基于知识库做 RAG 问答,请求含 question(必填)、top_k(默认5,1-20)、include_sources(默认true)、filter_folder、user_id(用于对话记忆);响应含 answer、sources(file/folder/relevance)、tokens_used。GET /health 返回 status、vectorstore_loaded、document_count。POST /index 重建索引,请求含 paths、force,响应含 status、chunks_indexed。POST /webhook/feishu 接收飞书消息事件。

使用方式:标准问答先执行 curl http://localhost:8001/health,再发送 curl -X POST http://localhost:8001/ask -H "Content-Type: application/json" -d '{"question": "你的问题", "top_k": 5}',解析 answer 与 sources。重建索引执行 curl -X POST http://localhost:8001/index -H "Content-Type: application/json" -d '{"force": true}',随后用 /health 确认 document_count 更新。启动服务:cd /Users/qitmac001395/workspace/QAL/ideas/apps/zhimeng-agent 后运行 poetry run uvicorn src.main:app --host 0.0.0.0 --port 8001 --reload;飞书长连接运行 poetry run python src/feishu_ws.py。

适用场景:知识库问答、日报同步飞书、知识库维护与索引更新。可与 feishu-messaging、obsidian-organize 技能集成。

限制:服务依赖本地环境、端口 8001 与 config/.env 配置;对话记忆按 user_id 隔离,无 user_id 不保留历史;完整重建索引约 2-5 分钟;飞书长连接需 App 开启机器人消息长连接能力;每次问答约消耗 Claude API 费用。