jina-embeddings-v5-text-nano-retrieval-mlx

79
license:cc-by-nc-4.0
by
jinaai
Embedding Model
OTHER
New
79 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary

AI model with specialized capabilities.

Code Examples

Usagepython
import mlx.core as mx
from tokenizers import Tokenizer
from model import JinaEmbeddingModel
import json

with open("config.json") as f:
    config = json.load(f)

model = JinaEmbeddingModel(config)
weights = mx.load("model.safetensors")
model.load_weights(list(weights.items()))

tokenizer = Tokenizer.from_file("tokenizer.json")

# Encode query
query_embeddings = model.encode(
    ["Overview of climate change impacts on coastal cities"],
    tokenizer,
    task_type="retrieval.query",
)

# Encode document
document_embeddings = model.encode(
    ["Climate change has led to rising sea levels, increased frequency of extreme weather events..."],
    tokenizer,
    task_type="retrieval.passage",
)

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.