|
|
2 月之前 | |
|---|---|---|
| .. | ||
| backend | 5 天之前 | |
| frontend | 5 天之前 | |
| README.md | 5 天之前 | |
| ports.env | 5 天之前 | |
| start.sh | 5 天之前 | |
PaperGraph(知脉)是一个面向科研学习、论文调研和研究方向跟踪的智能文献工作台。系统以 SearchAgent、PaperAnalysisAgent 和 KnowledgeGraphAgent 为核心,将自然语言检索、多源论文召回、PDF 阅读问答、每日推荐、文献保存和知识图谱构建整合到同一个 Web 应用中。
它希望解决研究者在日常文献工作中的几个高频痛点:
┌──────────────────────────────────────────────────────────────┐
│ 前端界面层 │
│ 文献搜索 | 每日论文 | 我的文献库 | 论文阅读助手 | 知识图谱 │
└──────────────────────────────────────────────────────────────┘
│
│ REST + SSE
▼
┌──────────────────────────────────────────────────────────────┐
│ API 接口层 │
│ FastAPI Routes + OpenAPI + Tool Events │
└──────────────────────────────────────────────────────────────┘
│
▼
┌──────────────────────────────────────────────────────────────┐
│ 智能体编排层 │
│ SearchAgent | PaperAnalysisAgent | KnowledgeGraphAgent │
└──────────────────────────────────────────────────────────────┘
│
▼
┌──────────────────────────────────────────────────────────────┐
│ 核心服务层 │
│ Search Pipeline | PDF Parser | Daily Recommend | AgentMemory │
└──────────────────────────────────────────────────────────────┘
│
▼
┌──────────────────────────────────────────────────────────────┐
│ 数据持久层 │
│ SQLite 文献库 | PDF 文件存储 | 阅读记录 | 反馈记忆 │
└──────────────────────────────────────────────────────────────┘
| 智能体 | 职责 | 核心能力 |
|---|---|---|
| SearchAgent | 文献搜索与结果解释 | 意图解析、SearchRecipe、多源召回、LLM 精排 |
| PaperAnalysisAgent | 论文阅读与分析 | 摘要生成、标签归类、阅读问答、引用查找 |
| KnowledgeGraphAgent | 知识图谱构建 | 论文关系抽取、图谱数据生成、节点详情解释 |
用户问题
-> LLM 意图解析
-> SearchRecipe
-> arXiv / DBLP / OpenAlex / Tavily 多源召回
-> 去重与过滤
-> LLM 精排
-> 结果解释与保存
cd backend
pip install -r requirements.txt
在 backend/.env 中配置模型信息:
LLM_API_KEY=your_api_key
LLM_BASE_URL=https://your-openai-compatible-endpoint/v1
LLM_MODEL_ID=your_model_id
启动后端:
python run.py
默认访问地址:http://localhost:8000
cd frontend
npm install
npm run dev
默认访问地址:http://localhost:5173
也可以在项目根目录执行:
./start.sh
文献搜索、每日论文推荐、文献库、论文阅读助手和知识图谱等界面截图,请参见 毕业设计提交 PR #614。
| 层级 | 技术 |
|---|---|
| 智能体框架 | HelloAgents(SimpleAgent + ToolRegistry + CircuitBreaker + ContextBuilder) |
| 后端服务 | FastAPI + SQLite + Pydantic |
| 前端应用 | Vue 3 + Vite + Ant Design Vue + KaTeX + PDF.js |
| LLM 接入 | DeepSeek-V4 / OpenAI 兼容接口 |
| 论文数据源 | arXiv + DBLP + OpenAlex + Tavily |
| PDF 处理 | PyMuPDF(fitz) |
.
├─ backend/ # FastAPI 后端与智能体服务
│ ├─ app/agents/ # SearchAgent / PaperAnalysisAgent / KnowledgeGraphAgent
│ ├─ app/api/ # API 路由、依赖和 SSE 工具事件
│ ├─ app/core/ # Paper 模型、PDF 下载、搜索源适配
│ ├─ app/services/ # 检索、阅读、推荐、记忆、图谱等业务服务
│ ├─ data/ # 本地数据库与运行数据(不提交)
│ └─ downloads/ # PDF 下载目录(不提交)
├─ frontend/ # Vue 3 前端应用
│ ├─ src/views/ # 搜索、每日论文、文献库、阅读器、知识图谱页面
│ ├─ src/components/ # 论文卡片、搜索结果、工具轨迹、阅读日历等组件
│ ├─ src/composables/ # 搜索对话、历史记录、标题关键词等组合逻辑
│ └─ src/services/ # API 客户端与接口封装
├─ ports.env # 本地端口配置
├─ start.sh # 一键启动脚本
└─ README.md
MIT License
GitHub: @DeLunnLi
项目地址: github.com/DeLunnLi/PaperGraph
感谢 Datawhale 社区和 Hello-Agents 项目。本项目基于 HelloAgents 的智能体、工具注册、上下文构建和熔断能力完成实践探索。