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

Method embed_documents

document_qa/custom_embeddings.py:62–71  ·  view source on GitHub ↗

Embed multiple documents (LangChain interface). Args: text: Document strings to embed. Returns: list[list[float]]: One embedding vector per document.

(self, text: List[str])

Source from the content-addressed store, hash-verified

60 return response.json()
61
62 def embed_documents(self, text: List[str]) -> List[List[str]]:
63 """Embed multiple documents (LangChain interface).
64
65 Args:
66 text: Document strings to embed.
67
68 Returns:
69 list[list[float]]: One embedding vector per document.
70 """
71 return self.embed(text)
72
73 def embed_query(self, text: str) -> List[List[str]]:
74 """Embed a single query string (LangChain interface).

Callers

nothing calls this directly

Calls 1

embedMethod · 0.95

Tested by

no test coverage detected