feat(chat): 尝试在对话中加入知识库

This commit is contained in:
v-zhangjc9
2025-06-03 20:23:52 +08:00
parent 536c4e9cab
commit c2af2d6365
14 changed files with 216 additions and 54 deletions

View File

@@ -0,0 +1,22 @@
package com.lanyuanxiaoyao.service.forest.service;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Query;
import org.eclipse.collections.api.list.ImmutableList;
/**
* 队列查询
*
* @author lanyuanxiaoyao
* @date 2023-05-07
*/
@BaseRequest(baseURL = "http://service-ai-knowledge/knowledge")
public interface KnowledgeService {
@Post(value = "/query", contentType = "plain/text")
ImmutableList<String> query(@Query("id") Long id, @Body String text);
@Post(value = "/query", contentType = "plain/text")
ImmutableList<String> query(@Query("id") Long id, @Query("limit") Integer limit, @Query("threshold") Double threshold, @Body String text);
}