Get the embedding representation of the input text. Args: texts (str): The input text to embed. model (str): The name of the model to use. Returns: list[float]: The embedding vector as a list of floats.
(self, texts: list[str], model: Optional[str] = None)
| 132 | embedding_async_client: Any = field(init=False, default=None) |
| 133 | |
| 134 | async def encode(self, texts: list[str], model: Optional[str] = None) -> np.ndarray[Any, np.dtype[np.float32]]: |
| 135 | """Get the embedding representation of the input text. |
| 136 | |
| 137 | Args: |
| 138 | texts (str): The input text to embed. |
| 139 | model (str): The name of the model to use. |
| 140 | |
| 141 | Returns: |
| 142 | list[float]: The embedding vector as a list of floats. |
| 143 | """ |
| 144 | raise NotImplementedError |
| 145 | |
| 146 | |
| 147 | class NoopAsyncContextManager: |
no outgoing calls
no test coverage detected