pull/10/head
Kye 1 year ago
parent 4bcd090a06
commit b717b3c6dc

@ -51,7 +51,7 @@ class Orchestrator(ABC):
def __init__(self, def __init__(self,
agent, agent,
agent_list: List[Any], agent_list: List[Any],
task_queue: celery.Celery, task_queue: List[Any],
vector_db: OceanDB vector_db: OceanDB
): ):
self.agent = agent self.agent = agent
@ -97,7 +97,7 @@ class Orchestrator(ABC):
raise raise
@abstractmethod @abstractmethod
def update_vector_db(self, data: np.ndarray) -> None: def update_vector_db(self, data) -> None:
"""Update the vector database""" """Update the vector database"""
try: try:
self.vector_db.add_documents([data['vector']], [str(data['task_id'])]) self.vector_db.add_documents([data['vector']], [str(data['task_id'])])
@ -107,7 +107,7 @@ class Orchestrator(ABC):
@abstractmethod @abstractmethod
def get_vector_db(self) -> np.ndarray: def get_vector_db(self):
"""Retrieve the vector database""" """Retrieve the vector database"""
return self.vector_db return self.vector_db

Loading…
Cancel
Save