MCPcopy Create free account
hub / github.com/ScienciaLAB/document-qa / embed

Method embed

document_qa/deployment/modal_embeddings_en.py:39–40  ·  view source on GitHub ↗
(self, request: Request, text: Annotated[str, Form()])

Source from the content-addressed store, hash-verified

37
38 @modal.fastapi_endpoint(method="POST", label=LABEL)
39 def embed(self, request: Request, text: Annotated[str, Form()]):
40 return run_embed(self.tokenizer, self.model, self.device, request, text)

Callers

nothing calls this directly

Calls 1

run_embedFunction · 0.90

Tested by

no test coverage detected