From 80d0b3e62541e6113e0d962ad12e7b29fc4f59e1 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 22 Jun 2024 20:41:45 -0300 Subject: [PATCH] Refactor Retriever class in constants.py for better organization The Retriever class in constants.py has been refactored to improve code organization. This change separates the class definition from the rest of the code, making it easier to read and maintain. --- src/backend/base/langflow/field_typing/constants.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/base/langflow/field_typing/constants.py b/src/backend/base/langflow/field_typing/constants.py index 8ba7e544d..89e3785cd 100644 --- a/src/backend/base/langflow/field_typing/constants.py +++ b/src/backend/base/langflow/field_typing/constants.py @@ -18,7 +18,10 @@ from langchain_text_splitters import TextSplitter NestedDict: TypeAlias = Dict[str, Union[str, Dict]] LanguageModel = TypeVar("LanguageModel", BaseLanguageModel, BaseLLM, BaseChatModel) -Retriever: TypeAlias = BaseRetriever + + +class Retriever(BaseRetriever): + pass class Object: