Shakir60 commited on
Commit
8fe3afb
·
verified ·
1 Parent(s): 7914a56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -307,9 +307,6 @@ class RAGSystem:
307
  # Combine relevant documents into context
308
  context = "\n\n".join([self.knowledge_base[i]["text"] for i in I[0]])
309
  return context
310
- except Exception as e:
311
- logger.error(f"Error retrieving context: {e}")
312
- return ""
313
 
314
  def get_groq_response(query: str, context: str) -> str:
315
  """Get response from Groq LLM"""
 
307
  # Combine relevant documents into context
308
  context = "\n\n".join([self.knowledge_base[i]["text"] for i in I[0]])
309
  return context
 
 
 
310
 
311
  def get_groq_response(query: str, context: str) -> str:
312
  """Get response from Groq LLM"""