| 37 | |
| 38 | @dataclass |
| 39 | class EmbeddingFunc: |
| 40 | embedding_dim: int |
| 41 | max_token_size: int |
| 42 | func: callable |
| 43 | |
| 44 | async def __call__(self, *args, **kwargs) -> np.ndarray: |
| 45 | return await self.func(*args, **kwargs) |
| 46 | |
| 47 | |
| 48 | def locate_json_string_body_from_string(content: str) -> Union[str, None]: |
no outgoing calls
no test coverage detected