mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 07:05:56 +08:00
fix i is not incremented due to violating the uniqueness constraint w… (#771)
Co-authored-by: 李啸吟 <746963140@qq.com>
This commit is contained in:
parent
3d194787b4
commit
cc277227ad
@ -44,8 +44,8 @@ class CacheEmbedding(Embeddings):
|
|||||||
except:
|
except:
|
||||||
logging.exception('Failed to add embedding to db')
|
logging.exception('Failed to add embedding to db')
|
||||||
continue
|
continue
|
||||||
|
finally:
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
text_embeddings.extend(embedding_results)
|
text_embeddings.extend(embedding_results)
|
||||||
return text_embeddings
|
return text_embeddings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user