diff --git a/app/common/__init__.py b/app/common/__init__.py index 7d9f7f65..97e30c68 100644 --- a/app/common/__init__.py +++ b/app/common/__init__.py @@ -1,2 +1 @@ from common.singleton import Singleton -from common.singleton_abstract import SingletonABCMeta diff --git a/app/pipeline/chat/simple_chat_pipeline.py b/app/pipeline/chat/simple_chat_pipeline.py index e556aad2..b1e58896 100644 --- a/app/pipeline/chat/simple_chat_pipeline.py +++ b/app/pipeline/chat/simple_chat_pipeline.py @@ -11,7 +11,6 @@ class SimpleChatPipeline(Pipeline): """A simple chat pipeline that uses our custom langchain chat model for our own request handler""" - _is_abstract: bool = False llm: IrisLangchainChatModel pipeline: Runnable diff --git a/app/pipeline/chat/tutor_chat_pipeline.py b/app/pipeline/chat/tutor_chat_pipeline.py index 9e82e2d5..3390b81d 100644 --- a/app/pipeline/chat/tutor_chat_pipeline.py +++ b/app/pipeline/chat/tutor_chat_pipeline.py @@ -16,7 +16,6 @@ class TutorChatPipeline(Pipeline): """Tutor chat pipeline that answers exercises related questions from students.""" - _is_abstract: bool = False llm: IrisLangchainChatModel pipeline: Runnable diff --git a/app/pipeline/pipeline.py b/app/pipeline/pipeline.py index 2a10672a..e7c3e346 100644 --- a/app/pipeline/pipeline.py +++ b/app/pipeline/pipeline.py @@ -1,12 +1,9 @@ -from abc import abstractmethod +from abc import abstractmethod, ABCMeta -from common import SingletonABCMeta - -class Pipeline(metaclass=SingletonABCMeta): +class Pipeline(metaclass=ABCMeta): """Abstract class for all pipelines""" - _is_abstract = True implementation_id: str def __init__(self, implementation_id=None): diff --git a/app/pipeline/shared/summary_pipeline.py b/app/pipeline/shared/summary_pipeline.py index c020f667..c922c170 100644 --- a/app/pipeline/shared/summary_pipeline.py +++ b/app/pipeline/shared/summary_pipeline.py @@ -15,7 +15,6 @@ class SummaryPipeline(Pipeline): """A generic summary pipeline that can be used to summarize any text""" - _is_abstract: bool = False _cache: Dict = {} llm: IrisLangchainChatModel pipeline: Runnable