sepidnes commited on
Commit
15a4149
·
verified ·
1 Parent(s): 48a6f56

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +1 -1
backend/main.py CHANGED
@@ -82,7 +82,7 @@ class RetrievalAugmentedQAPipeline:
82
  formatted_user_prompt = user_role_prompt.create_message(question=user_query, context=context_prompt)
83
 
84
  # Remove await since run is not an async method
85
- response = self.llm.run([formatted_system_prompt, formatted_user_prompt])
86
 
87
  return {"response": response, "context": context_list}
88
 
 
82
  formatted_user_prompt = user_role_prompt.create_message(question=user_query, context=context_prompt)
83
 
84
  # Remove await since run is not an async method
85
+ response = await self.llm.run([formatted_system_prompt, formatted_user_prompt])
86
 
87
  return {"response": response, "context": context_list}
88