mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: rerank error
--bug=1052035 --user=王孝刚 【模型管理】SiliconFlow的重排模型,重排后的内容不正确 https://www.tapd.cn/57709429/s/1651239
This commit is contained in:
parent
8b32944692
commit
fbe899e326
|
|
@ -73,7 +73,8 @@ class SiliconCloudReranker(MaxKBBaseModel, BaseDocumentCompressor):
|
|||
"model": self.model,
|
||||
"query": query,
|
||||
"documents": texts,
|
||||
"top_n": self.top_n
|
||||
"top_n": self.top_n,
|
||||
"return_documents": True,
|
||||
}
|
||||
|
||||
response = requests.post(f"{self.api_base}/rerank", json=payload, headers=headers)
|
||||
|
|
|
|||
Loading…
Reference in New Issue