Amna2024 commited on
Commit
d5b4a47
·
verified ·
1 Parent(s): 9f3a948

Update rag_service.py

Browse files
Files changed (1) hide show
  1. rag_service.py +1 -1
rag_service.py CHANGED
@@ -157,7 +157,7 @@ class RAGService:
157
  # Check if RAG retrieval finds relevant context
158
  context_length = self._check_context_length(question)
159
 
160
- if context_length > 0:
161
  # Get the retrieved context for potential clarification
162
  retrieved_docs = self.retriever.invoke(question)
163
  parsed_context = self.parse_docs(retrieved_docs)
 
157
  # Check if RAG retrieval finds relevant context
158
  context_length = self._check_context_length(question)
159
 
160
+ if context_length >= 0:
161
  # Get the retrieved context for potential clarification
162
  retrieved_docs = self.retriever.invoke(question)
163
  parsed_context = self.parse_docs(retrieved_docs)