知识库rerank设置
This commit is contained in:
@@ -142,6 +142,15 @@ export const knowledgeApi = {
|
||||
async getAvailableEmbeddingModels(): Promise<ResultDomain<any>> {
|
||||
const response = await api.get<any>('/ai/knowledge/embedding-models');
|
||||
return response.data;
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取可用的Rerank模型列表
|
||||
* @returns Promise<ResultDomain<any>>
|
||||
*/
|
||||
async getAvailableRerankModels(): Promise<ResultDomain<any>> {
|
||||
const response = await api.get<any>('/ai/knowledge/rerank-models');
|
||||
return response.data;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user