(self, model: str, dimensions: int, base_url: str = "http://localhost:11434", timeout: float = 60.0)
| 104 | name = "ollama" |
| 105 | |
| 106 | def __init__(self, model: str, dimensions: int, base_url: str = "http://localhost:11434", timeout: float = 60.0) -> None: |
| 107 | self.model = model |
| 108 | self.dimensions = dimensions |
| 109 | self._base_url = base_url.rstrip("/") |
| 110 | self._timeout = timeout |
| 111 | |
| 112 | def embed(self, text: str) -> List[float]: |
| 113 | response = requests.post( |
nothing calls this directly
no outgoing calls
no test coverage detected