From fd6cd7f945bc42501a0d2a46edced005b4a0f556 Mon Sep 17 00:00:00 2001 From: Timor Morrien Date: Mon, 1 Jul 2024 13:43:48 +0200 Subject: [PATCH] Fix linting --- app/pipeline/chat/course_chat_pipeline.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/pipeline/chat/course_chat_pipeline.py b/app/pipeline/chat/course_chat_pipeline.py index e155d574..67e5fed7 100644 --- a/app/pipeline/chat/course_chat_pipeline.py +++ b/app/pipeline/chat/course_chat_pipeline.py @@ -23,9 +23,6 @@ from ..shared.citation_pipeline import CitationPipeline from ...common import convert_iris_message_to_langchain_message from ...domain import PyrisMessage -from app.domain.chat.interaction_suggestion_dto import ( - InteractionSuggestionPipelineExecutionDTO, -) from ...llm import CapabilityRequestHandler, RequirementList from ..prompts.iris_course_chat_prompts import ( tell_iris_initial_system_prompt, @@ -69,7 +66,6 @@ def get_mastery(progress, confidence): return min(100, max(0, round(progress * confidence))) - class CourseChatPipeline(Pipeline): """Course chat pipeline that answers course related questions from students.""" @@ -421,9 +417,7 @@ def lecture_content_retrieval(prompt: str) -> str: self.callback.done("Response created", final_result=out) try: - self.callback.skip( - "Skipping suggestion generation." - ) + self.callback.skip("Skipping suggestion generation.") # if out: # suggestion_dto = InteractionSuggestionPipelineExecutionDTO() # suggestion_dto.chat_history = dto.chat_history