Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Oct 23, 2024
1 parent dd504fc commit 043264a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/pipeline/chat/exercise_chat_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 043264a

Please sign in to comment.