MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / embed_list

Method embed_list

camel/embeddings/base.py:26–41  ·  view source on GitHub ↗

r"""Generates embeddings for the given texts. Args: objs (list[T]): The objects for which to generate the embeddings. **kwargs (Any): Extra kwargs passed to the embedding API. Returns: list[list[float]]: A list that represents the

(
        self,
        objs: list[T],
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

24
25 @abstractmethod
26 def embed_list(
27 self,
28 objs: list[T],
29 **kwargs: Any,
30 ) -> list[list[float]]:
31 r"""Generates embeddings for the given texts.
32
33 Args:
34 objs (list[T]): The objects for which to generate the embeddings.
35 **kwargs (Any): Extra kwargs passed to the embedding API.
36
37 Returns:
38 list[list[float]]: A list that represents the
39 generated embedding as a list of floating-point numbers.
40 """
41 pass
42
43 def embed(
44 self,

Callers 2

embedMethod · 0.95
processMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected