Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

FEAT: cohere rerank 3 model added (#3431)

Yash Parmardd354bd3962b
diff --git a/api/core/model_runtime/model_providers/cohere/rerank/_position.yaml b/api/core/model_runtime/model_providers/cohere/rerank/_position.yaml
new file mode 100644
index 00000000000..4dd58fc1708
--- /dev/null
+++ b/api/core/model_runtime/model_providers/cohere/rerank/_position.yaml
@@ -0,0 +1,4 @@
+- rerank-english-v2.0
+- rerank-english-v3.0
+- rerank-multilingual-v2.0
+- rerank-multilingual-v3.0
diff --git a/api/core/model_runtime/model_providers/cohere/rerank/rerank-english-v3.0.yaml b/api/core/model_runtime/model_providers/cohere/rerank/rerank-english-v3.0.yaml
new file mode 100644
index 00000000000..3779f0b6c25
--- /dev/null
+++ b/api/core/model_runtime/model_providers/cohere/rerank/rerank-english-v3.0.yaml
@@ -0,0 +1,4 @@
+model: rerank-english-v3.0
+model_type: rerank
+model_properties:
+ context_size: 5120
diff --git a/api/core/model_runtime/model_providers/cohere/rerank/rerank-multilingual-v3.0.yaml b/api/core/model_runtime/model_providers/cohere/rerank/rerank-multilingual-v3.0.yaml
new file mode 100644
index 00000000000..4f6690ba768
--- /dev/null
+++ b/api/core/model_runtime/model_providers/cohere/rerank/rerank-multilingual-v3.0.yaml
@@ -0,0 +1,4 @@
+model: rerank-multilingual-v3.0
+model_type: rerank
+model_properties:
+ context_size: 5120