chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、 Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。 今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
commit
7ec21f35b0
5767 files changed
+1436788
No files matched your search
@@ -0,0 +1,33 @@
|
||||
// Package providers registers Pinecone's standalone hosted rerank endpoint.
|
||||
// https://docs.pinecone.io/guides/search/rerank-results
|
||||
package providers
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"academy/internal/models/api"
|
||||
"academy/internal/types"
|
||||
)
|
||||
|
||||
//go:embed assets/pinecone.svg
|
||||
var pineconeIcon []byte
|
||||
|
||||
// PineconeID identifies the Pinecone provider in the model catalog.
|
||||
const PineconeID = "pinecone"
|
||||
|
||||
// PineconeRerankBaseURL is the default Pinecone Inference API endpoint.
|
||||
const PineconeRerankBaseURL = "https://api.pinecone.io"
|
||||
|
||||
func newPineconeProvider() *Definition {
|
||||
return &Definition{
|
||||
ID: PineconeID, Name: "Pinecone",
|
||||
Description: "Pinecone Inference standalone reranking (bge-reranker-v2-m3, pinecone-rerank-v0)",
|
||||
Website: "https://www.pinecone.io", Icon: pineconeIcon,
|
||||
API: api.APIOpenAICompletions, RerankAPI: api.RerankPinecone,
|
||||
Order: 56, RequiresAuth: true, Auth: AuthAPIKeyHeader,
|
||||
URLPatterns: []string{"api.pinecone.io"},
|
||||
DefaultBaseURLs: map[types.ModelType]string{types.ModelTypeRerank: PineconeRerankBaseURL},
|
||||
ModelTypes: []types.ModelType{types.ModelTypeRerank},
|
||||
Headers: map[string]string{"X-Pinecone-Api-Version": "2026-07"},
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user