feat: add AI学习助手 agent (KG+RAG ideal) and renshenguo feishu bot
- Add AI学习助手 agent creation script with all 39 tools, 3-layer KG+RAG memory - Add renshenguo (人参果) feishu bot integration (app_service + ws_handler) - Register renshenguo WS client in main.py startup - Add RENSHENGUO_APP_ID / RENSHENGUO_APP_SECRET / RENSHENGUO_AGENT_ID config - Reorganize docs from root into docs/ subdirectories - Move startup scripts to scripts/startup/ - Various backend optimizations and tool improvements Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1
misc/poetry/三字经.md
Normal file
1
misc/poetry/三字经.md
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
38
misc/poetry/三字经里的人之初.md
Normal file
38
misc/poetry/三字经里的人之初.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# 《三字经》选段:从"人之初"到"不知义"
|
||||
## 原文内容
|
||||
人之初,性本善。
|
||||
性相近,习相远。
|
||||
苟不教,性乃迁。
|
||||
教之道,贵以专。
|
||||
昔孟母,择邻处。
|
||||
子不学,断机杼。
|
||||
窦燕山,有义方。
|
||||
教五子,名俱扬。
|
||||
养不教,父之过。
|
||||
教不严,师之惰。
|
||||
子不学,非所宜。
|
||||
幼不学,老何为。
|
||||
玉不琢,不成器。
|
||||
人不学,不知义。
|
||||
## 白话译文
|
||||
人刚出生的时候,本性都是善良的。
|
||||
天性虽然相近,但后天的习惯却相差很远。
|
||||
如果不加以教育,善良的本性就会改变。
|
||||
教育的方法,贵在专心致志。
|
||||
从前孟子的母亲,为了选择好的邻居而三次搬家。
|
||||
孟子不学习,她就割断织布机上的布来教育他。
|
||||
窦燕山有好的教育方法。
|
||||
他教育的五个儿子,都很有成就,名声远扬。
|
||||
生养孩子却不教育,是父亲的过错。
|
||||
教育学生却不严格,是老师的懒惰。
|
||||
孩子不学习,是不应该的。
|
||||
小时候不学习,老了能做什么呢?
|
||||
玉石不经过雕琢,就不能成为精美的器物。
|
||||
人不学习,就不懂得道义。
|
||||
## 注释
|
||||
1. **人之初,性本善**:儒家思想认为人性本善,这是孟子"性善论"的观点。
|
||||
2. **性相近,习相远**:出自《论语·阳货》,孔子说:"性相近也,习相远也。"
|
||||
3. **苟不教,性乃迁**:如果不教育,善良的本性就会改变。
|
||||
4. **教之道,贵以专**:教育的方法,最重要的是专心致志。
|
||||
5. **昔孟母,择邻处**:孟母三迁的故事,强调环境对教育的重要性。
|
||||
6. **子不学,断机杼**:孟母断织
|
||||
30
misc/poetry/望庐山瀑布.md
Normal file
30
misc/poetry/望庐山瀑布.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# 望庐山瀑布
|
||||
**作者:李白(唐)**
|
||||
日照香炉生紫烟,
|
||||
遥看瀑布挂前川。
|
||||
飞流直下三千尺,
|
||||
疑是银河落九天。
|
||||
---
|
||||
## 诗歌赏析
|
||||
### 创作背景
|
||||
《望庐山瀑布》是唐代伟大诗人李白创作的一首七言绝句,描绘了庐山瀑布的壮丽景色,展现了诗人豪放不羁的个性和对大自然的热爱。
|
||||
### 诗句解析
|
||||
1. **"日照香炉生紫烟"**:阳光照耀下的香炉峰升起紫色的烟雾,为瀑布营造了神秘的氛围。
|
||||
2. **"遥看瀑布挂前川"**:远远望去,瀑布像一条白练悬挂在山川之间。
|
||||
3. **"飞流直下三千尺"**:瀑布从高处飞泻而下,气势磅礴,夸张手法突显其雄伟。
|
||||
4. **"疑是银河落九天"**:诗人展开想象,怀疑这是天上的银河落到了人间,极富浪漫主义色彩。
|
||||
### 艺术特色
|
||||
- **夸张手法**:"三千尺"的夸张描写增强了瀑布的雄伟气势
|
||||
- **比喻精妙**:将瀑布比作银河,形象生动
|
||||
- **意境开阔**:从近景到远景,从现实到想象,意境层层递进
|
||||
- **语言简练**:短短四句,却描绘出完整的画面
|
||||
### 历史评价
|
||||
这首诗被誉为描写瀑布的千古绝唱,充分展现了李白诗歌的浪漫主义风格和超凡的想象力,成为中国古代山水诗的典范之作。
|
||||
---
|
||||
## 扩展阅读
|
||||
### 庐山简介
|
||||
庐山位于江西省九江市,是中国著名的风景名胜区和避暑胜地,以雄、奇、险、秀闻名于世,素有"匡庐奇秀甲天下"之美誉。
|
||||
### 李白与庐山
|
||||
李白曾多次游览庐山,留下了多首描写庐山的诗篇。《望庐山瀑布》是其最著名的庐山诗作之一,充分展现了他对自然山水的热爱和独特的艺术视角。
|
||||
### 相关诗作
|
||||
1. **《庐山谣寄卢侍御
|
||||
46
misc/poetry/满江红.md
Normal file
46
misc/poetry/满江红.md
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
title: 满江红·写怀
|
||||
author: 岳飞
|
||||
date: 2024-12-01
|
||||
---
|
||||
|
||||
# 满江红·写怀
|
||||
|
||||
**怒发冲冠,凭栏处、潇潇雨歇。**
|
||||
**抬望眼,仰天长啸,壮怀激烈。**
|
||||
**三十功名尘与土,八千里路云和月。**
|
||||
**莫等闲、白了少年头,空悲切!**
|
||||
|
||||
**靖康耻,犹未雪。**
|
||||
**臣子恨,何时灭!**
|
||||
**驾长车,踏破贺兰山缺。**
|
||||
**壮志饥餐胡虏肉,笑谈渴饮匈奴血。**
|
||||
**待从头、收拾旧山河,朝天阙。**
|
||||
|
||||
---
|
||||
|
||||
## 创作背景
|
||||
|
||||
《满江红·写怀》是南宋抗金名将岳飞创作的一首词。此词上片抒写作者对中原重陷敌手的悲愤,对局势前功尽弃的痛惜,表达了自己继续努力争取壮年立功的心愿;下片抒写作者对民族敌人的深仇大恨,对祖国统一的殷切愿望,对国家朝廷的赤胆忠诚。
|
||||
|
||||
## 词牌解析
|
||||
|
||||
- **词牌名**:满江红
|
||||
- **字数**:93字
|
||||
- **韵脚**:仄韵格,气势磅礴
|
||||
- **创作时间**:约公元1136年(绍兴六年)
|
||||
|
||||
## 艺术特色
|
||||
|
||||
1. **情感激昂**:全词情感激越,气势磅礴
|
||||
2. **对仗工整**:"三十功名尘与土,八千里路云和月"等句对仗精妙
|
||||
3. **意象鲜明**:运用"怒发冲冠"、"仰天长啸"等生动意象
|
||||
4. **爱国情怀**:表达了强烈的爱国主义精神和民族气节
|
||||
|
||||
## 历史影响
|
||||
|
||||
这首词成为中华民族爱国主义精神的象征之一,激励了无数仁人志士为国家和民族奋斗。
|
||||
|
||||
---
|
||||
|
||||
*注:此版本为经典传世版本,收录于《全宋词》。*
|
||||
4
misc/poetry/静夜思.md
Normal file
4
misc/poetry/静夜思.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# 静夜思
|
||||
|
||||
床前明月光,疑是地上霜。
|
||||
举头望明月,低头思故乡。
|
||||
2
misc/test-data/123.md
Normal file
2
misc/test-data/123.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# 123
|
||||
e2e zhini12 123.md marker
|
||||
1
misc/test-data/456.md
Normal file
1
misc/test-data/456.md
Normal file
@@ -0,0 +1 @@
|
||||
# 456.md 文件已创建</|DSML|parameter>
|
||||
6
misc/test-data/daily_reminder_config.md
Normal file
6
misc/test-data/daily_reminder_config.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# ⏰ 每日作业提醒配置
|
||||
- **任务名称**: 每日作业任务提醒
|
||||
- **提醒时间**: 每天早上 8:00
|
||||
- **Cron表达式**: 0 8 * * *
|
||||
- **创建时间**: 2026-05-02 23:47
|
||||
- **状态**: ✅ 待系统激活
|
||||
99
misc/test-data/index.html
Normal file
99
misc/test-data/index.html
Normal file
@@ -0,0 +1,99 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>欢迎页面</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
}
|
||||
.container {
|
||||
text-align: center;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
padding: 50px 60px;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
h1 {
|
||||
font-size: 48px;
|
||||
margin-bottom: 15px;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
p {
|
||||
font-size: 18px;
|
||||
opacity: 0.9;
|
||||
margin-bottom: 30px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 12px 36px;
|
||||
background: #fff;
|
||||
color: #764ba2;
|
||||
text-decoration: none;
|
||||
border-radius: 50px;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
transition: all 0.3s ease;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
.btn:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.time {
|
||||
margin-top: 20px;
|
||||
font-size: 14px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>🌞 你好,世界!</h1>
|
||||
<p>这是一个简单美观的 HTML 页面。<br>欢迎来到 D:\aaa\test 目录。</p>
|
||||
<button class="btn" onclick="showMessage()">点我试试</button>
|
||||
<div class="time" id="timeDisplay"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 显示欢迎消息
|
||||
function showMessage() {
|
||||
alert('🎉 欢迎来到我的页面!');
|
||||
}
|
||||
|
||||
// 显示当前时间
|
||||
function updateTime() {
|
||||
const now = new Date();
|
||||
const timeStr = now.toLocaleString('zh-CN', {
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit'
|
||||
});
|
||||
document.getElementById('timeDisplay').textContent = '当前时间:' + timeStr;
|
||||
}
|
||||
|
||||
// 每秒更新时间
|
||||
updateTime();
|
||||
setInterval(updateTime, 1000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
196
misc/test-data/multi_route_workflow.json
Normal file
196
misc/test-data/multi_route_workflow.json
Normal file
@@ -0,0 +1,196 @@
|
||||
{
|
||||
"name": "企业多线路由助手",
|
||||
"description": "根据query内容自动路由到客服/研发/运维专精LLM,合并结果输出",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "start-1",
|
||||
"type": "start",
|
||||
"position": { "x": 100, "y": 250 },
|
||||
"data": {
|
||||
"label": "开始",
|
||||
"description": "工作流开始节点"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "input-1",
|
||||
"type": "input",
|
||||
"position": { "x": 300, "y": 250 },
|
||||
"data": {
|
||||
"label": "输入查询",
|
||||
"field": "query",
|
||||
"description": "输入用户查询内容",
|
||||
"required": true,
|
||||
"placeholder": "请输入您的问题..."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "switch-1",
|
||||
"type": "switch",
|
||||
"position": { "x": 500, "y": 250 },
|
||||
"data": {
|
||||
"label": "路由判断",
|
||||
"field": "query",
|
||||
"cases": {
|
||||
"客服": "customer_service",
|
||||
"研发": "development",
|
||||
"运维": "operation"
|
||||
},
|
||||
"default": "customer_service",
|
||||
"description": "根据query内容路由到不同专精LLM"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "llm-customer",
|
||||
"type": "llm",
|
||||
"position": { "x": 700, "y": 150 },
|
||||
"data": {
|
||||
"label": "客服专精LLM",
|
||||
"model": "deepseek",
|
||||
"prompt": "你是一个专业的客服助手,擅长处理客户咨询、投诉、售后问题。请根据用户问题提供专业、友好的客服解答。\n\n用户问题:{{query}}\n\n请回答:",
|
||||
"temperature": 0.7,
|
||||
"max_tokens": 1000,
|
||||
"enable_tools": true,
|
||||
"description": "客服领域专精AI助手"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "llm-development",
|
||||
"type": "llm",
|
||||
"position": { "x": 700, "y": 250 },
|
||||
"data": {
|
||||
"label": "研发专精LLM",
|
||||
"model": "deepseek",
|
||||
"prompt": "你是一个专业的研发工程师,擅长技术问题解答、代码调试、架构设计。请根据用户问题提供专业的技术解决方案。\n\n用户问题:{{query}}\n\n请回答:",
|
||||
"temperature": 0.7,
|
||||
"max_tokens": 1000,
|
||||
"enable_tools": true,
|
||||
"description": "研发技术专精AI助手"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "llm-operation",
|
||||
"type": "llm",
|
||||
"position": { "x": 700, "y": 350 },
|
||||
"data": {
|
||||
"label": "运维专精LLM",
|
||||
"model": "deepseek",
|
||||
"prompt": "你是一个专业的运维工程师,擅长系统部署、监控、故障排查。请根据用户问题提供专业的运维解决方案。\n\n用户问题:{{query}}\n\n请回答:",
|
||||
"temperature": 0.7,
|
||||
"max_tokens": 1000,
|
||||
"enable_tools": true,
|
||||
"description": "运维领域专精AI助手"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "merge-1",
|
||||
"type": "merge",
|
||||
"position": { "x": 900, "y": 250 },
|
||||
"data": {
|
||||
"label": "结果合并",
|
||||
"mode": "merge_all",
|
||||
"strategy": "object",
|
||||
"description": "合并所有分支结果(实际上只有一个分支会执行)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "output-1",
|
||||
"type": "output",
|
||||
"position": { "x": 1100, "y": 250 },
|
||||
"data": {
|
||||
"label": "输出结果",
|
||||
"field": "response",
|
||||
"description": "输出最终回答"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "end-1",
|
||||
"type": "end",
|
||||
"position": { "x": 1300, "y": 250 },
|
||||
"data": {
|
||||
"label": "结束",
|
||||
"description": "工作流结束"
|
||||
}
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"id": "e1",
|
||||
"source": "start-1",
|
||||
"target": "input-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e2",
|
||||
"source": "input-1",
|
||||
"target": "switch-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e3-customer",
|
||||
"source": "switch-1",
|
||||
"target": "llm-customer",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left",
|
||||
"data": {
|
||||
"branch": "customer_service"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e3-development",
|
||||
"source": "switch-1",
|
||||
"target": "llm-development",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left",
|
||||
"data": {
|
||||
"branch": "development"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e3-operation",
|
||||
"source": "switch-1",
|
||||
"target": "llm-operation",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left",
|
||||
"data": {
|
||||
"branch": "operation"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e4-customer",
|
||||
"source": "llm-customer",
|
||||
"target": "merge-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e4-development",
|
||||
"source": "llm-development",
|
||||
"target": "merge-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e4-operation",
|
||||
"source": "llm-operation",
|
||||
"target": "merge-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e5",
|
||||
"source": "merge-1",
|
||||
"target": "output-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
},
|
||||
{
|
||||
"id": "e6",
|
||||
"source": "output-1",
|
||||
"target": "end-1",
|
||||
"sourceHandle": "right",
|
||||
"targetHandle": "left"
|
||||
}
|
||||
]
|
||||
}
|
||||
27
misc/test-data/test_emails.txt
Normal file
27
misc/test-data/test_emails.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
user@example.com
|
||||
first.last@example.com
|
||||
user+tag@example.co.uk
|
||||
user_name@example.org
|
||||
user%name@example.com
|
||||
123456@example.cn
|
||||
a@b.co
|
||||
nice&simple@example.com
|
||||
very.common@example.com
|
||||
disposable.style.email.with+symbol@example.com
|
||||
other.email-with-hyphen@example.com
|
||||
fully-qualified-domain@example.com
|
||||
user.name+tag+sorting@example.com
|
||||
x@example.com
|
||||
example-indeed@strange-example.com
|
||||
|
||||
plainaddress
|
||||
@no-local-part.com
|
||||
user@.com
|
||||
user@com
|
||||
user@domain..com
|
||||
user@-domain.com
|
||||
user@domain.com.
|
||||
user name@example.com
|
||||
user@domain,com
|
||||
user@domain.c
|
||||
user@.domain.com
|
||||
1
misc/test-data/user_profile.json
Normal file
1
misc/test-data/user_profile.json
Normal file
@@ -0,0 +1 @@
|
||||
{"name": "小七"}</|DSML|parameter>
|
||||
3
misc/test-data/作业.txt
Normal file
3
misc/test-data/作业.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
语文作业:1背诵第八课人之初
|
||||
2写生字
|
||||
3帮妈妈扫地
|
||||
Reference in New Issue
Block a user