Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Clear workflow batch during processing, close #90

davidmezzetti7e83c611766a
diff --git a/src/python/txtai/workflow/base.py b/src/python/txtai/workflow/base.py
index 21a813ab..3859c44a 100644
--- a/src/python/txtai/workflow/base.py
+++ b/src/python/txtai/workflow/base.py
@@ -37,6 +37,7 @@ class Workflow:
if len(batch) == self.batch:
yield from self.process(batch)
+ batch = []
if batch:
yield from self.process(batch)