bupa1018 commited on
Commit
2ec10be
·
1 Parent(s): 899338b

Update kadi_apy_bot.py

Browse files
Files changed (1) hide show
  1. kadi_apy_bot.py +2 -2
kadi_apy_bot.py CHANGED
@@ -93,7 +93,7 @@ class KadiAPYBot:
93
  {query}
94
  """
95
  )
96
- return self.llm.invoke(rewrite_prompt)
97
 
98
 
99
  def predict_library_usage(self, query):
@@ -113,7 +113,7 @@ class KadiAPYBot:
113
  Respond with only the exact corresponding option and do not include any additional comments, explanations, or text."
114
  """
115
  )
116
- return self.llm.predict(prompt)
117
 
118
  def retrieve_contexts(self, query, k, filter = None):
119
  """
 
93
  {query}
94
  """
95
  )
96
+ return self.llm.invoke(rewrite_prompt).content
97
 
98
 
99
  def predict_library_usage(self, query):
 
113
  Respond with only the exact corresponding option and do not include any additional comments, explanations, or text."
114
  """
115
  )
116
+ return self.llm.predict(prompt).content
117
 
118
  def retrieve_contexts(self, query, k, filter = None):
119
  """