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

Method __init__

paperflow/providers/embedding.py:136–138  ·  view source on GitHub ↗
(self, dimensions: int = 768, model: str = "hash")

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected