refactor: 重构项目架构,优化向量服务

- 移除 Graph 知识图谱相关模块(Neo4j、GraphRAG等)
- 移除 demo、job、wechat 示例模块,简化项目结构
- 修复向量维度获取方式,改为从数据库配置读取
- 添加 gRPC BOM 依赖管理,解决 Milvus SDK 版本冲突
- 新增 PPIO 服务和 Embedding 提供者支持
- 清理冗余代码和未使用的依赖

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ageerle
2026-03-15 23:39:30 +08:00
parent accac603cf
commit a5e7c59fd4
156 changed files with 132 additions and 11639 deletions

View File

@@ -1,103 +0,0 @@
package org.ruoyi.constant;
/**
* 知识图谱常量
*
* @author ruoyi
* @date 2025-09-30
*/
public class GraphConstants {
/**
* 图谱记录分隔符
*/
public static final String GRAPH_RECORD_DELIMITER = "##";
/**
* 图谱元组分隔符
*/
public static final String GRAPH_TUPLE_DELIMITER = "<|>";
/**
* 图谱完成标记
*/
public static final String GRAPH_COMPLETION_DELIMITER = "<|COMPLETE|>";
/**
* 实体类型:人物
*/
public static final String ENTITY_TYPE_PERSON = "PERSON";
/**
* 实体类型:组织机构
*/
public static final String ENTITY_TYPE_ORGANIZATION = "ORGANIZATION";
/**
* 实体类型:地点
*/
public static final String ENTITY_TYPE_LOCATION = "LOCATION";
/**
* 实体类型:概念
*/
public static final String ENTITY_TYPE_CONCEPT = "CONCEPT";
/**
* 实体类型:事件
*/
public static final String ENTITY_TYPE_EVENT = "EVENT";
/**
* 实体类型:产品
*/
public static final String ENTITY_TYPE_PRODUCT = "PRODUCT";
/**
* 实体类型:技术
*/
public static final String ENTITY_TYPE_TECHNOLOGY = "TECHNOLOGY";
/**
* 默认实体抽取类型列表
*/
public static final String[] DEFAULT_ENTITY_TYPES = {
ENTITY_TYPE_PERSON,
ENTITY_TYPE_ORGANIZATION,
ENTITY_TYPE_LOCATION,
ENTITY_TYPE_CONCEPT,
ENTITY_TYPE_EVENT,
ENTITY_TYPE_PRODUCT,
ENTITY_TYPE_TECHNOLOGY
};
/**
* 元数据键知识库UUID
*/
public static final String METADATA_KB_UUID = "kb_uuid";
/**
* 元数据键知识库条目UUID
*/
public static final String METADATA_KB_ITEM_UUID = "kb_item_uuid";
/**
* 元数据键文档UUID
*/
public static final String METADATA_DOC_UUID = "doc_uuid";
/**
* 元数据键片段UUID
*/
public static final String METADATA_SEGMENT_UUID = "segment_uuid";
/**
* RAG最大片段大小token数
*/
public static final int RAG_MAX_SEGMENT_SIZE_IN_TOKENS = 512;
/**
* RAG片段重叠大小token数
*/
public static final int RAG_SEGMENT_OVERLAP_IN_TOKENS = 50;
}