fix(asyncio): replaced deepcopy with copy due to serialization problems

This commit is contained in:
Marco Perini 2024-05-13 18:46:34 +02:00
parent 627cbeeb20
commit dedc733047
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ graph_config = {
# ************************************************
search_graph = SearchGraph(
prompt="List me the best escursions near Trento",
prompt="List me Chioggia's famous dishes",
config=graph_config
)

View File

@ -11,7 +11,7 @@ from tqdm.asyncio import tqdm
from .base_node import BaseNode
_default_batchsize = 4
_default_batchsize = 2
class GraphIteratorNode(BaseNode):
@ -118,7 +118,7 @@ class GraphIteratorNode(BaseNode):
# creates a deepcopy of the graph instance for each endpoint
for url in urls:
instance = copy.deepcopy(graph_instance)
instance = copy.copy(graph_instance)
instance.source = url
participants.append(instance)