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,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
......
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