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.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-22 20:41:45 -03:00
commit 80d0b3e625

View file

@ -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: