feat(chat): 尝试在对话中加入知识库
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user