diff --git a/app/pipeline/chat/exercise_chat_pipeline.py b/app/pipeline/chat/exercise_chat_pipeline.py index 8b05ee89..386cd27a 100644 --- a/app/pipeline/chat/exercise_chat_pipeline.py +++ b/app/pipeline/chat/exercise_chat_pipeline.py @@ -240,7 +240,10 @@ def _run_exercise_chat_pipeline( if should_execute_lecture_pipeline: try: self.retrieved_lecture_chunks = future_lecture.result() - if self.retriever.tokens is not None and len(self.retriever.tokens) > 0: + if ( + self.retriever.tokens is not None + and len(self.retriever.tokens) > 0 + ): self.tokens.extend(self.retriever.tokens) if len(self.retrieved_lecture_chunks) > 0: self._add_relevant_chunks_to_prompt(