mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-03 15:20:01 +01:00
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
This commit is contained in:
commit
370fe7b7cf
|
|
@ -148,7 +148,7 @@ class ChromaCollector():
|
|||
id_ = new_ids[i]
|
||||
metadata = metadatas[i] if metadatas is not None else None
|
||||
embedding = self.embeddings_cache.get(text)
|
||||
if embedding is not None and embedding.any():
|
||||
if embedding is not None and any(embedding):
|
||||
existing_texts.append(text)
|
||||
existing_embeddings.append(embedding)
|
||||
existing_ids.append(id_)
|
||||
|
|
|
|||
Loading…
Reference in a new issue