
All MiniLM L6 v2
Fast, compact English sentence embeddings for semantic search, clustering and finding duplicate texts.
Fine-tunableMS_MARCO_MINILM_L6_V2Small, fast English reranker that scores how well each of up to 100 passages answers a search query.

| Name | Type | Required | Default | Details |
|---|---|---|---|---|
query | text | Yes | — | The search query or question. 1–8192 characters |
documents | text | Yes | — | A JSON array of 1 to 100 texts to rank, each at most 8192 characters; the whole JSON text at most 120000 characters. 2–120000 characters |
top_n | integer | No | — | Return only the best N documents (default: all of them). 1–100 |
Output. JSON, best first: [{"index": i, "score": s}, ...]; index is the document's position in the input, score its relevance from 0 to 1.
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 -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=MS_MARCO_MINILM_L6_V2" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"documents": "example",
"query": "example"
},
"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"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(
"MS_MARCO_MINILM_L6_V2",
{
"documents": "example",
"query": "example"
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune MS MARCO MiniLM L6 v2 on your own data and run the tuned model through the same API. Dataset: Up to 10 JSONL files, 200 MiB in total, one object per line: {"query": "...", "positive": "...", "negative": "..."} ("negative" optional), or {"query": "...", "document": "...", "label": 0 to 1}. 8 to 50000 examples, both relevant and irrelevant.
The steps are in the docs.
Price per request: 0.02185 credits ($0.0002185). The price is shown again before every run; all prices are on the pricing page.

Fast, compact English sentence embeddings for semantic search, clustering and finding duplicate texts.
Fine-tunable
English text embeddings for search, clustering and classification, for texts up to 8,192 tokens long.
Fine-tunable
Multilingual reranker that scores how well each of up to 100 documents answers a query, in over 100 languages and code.
Fine-tunable
English retrieval embeddings for search and RAG, where search queries find the passages that answer them.
Fine-tunable
English sentence and paragraph embeddings for semantic search, clustering and finding similar texts.
Fine-tunable
Ranks up to 100 documents by how relevant each one is to a search query, in many languages.
Fine-tunable