# knowledge-backend **Repository Path**: hmhub/knowledge-backend ## Basic Information - **Project Name**: knowledge-backend - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-14 - **Last Updated**: 2024-09-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目介绍 本项目使用SpringAI搭建本地知识库,包含了SSE流/Agent智能体/FunctionCall/Embedding/VectorDatabase/RAG/Graph RAG/历史消息/图片生成/图片理解 ## 运行环境 - Java 17 - Node.js 18+ - MySQL 8 - DashScope API KEY(或者其他) - Redis-Stack redis基础上拓展向量查询功能 ```shell docker run -d --name redis-stack \ --restart=always \ -v redis-data:/data \ -p 6379:6379 \ -p 8001:8001 \ -e REDIS_ARGS="--requirepass 123456" \ redis/redis-stack:latest ``` - neo4j 5+ 安装完neo4j访问`localhost:7474`, 默认的账号密码都是`neo4j`和`neo4j`。 ```shell docker run \ -d \ -p 7474:7474 -p 7687:7687 \ -v neo4j-data:/data -v neo4j-data:/plugins \ --name neo4j \ -e NEO4J_apoc_export_file_enabled=true \ -e NEO4J_apoc_import_file_enabled=true \ -e NEO4J_apoc_import_file_use__neo4j__config=true \ -e NEO4JLABS_PLUGINS=\[\"apoc\"\] \ -e NEO4J_dbms_security_procedures_unrestricted=apoc.\\\* \ neo4j ``` ## 运行步骤 ### 1.clone代码 ```shell git clone https://gitee.com/hymanwei/knowledge-backend.git ``` ### 2. idea打开项目 ### 3. 修改配置文件 修改application.yml中的API-KEY, MySQL, Redis-Stack, Neo4j配置 ### 4. 运行项目 后端运行 1. 运行ServerApplication.java 2. target/generated-sources/annotations右键mark directory as/generated source root 前端运行,在knowledge-web目录下 - npm run install - npm run dev