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.

add embedding max retries (#699)

Jyongfa73aa8dbfe8
diff --git a/api/core/index/index.py b/api/core/index/index.py
index bd32b3c4931..657ad221e20 100644
--- a/api/core/index/index.py
+++ b/api/core/index/index.py
@@ -22,6 +22,7 @@ class IndexBuilder:
)
embeddings = CacheEmbedding(OpenAIEmbeddings(
+ max_retries=1,
**model_credentials
))