Embed multiple documents (LangChain interface). Args: text: Document strings to embed. Returns: list[list[float]]: One embedding vector per document.
(self, text: List[str])
| 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). |