10 lines
276 B
Python
10 lines
276 B
Python
from app.modules.shared.gigachat.client import GigaChatClient
|
|
|
|
|
|
class GigaChatEmbedder:
|
|
def __init__(self, client: GigaChatClient) -> None:
|
|
self._client = client
|
|
|
|
def embed(self, texts: list[str]) -> list[list[float]]:
|
|
return self._client.embed(texts)
|