jina_to_list
embeds(CreateEmbeddingResponse): The embedding response returned by the Jina API.
list[list[float]]: One embedding per input document.
JinaEncoder Objects
https://api.jina.ai/v1 rather than depending on
LiteLLM.
__init__
name(str): The name of the embedding model to use such as “jina-embeddings-v3”.api_key(str): The Jina API key, can also be set via the JINA_API_KEY or JINA_AI_API_KEY environment variable.score_threshold(float): The score threshold for the embeddings.base_url(str): Override the Jina API base URL, can also be set via the JINA_BASE_URL or JINA_AI_API_BASE environment variable.
ValueError: If no API key is provided or found in the environment.
__call__
docs(list[Any]): List of text documents to encode.
list[list[float]]: List of embeddings for each document.
acall
docs(list[Any]): List of text documents to encode.
list[list[float]]: List of embeddings for each document.
