Skip to content

Commit

Permalink
add mindmap gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesun committed Nov 22, 2023
1 parent 50d11ed commit 7857eac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# 安装 Graphviz
RUN apt-get update && \
apt-get install -y graphviz && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Set up a working directory
WORKDIR /

Expand Down
21 changes: 5 additions & 16 deletions tests/test.http
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,18 @@ Content-Type: application/json
Authorization: Bearer a99e05501a0405531caf783eef419b56a5a32f57b64ae3b89587b3a0d5202ee167d80d727a1b8181

{
"title": "对数",
"title": "Python 学习",
"structure": {
"对数": ["定义", "性质", "类型", "应用"],
"定义": ["对数的概念", "对数的表示"],
"性质": ["对数定律", "换底公式"],
"类型": ["常用对数", "自然对数"],
"应用": ["科学计算", "复利计算", "音乐理论", "信息熵"],
"对数的概念": ["对数与指数的关系"],
"对数的表示": ["底数", "真数"],
"对数定律": ["乘法定律", "除法定律", "幂的定律"],
"换底公式": ["公式描述"],
"常用对数": ["十进制", "应用举例"],
"自然对数": ["以e为底", "特性"],
"科学计算": ["对数尺", "数据压缩"],
"复利计算": ["金融领域应用"],
"音乐理论": ["音程与频率"],
"信息熵": ["信息论中的应用"]
"Python 学习": ["基础知识", "高级主题"],
"基础知识": ["变量", "数据类型", "控制流"],
"高级主题": ["面向对象", "装饰器", "迭代器"]
}
}





###

POST http://127.0.0.1:8700/knowledge/search
Expand Down

0 comments on commit 7857eac

Please sign in to comment.