一个基于 Mastra 框架构建的智能代理系统,用于提供大学相关的智能服务。
- 框架: Mastra
- 语言: TypeScript
- AI 集成:
- OpenAI
- Google AI
- Cohere
- 数据库支持:
- MongoDB
- PostgreSQL
- LibSQL
- 向量存储:
- Pinecone
- 前端:
- React
- React Router DOM
src/
├── mastra/
│ ├── agents/ # AI 代理定义
│ ├── memories/ # 记忆存储模块
│ ├── rag/ # 检索增强生成模块
│ ├── tools/ # 工具函数
│ ├── workflows/ # 工作流程定义
│ └── index.ts # 主入口文件
- 确保已安装 Node.js 和 pnpm
- 克隆项目
- 安装依赖:
pnpm install启动开发服务器:
pnpm dev构建生产版本:
pnpm build编译 TypeScript 代码:
pnpm compile- AI 代理系统
- 检索增强生成 (RAG)
- 多数据库支持
- 向量存储集成
- 智能工作流程
主要依赖包括:
- @mastra/core
- @mastra/libsql
- @mastra/memory
- @mastra/mongodb
- @mastra/pg
- @mastra/pinecone
- @mastra/rag
- 以及多个 AI SDK 集成
ISC