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 truncation to summary pipeline

davidmezzetti17963dfb7805
diff --git a/src/python/txtai/pipeline/summary.py b/src/python/txtai/pipeline/summary.py
index d9d20262..46fcd9e9 100644
--- a/src/python/txtai/pipeline/summary.py
+++ b/src/python/txtai/pipeline/summary.py
@@ -31,7 +31,7 @@ class Summary(HFPipeline):
summary text
"""
- kwargs = {}
+ kwargs = {"truncation": True}
if minlength:
kwargs["min_length"] = minlength
if maxlength: