Kye 2 years ago
parent 20d9488936
commit 306b8ff15e

@ -58,7 +58,7 @@ index = faiss.IndexFlatL2(embedding_size)
vectorstore = FAISS(embeddings_model.embed_query, index, InMemoryDocstore({}), {}) vectorstore = FAISS(embeddings_model.embed_query, index, InMemoryDocstore({}), {})
# ---------- Worker Node ---------- # ---------- Worker Node ----------
@tool @tool("workerAgent", return_direct=True)
class WorkerNode: class WorkerNode:
def __init__(self, llm, tools, vectorstore): def __init__(self, llm, tools, vectorstore):
self.llm = llm self.llm = llm

Loading…
Cancel
Save