Source code for langchain_db2.utils
from typing import Protocol, runtime_checkable
[docs]
@runtime_checkable
class EmbeddingsSchema(Protocol):
[docs]
def embed_documents(self, texts: list[str]) -> list[list[float]]: ...
[docs]
def embed_query(self, text: str) -> list[float]: ...