mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
[improvement][chat] Fix the display of aliases or synonyms for terms (#1793)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user