feat: support xinference rerank to jina format

This commit is contained in:
1808837298@qq.com committed 2025-03-16 21:06:29 +08:00
1 parent 6e8916207e
commit 8918381c96
9 files changed
+84 -21

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
package xinference
type XinRerankResponseDocument struct {
Document string `json:"document,omitempty"`
Index int `json:"index"`
RelevanceScore float64 `json:"relevance_score"`
}
type XinRerankResponse struct {
Results []XinRerankResponseDocument `json:"results"`
}