Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Add no-op pipeline, closes #152

davidmezzetti434c65f2378f
diff --git a/src/python/txtai/pipeline/nop.py b/src/python/txtai/pipeline/nop.py
new file mode 100644
index 00000000..d4bf0185
--- /dev/null
+++ b/src/python/txtai/pipeline/nop.py
@@ -0,0 +1,14 @@
+"""
+No-Op module
+"""
+
+from .base import Pipeline
+
+
+class Nop(Pipeline):
+ """
+ Simple no-op pipeline that returns inputs
+ """
+
+ def __call__(self, inputs):
+ return inputs