E5 Small v2

E5_SMALL_V2

Embeds English sentences into 384-dimensional vectors for semantic search and similarity (E5-small-v2).

Embeddings

About E5 Small v2

Embeds English sentences into 384-number vectors for semantic search and similarity. A search query and a document passage are prefixed differently, which is how this model was trained. Compare two vectors with a dot product after they are normalized.

The weights are intfloat/e5-small-v2 at revision ffb93f3bd4047442299a41ebb6fa998a38507c52, published by intfloat (Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder and Furu Wei). The model card states the licence as MIT. The weights file model.safetensors is 133,466,304 bytes and is public.

Limits

English sentences. At most 32 strings per request, and 2000 characters each, so one request stays small on CPU. The input must be a JSON array of strings; other JSON is refused. Vectors support similarity, not classification, translation or factual lookup. The model runs on CPU.

E5 Small v2 inputs and output

NameTypeRequiredDefaultDetails
textstextYes—JSON array of 1 to 32 English strings. Each string is at most 2000 characters.
modetextNoqueryPrefix each text as a search query or as a passage to embed.
Allowed: query, passage
normalizebooleanNotrueL2-normalize each embedding so a dot product is cosine similarity.

Output. Returns plain text.

Run E5 Small v2 with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=E5_SMALL_V2" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "texts": "example",
    "mode": "query",
    "normalize": true
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "E5_SMALL_V2",
        {
          "texts": "example",
          "mode": "query",
          "normalize": True
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

E5 Small v2 pricing

Price per request: 0.008 credits ($0.00008). The price is shown again before every run; all prices are on the pricing page.

BGE-M3: Embeddings model on Kainguru
Embeddings

BGE-M3

Multilingual embeddings for search and retrieval in over 100 languages, for texts up to 8,192 tokens.

Fine-tunable
All MiniLM L6 v2: Embeddings model on Kainguru
Embeddings

All MiniLM L6 v2

Fast, compact English sentence embeddings for semantic search, clustering and finding duplicate texts.

Fine-tunable
Multilingual E5 Large: Embeddings model on Kainguru
Embeddings

Multilingual E5 Large

Multilingual text embeddings for search and similarity in about 100 languages, Azerbaijani included.

Fine-tunable
All MPNet Base v2: Embeddings model on Kainguru
Embeddings

All MPNet Base v2

English sentence and paragraph embeddings for semantic search, clustering and finding similar texts.

Fine-tunable
BGE Reranker v2 M3: Embeddings model on Kainguru
Embeddings

BGE Reranker v2 M3

Ranks up to 100 documents by how relevant each one is to a search query, in many languages.

Fine-tunable
BGE Small EN v1.5: Embeddings model on Kainguru
Embeddings

BGE Small EN v1.5

Small English embeddings for retrieval, where short search queries find the passages that answer them.

Fine-tunable