rename as mini llm flow is poor
This commit is contained in:
@@ -4,7 +4,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import AsyncNode, AsyncBatchFlow
|
||||
from pocketflow import AsyncNode, AsyncBatchFlow
|
||||
|
||||
class AsyncDataProcessNode(AsyncNode):
|
||||
async def prep_async(self, shared_storage):
|
||||
|
||||
@@ -4,7 +4,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import AsyncNode, AsyncBatchNode, AsyncFlow
|
||||
from pocketflow import AsyncNode, AsyncBatchNode, AsyncFlow
|
||||
|
||||
class AsyncArrayChunkNode(AsyncBatchNode):
|
||||
def __init__(self, chunk_size=10):
|
||||
|
||||
@@ -4,7 +4,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import Node, AsyncNode, AsyncFlow
|
||||
from pocketflow import Node, AsyncNode, AsyncFlow
|
||||
|
||||
|
||||
class AsyncNumberNode(AsyncNode):
|
||||
|
||||
@@ -4,7 +4,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import AsyncNode, AsyncParallelBatchNode, AsyncParallelBatchFlow
|
||||
from pocketflow import AsyncNode, AsyncParallelBatchNode, AsyncParallelBatchFlow
|
||||
|
||||
class AsyncParallelNumberProcessor(AsyncParallelBatchNode):
|
||||
def __init__(self, delay=0.1):
|
||||
|
||||
@@ -4,7 +4,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import AsyncParallelBatchNode, AsyncParallelBatchFlow
|
||||
from pocketflow import AsyncParallelBatchNode, AsyncParallelBatchFlow
|
||||
|
||||
class AsyncParallelNumberProcessor(AsyncParallelBatchNode):
|
||||
def __init__(self, delay=0.1):
|
||||
|
||||
@@ -3,7 +3,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import Node, BatchFlow, Flow
|
||||
from pocketflow import Node, BatchFlow, Flow
|
||||
|
||||
class DataProcessNode(Node):
|
||||
def prep(self, shared_storage):
|
||||
|
||||
@@ -3,7 +3,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import Node, BatchNode, Flow
|
||||
from pocketflow import Node, BatchNode, Flow
|
||||
|
||||
class ArrayChunkNode(BatchNode):
|
||||
def __init__(self, chunk_size=10):
|
||||
|
||||
@@ -4,7 +4,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import Node, AsyncNode, Flow, AsyncFlow
|
||||
from pocketflow import Node, AsyncNode, Flow, AsyncFlow
|
||||
|
||||
class FallbackNode(Node):
|
||||
def __init__(self, should_fail=True, max_retries=1):
|
||||
|
||||
@@ -3,7 +3,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import Node, Flow
|
||||
from pocketflow import Node, Flow
|
||||
|
||||
class NumberNode(Node):
|
||||
def __init__(self, number):
|
||||
|
||||
@@ -5,7 +5,7 @@ from pathlib import Path
|
||||
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
from minillmflow import Node, Flow
|
||||
from pocketflow import Node, Flow
|
||||
|
||||
# Simple example Nodes
|
||||
class NumberNode(Node):
|
||||
|
||||
Reference in New Issue
Block a user