ソースを参照

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

Co-authored-by: 李啸吟 <746963140@qq.com>
tags/0.3.13
lixiaoyin 2年前
コミット
cc277227ad
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      api/core/embedding/cached_embedding.py

+ 2
- 2
api/core/embedding/cached_embedding.py ファイルの表示

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

読み込み中…
キャンセル
保存