Spaces:
Sleeping
Sleeping
Update rag_service.py
Browse files- 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)
|