(self, dimensions: int = 768, model: str = "hash")
| 134 | name = "hash" |
| 135 | |
| 136 | def __init__(self, dimensions: int = 768, model: str = "hash") -> None: |
| 137 | self.model = model |
| 138 | self.dimensions = dimensions |
| 139 | |
| 140 | def embed(self, text: str) -> List[float]: |
| 141 | digest = hashlib.sha256((text or "").encode("utf-8")).digest() |
nothing calls this directly
no outgoing calls
no test coverage detected