MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / _get_embedding

Method _get_embedding

methods/embedding_rag.py:28–30  ·  view source on GitHub ↗

Override in subclass for different pooling strategies.

(self, outputs, attention_mask)

Source from the content-addressed store, hash-verified

26 self.model.eval()
27
28 def _get_embedding(self, outputs, attention_mask):
29 """Override in subclass for different pooling strategies."""
30 raise NotImplementedError
31
32 def _embed_single(self, text: str) -> List[float]:
33 """Embed a single text."""

Callers 1

_embed_singleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected