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

Co-authored-by: 李啸吟 <746963140@qq.com>
pull/785/head
lixiaoyin 3 years ago committed by GitHub
parent 3d194787b4
commit cc277227ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save