[improvement](Headless) Adding change event to tags and integrating tag into embeddings (#792)

This commit is contained in:
lexluo09
2024-03-06 16:13:20 +08:00
committed by GitHub
parent 475e071341
commit 3cccac58a1
8 changed files with 53 additions and 25 deletions

View File

@@ -28,7 +28,7 @@ public class LLMSqlParser implements SemanticParser {
return;
}
try {
//2.get modelId from queryCtx and chatCtx.
//2.get dataSetId from queryCtx and chatCtx.
Long dataSetId = requestService.getDataSetId(queryCtx);
if (dataSetId == null) {
return;

View File

@@ -77,9 +77,7 @@ public class DataSetSchemaBuilder {
private static Set<SchemaElement> getTags(DataSetSchemaResp resp) {
Set<SchemaElement> tags = new HashSet<>();
List<TagResp> tagResps = resp.getTags();
for (TagResp tagResp : tagResps) {
for (TagResp tagResp : resp.getTags()) {
SchemaElement element = SchemaElement.builder()
.dataSet(resp.getId())
.model(tagResp.getModelId())