Files
ragflow/conf/models/replicate.json
sxxtony 7740ec6c95 Go: implement Embed (embeddings) in Replicate driver (#15073)
### What problem does this PR solve?

`ReplicateModel.Embed` in `internal/entity/models/replicate.go` was a
`"replicate, no such method"` stub. Tracking issue #14736 lists
Replicate's embedding surface as not implemented. This PR wires it up
against Replicate's documented embedding schema.

Until this PR, a tenant who selected a Replicate embedding model got the
sentinel error on every embed call.

Co-authored-by: sxxtony <sxxtony@users.noreply.github.com>
Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-05-21 15:32:41 +08:00

35 lines
670 B
JSON

{
"name": "Replicate",
"url": {
"default": "https://api.replicate.com"
},
"url_suffix": {
"chat": "v1/predictions",
"models": "v1/models"
},
"class": "replicate",
"models": [
{
"name": "meta/meta-llama-3-70b-instruct",
"max_tokens": 8192,
"model_types": [
"chat"
]
},
{
"name": "meta/meta-llama-3-8b-instruct",
"max_tokens": 8192,
"model_types": [
"chat"
]
},
{
"name": "replicate/all-mpnet-base-v2:b6b7585c9640cd7a9572c6e129c9549d79c9c31f0d3fdce7baac7c67ca38f305",
"max_tokens": 384,
"model_types": [
"embedding"
]
}
]
}