From ca107ea8f1ede9fbca3b9ea795d62527b472bcc3 Mon Sep 17 00:00:00 2001 From: Kye Date: Mon, 25 Sep 2023 14:22:42 -0400 Subject: [PATCH] clean up Former-commit-id: c1bed2ade08a7f2f78499b1f7559a183f0017608 --- swarms/workers/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarms/workers/worker.py b/swarms/workers/worker.py index 24fcec76..5cd01f94 100644 --- a/swarms/workers/worker.py +++ b/swarms/workers/worker.py @@ -180,7 +180,7 @@ class Worker: """ try: embeddings_model = OpenAIEmbeddings(openai_api_key=self.openai_api_key) - embedding_size = 4096 + embedding_size = 1892 index = faiss.IndexFlatL2(embedding_size) self.vectorstore = FAISS(embeddings_model.embed_query, index, InMemoryDocstore({}), {})