MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / __init__

Method __init__

paperflow/providers/embedding.py:106–110  ·  view source on GitHub ↗
(self, model: str, dimensions: int, base_url: str = "http://localhost:11434", timeout: float = 60.0)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected