tykiww commited on
Commit
515b5a9
·
verified ·
1 Parent(s): 913fed9

Update services/qa_service/qna.py

Browse files
Files changed (1) hide show
  1. services/qa_service/qna.py +3 -2
services/qa_service/qna.py CHANGED
@@ -42,12 +42,13 @@ class QAService:
42
  include_metadata=True
43
  )
44
 
45
- output = self.parse_results(result)
46
-
47
  return output
48
 
49
  def run(self):
50
  """Query pinecone outputs and infer results"""
 
51
  context = '\n'.join(self.retrieve_context())
52
  prompt = format_prompt(self.question, context)
53
  output = self.model_pipeline.infer(prompt)
 
42
  include_metadata=True
43
  )
44
 
45
+ #output = self.parse_results(result)
46
+ output = result
47
  return output
48
 
49
  def run(self):
50
  """Query pinecone outputs and infer results"""
51
+ print(self.retrieve_context())
52
  context = '\n'.join(self.retrieve_context())
53
  prompt = format_prompt(self.question, context)
54
  output = self.model_pipeline.infer(prompt)