You've already forked RekomenciBackend
Merge branch 'ml'
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from abc import abstractmethod
|
||||
from typing import Protocol
|
||||
|
||||
|
||||
class Embedder(Protocol):
|
||||
@abstractmethod
|
||||
async def encode(self, text: str) -> list[float]:
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user