# lanben **Repository Path**: yangjun1028/lanben ## Basic Information - **Project Name**: lanben - **Description**: 一个适合新手小白入门的AI agent项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-02 - **Last Updated**: 2026-05-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: AI, RAG, Agent, AI客服助手 ## README # lanben #### 介绍 为了学习agent 而搭建的一个小项目 #### 软件架构 Springboot基础架构 + Springai #### 安装教程 1. 拉到IEDA 写三个SQL语句。 并连接Redis 和 MysQL。 2. 下载es, 更改config, 即可本地使用, 学习。 3. 在yml文件加上自己的api-key 4. SQL语句如下: create table cat ( id bigint auto_increment comment '猫咪唯一ID' primary key, name varchar(100) not null comment '猫咪昵称', color varchar(50) null comment '毛色', characteristics text null comment '显著特征(如:断尾、异瞳)', gender tinyint default 1 null comment '性别:1-雄性,0-雌性', sterilization_status tinyint default 1 null comment '绝育状态:1-绝育,0-未绝育', health_status varchar(20) default 'HEALTHY' null comment '健康状况:HEALTHY, INJURED, ILL', area varchar(200) null comment '常出没区域(如:三食堂后门)', personality varchar(100) null comment '性格标签(如:亲人, 高冷)', avatar_url varchar(500) null comment '猫咪头像链接', status tinyint default 1 null comment '状态:1-在蓝星,0-回喵星', creator_id bigint null comment '创建此档案的用户ID', created_at datetime default CURRENT_TIMESTAMP null comment '创建时间', updated_at datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间', constraint name unique (name), constraint fk_cat_creator foreign key (creator_id) references user (id) on delete cascade ) comment '猫咪档案表'; create table chat_session ( id bigint auto_increment comment '数据id' primary key, session_id varchar(32) charset utf8mb4 not null comment '会话id', user_id bigint default 0 not null comment '用户id', title varchar(100) null comment '会话标题', create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间', update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间', creater bigint not null comment '创建人', updater bigint not null comment '更新人' ) comment '对话session' collate = utf8mb4_bin; create table user ( id bigint auto_increment primary key, username varchar(50) not null comment '用户名', password varchar(255) not null comment '加密后的密码', salt varchar(255) not null comment '密码盐值', phone varchar(255) null comment '手机号', email varchar(255) null comment '邮箱', create_time datetime default CURRENT_TIMESTAMP null comment '创建时间', update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间', status tinyint default 1 null comment '状态:1-正常,0-禁用', constraint username unique (username) ) comment '用户表'; #### 使用说明 1. 已加入RAG知识库,需下载es,可通过代码中已提供接口进行知识库文档的添加 2. 需要Redis 和 MySQL 3. yml文件中的 fixed-token 需要在项目启动之后,点击前端的档案,拿到jwt令牌, 复制粘贴。 4. 本项目的AI客服助手实现了,RAG 以及 tool类的实现(按照id 查找猫咪信息),目前在进行react架构的升级 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)