[improvement][chat] Fix the display of aliases or synonyms for terms (#1793)

This commit is contained in:
lexluo09
2024-10-12 20:26:24 +08:00
committed by GitHub
parent f794eee5a2
commit 83cf171ec5
4 changed files with 135 additions and 122 deletions

View File

@@ -1,6 +1,9 @@
package com.tencent.supersonic.headless.chat.knowledge;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Objects;
@@ -8,6 +11,9 @@ import java.util.Objects;
/** * word nature */
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DictWord {
private String word;

View File

@@ -8,13 +8,13 @@ import java.io.Serializable;
@Data
@ToString
public class ModelWithSemanticType implements Serializable {
public class DataSetWithSemanticType implements Serializable {
private Long model;
private Long dataSetId;
private SchemaElementType schemaElementType;
public ModelWithSemanticType(Long model, SchemaElementType schemaElementType) {
this.model = model;
public DataSetWithSemanticType(Long dataSetId, SchemaElementType schemaElementType) {
this.dataSetId = dataSetId;
this.schemaElementType = schemaElementType;
}
}