Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Set gpu=True for questions pipeline to be consistent with other pipelines

davidmezzetti325498cc5426
diff --git a/src/python/txtai/pipeline/questions.py b/src/python/txtai/pipeline/questions.py
index 7d718339..73b754af 100644
--- a/src/python/txtai/pipeline/questions.py
+++ b/src/python/txtai/pipeline/questions.py
@@ -10,7 +10,7 @@ class Questions(HFPipeline):
Runs extractive QA for a series of questions and contexts.
"""
- def __init__(self, path=None, quantize=False, gpu=False, model=None):
+ def __init__(self, path=None, quantize=False, gpu=True, model=None):
super().__init__("question-answering", path, quantize, gpu, model)
def __call__(self, questions, contexts, workers=0):