fix i is not incremented due to violating the uniqueness constraint w… (#771)

Co-authored-by: 李啸吟 <746963140@qq.com>
This commit is contained in:
lixiaoyin 2023-08-08 21:19:06 +08:00 committed by GitHub
parent 3d194787b4
commit cc277227ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,8 @@ class CacheEmbedding(Embeddings):
except:
logging.exception('Failed to add embedding to db')
continue
i += 1
finally:
i += 1
text_embeddings.extend(embedding_results)
return text_embeddings