Browse Source

add embedding max retries (#699)

Jyong 1 year ago
parent
commit
fa73aa8dbf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      api/core/index/index.py

+ 1 - 0
api/core/index/index.py

@@ -22,6 +22,7 @@ class IndexBuilder:
             )
             )
 
 
             embeddings = CacheEmbedding(OpenAIEmbeddings(
             embeddings = CacheEmbedding(OpenAIEmbeddings(
+                max_retries=1,
                 **model_credentials
                 **model_credentials
             ))
             ))