feat(ai): 优化UI
This commit is contained in:
@@ -62,7 +62,7 @@ public class ChatController {
|
||||
""", LocalDateTime.now().format(formatter)));
|
||||
if (ObjectUtil.isNotNull(knowledgeId)) {
|
||||
var vo = messages.select(message -> StrUtil.equals(message.getRole(), "user")).getLastOptional().orElseThrow();
|
||||
var documents = knowledgeService.query(knowledgeId, vo.getContent(), 0.5);
|
||||
var documents = knowledgeService.query(knowledgeId, vo.getContent(), 10, 0.5);
|
||||
if (ObjectUtil.isNotEmpty(documents)) {
|
||||
builder.append(StrUtil.format("""
|
||||
以下是与用户问题有关的外部知识,优先利用该知识回答用户的提问:
|
||||
|
||||
Reference in New Issue
Block a user