tykiww commited on
Commit
97fb67e
·
verified ·
1 Parent(s): 9557fd1

Update services/qa_service/qna.py

Browse files
Files changed (1) hide show
  1. services/qa_service/qna.py +6 -5
services/qa_service/qna.py CHANGED
@@ -52,9 +52,10 @@ class QAService:
52
  def run(self):
53
  """Query pinecone outputs and infer results"""
54
  full_context = self.retrieve_context()
55
- context = [i["text"] for i in full_context]
56
- print(context)
57
- prompt = format_prompt(self.question, context)
58
- output = self.model_pipeline.infer(prompt)
 
59
 
60
- return output, context
 
52
  def run(self):
53
  """Query pinecone outputs and infer results"""
54
  full_context = self.retrieve_context()
55
+
56
+ #context = [i["text"] for i in full_context]
57
+
58
+ #prompt = format_prompt(self.question, context)
59
+ #output = self.model_pipeline.infer(prompt)
60
 
61
+ return full_context # output, context