forked from innovacion/searchbox
Add custom exceptions
This commit is contained in:
@@ -12,7 +12,7 @@ maintaining a consistent interface for the semantic search workflow.
|
||||
"""
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Generic, TypeVar
|
||||
from typing import TypeVar
|
||||
|
||||
from ..models import Condition, SearchRow
|
||||
|
||||
@@ -22,7 +22,7 @@ ConditionType = TypeVar("ConditionType")
|
||||
__all__ = ["BaseEngine"]
|
||||
|
||||
|
||||
class BaseEngine(ABC, Generic[ResponseType, ConditionType]):
|
||||
class BaseEngine[ResponseType, ConditionType](ABC):
|
||||
"""Abstract base class for vector search engines.
|
||||
|
||||
This class defines the interface that all vector search engine implementations
|
||||
|
||||
Reference in New Issue
Block a user