Class AnalyticSchemaService
java.lang.Object
com.alibaba.cloud.ai.service.base.BaseSchemaService
com.alibaba.cloud.ai.service.analytic.AnalyticSchemaService
Schema 构建服务,支持基于 RAG 的混合查询。
-
Field Summary
Fields inherited from class com.alibaba.cloud.ai.service.base.BaseSchemaService
dbConfig, gson, vectorStoreService -
Constructor Summary
ConstructorsConstructorDescriptionAnalyticSchemaService(DbConfig dbConfig, com.google.gson.Gson gson, BaseVectorStoreService vectorStoreService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddColumnsDocument(Map<String, org.springframework.ai.document.Document> weightedColumns, String columnName, String vectorType) protected voidaddTableDocument(List<org.springframework.ai.document.Document> tableDocuments, String tableName, String vectorType) 添加缺失的表文档Methods inherited from class com.alibaba.cloud.ai.service.base.BaseSchemaService
attachColumnsToTables, buildSchemaFromDocuments, buildTableListFromDocuments, extractDatabaseName, extractForeignKeyRelations, getColumnDocumentsByKeywords, getColumnDocumentsByKeywords, getColumnDocumentsByKeywordsForAgent, getTableDocuments, getTableDocuments, getTableDocumentsForAgent, getTableMetadata, handleDocumentQuery, handleDocumentQuery, mixRag, mixRagForAgent, processColumnWeights, selectWeightedColumns
-
Constructor Details
-
AnalyticSchemaService
@Autowired public AnalyticSchemaService(DbConfig dbConfig, com.google.gson.Gson gson, @Qualifier("analyticVectorStoreService") BaseVectorStoreService vectorStoreService)
-
-
Method Details
-
addTableDocument
protected void addTableDocument(List<org.springframework.ai.document.Document> tableDocuments, String tableName, String vectorType) Description copied from class:BaseSchemaService添加缺失的表文档- Specified by:
addTableDocumentin classBaseSchemaService
-
addColumnsDocument
protected void addColumnsDocument(Map<String, org.springframework.ai.document.Document> weightedColumns, String columnName, String vectorType) - Specified by:
addColumnsDocumentin classBaseSchemaService
-