MCPcopy Create free account
hub / github.com/OpenBMB/ChatDev / get_embedding

Method get_embedding

runtime/node/agent/memory/embedding.py:23–24  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

21
22 @abstractmethod
23 def get_embedding(self, text):
24 ...
25
26 def _preprocess_text(self, text: str) -> str:
27 """Preprocess text to improve embedding quality."""

Callers 4

retrieveMethod · 0.45
updateMethod · 0.45
retrieveMethod · 0.45
_build_embeddingsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected