fix stop bug

This commit is contained in:
Chuck1sn
2025-05-26 16:45:27 +08:00
parent e0d5723b5b
commit 9f2f0bc0e0
4 changed files with 10 additions and 9 deletions

View File

@@ -6,8 +6,7 @@ import lombok.Getter;
@AllArgsConstructor
@Getter
public enum Actions {
CREATE_USER("CREATE_USER", "创建新用户"),
DELETE_USER("DELETE_USER", "删除用户");
CREATE_USER("CREATE_USER", "创建新用户");
public static final String INDEX_KEY = "action";
private final String code;
private final String content;

View File

@@ -35,6 +35,7 @@ public class EmbeddingService {
EmbeddingSearchRequest embeddingSearchRequest =
EmbeddingSearchRequest.builder()
.queryEmbedding(zhipuEmbeddingModel.embed(message).content())
.minScore(0.9)
.build();
EmbeddingSearchResult<TextSegment> embeddingSearchResult =
zhiPuEmbeddingStore.search(embeddingSearchRequest);