mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
19 lines
304 B
Python
19 lines
304 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class BaseRetriever(ABC):
|
|
def __init__(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def gen(self, *args, **kwargs):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def search(self, *args, **kwargs):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_params(self):
|
|
pass
|