langchain_community.embeddings.javelin_ai_gateway.JavelinAIGatewayEmbeddings

class langchain_community.embeddings.javelin_ai_gateway.JavelinAIGatewayEmbeddings[source]

Bases: Embeddings, BaseModel

Javelin AI Gateway embeddings.

To use, you should have the javelin_sdk python package installed. For more information, see https://docs.getjavelin.io

Example

from langchain_community.embeddings import JavelinAIGatewayEmbeddings

embeddings = JavelinAIGatewayEmbeddings(
    gateway_uri="<javelin-ai-gateway-uri>",
    route="<your-javelin-gateway-embeddings-route>"
)
param client: Any = None

javelin client.

param gateway_uri: Optional[str] = None

The URI for the Javelin AI Gateway API.

param javelin_api_key: Optional[str] = None

The API key for the Javelin AI Gateway API.

param route: str [Required]

The route to use for the Javelin AI Gateway API.

async aembed_documents(texts: List[str]) List[List[float]][source]

Asynchronous Embed search docs.

Parameters

texts (List[str]) –

Return type

List[List[float]]

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

Asynchronous Embed query text.

Parameters

text (str) –

Return type

List[float]

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

Embed search docs.

Parameters

texts (List[str]) –

Return type

List[List[float]]

embed_query(text: str) List[float][source]

Embed query text.

Parameters

text (str) –

Return type

List[float]

Examples using JavelinAIGatewayEmbeddings