Unverified Commit cc277227 authored by lixiaoyin's avatar lixiaoyin Committed by GitHub

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

Co-authored-by: 's avatar李啸吟 <746963140@qq.com>
parent 3d194787
...@@ -44,7 +44,7 @@ class CacheEmbedding(Embeddings): ...@@ -44,7 +44,7 @@ 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment