소스 검색

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
No account linked to committer's email address
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

Loading…
취소
저장