Spaces:
Sleeping
Sleeping
Update services/qa_service/qna.py
Browse files
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)
|