mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-05-01 03:41:24 +00:00
Lint spaces
This commit is contained in:
@@ -862,7 +862,7 @@ def chromadb_multiquery():
|
|||||||
|
|
||||||
messages.extend(chat_messages)
|
messages.extend(chat_messages)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
#remove duplicate msgs, filter down to the right number
|
#remove duplicate msgs, filter down to the right number
|
||||||
seen = set()
|
seen = set()
|
||||||
@@ -918,7 +918,7 @@ def chromadb_import():
|
|||||||
collection = chromadb_client.get_or_create_collection(
|
collection = chromadb_client.get_or_create_collection(
|
||||||
name=f"chat-{chat_id_md5}", embedding_function=chromadb_embed_fn
|
name=f"chat-{chat_id_md5}", embedding_function=chromadb_embed_fn
|
||||||
)
|
)
|
||||||
|
|
||||||
documents = [item['document'] for item in content]
|
documents = [item['document'] for item in content]
|
||||||
metadatas = [item['metadata'] for item in content]
|
metadatas = [item['metadata'] for item in content]
|
||||||
ids = [item['id'] for item in content]
|
ids = [item['id'] for item in content]
|
||||||
|
|||||||
Reference in New Issue
Block a user