From 5a96060db6111b83e77f61c22baeccd77daba9d4 Mon Sep 17 00:00:00 2001 From: Kye Date: Sat, 29 Jul 2023 11:51:35 -0400 Subject: [PATCH] clean up Former-commit-id: 8e50609a7503c77afccaa89d3786a1227f98c148 --- swarms/workers/worker_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swarms/workers/worker_node.py b/swarms/workers/worker_node.py index b306ea49..ef4d7e4f 100644 --- a/swarms/workers/worker_node.py +++ b/swarms/workers/worker_node.py @@ -26,6 +26,7 @@ ROOT_DIR = "./data/" logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') + class WorkerNodeInitializer: """Useful for when you need to spawn an autonomous agent instance as a worker to accomplish complex tasks, it can search the internet or spawn child multi-modality models to process and generate images and text or audio and so on""" @@ -42,7 +43,7 @@ class WorkerNodeInitializer: self.llm = llm if llm is not None else ChatOpenAI() self.tools = tools if tools is not None else [ReadFileTool(), WriteFileTool()] - self.vectorstore = vectorstore if vectorstore is not None else FAISS(faiss.IndexFlatIP(512)) + self.vectorstore = vectorstore if vectorstore is not None else #FAISS(faiss.IndexFlatIP(512)) # Initializing agent in the constructor self.ai_name = ai_name