Toggle Menu
Prev Up Next

# `langchain_google_genai.google_vector_store`.ServerSideEmbedding

class langchain_google_genai.google_vector_store.ServerSideEmbedding

  Do nothing embedding model where the embedding is done by the server.

  Methods

  `__init__`() |
  `aembed_documents`(texts) | Asynchronous Embed search docs.
  `aembed_query`(text) | Asynchronous Embed query text.
  `embed_documents`(texts) | Embed search docs.
  `embed_query`(text) | Embed query text.

  __init__()
  async aembed_documents(texts: List[str]) → List[List[float]]

    Asynchronous Embed search docs.

    Parameters

      texts (List[str]) –

    Return type

      List[List[float]]

  async aembed_query(text: str) → List[float]

    Asynchronous Embed query text.

    Parameters

      text (str) –

    Return type

      List[float]

  embed_documents(texts: List[str]) → List[List[float]]

    Embed search docs.

    Parameters

      texts (List[str]) –

    Return type

      List[List[float]]

  embed_query(text: str) → List[float]

    Embed query text.

    Parameters

      text (str) –

    Return type

      List[float]