anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Multilingual text embedding model of 346M parameters from the Voyage 4 series, for semantic search and retrieval, with flexible vector sizes. For developers building search and RAG systems.
voyage-4-nano is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download MongoDB/voyage-4-nano
voyage-4-nano turns text into number vectors for semantic search and retrieval. Voyage AI developed it as part of the Voyage 4 models, and this copy sits under MongoDB's account. It is multilingual, accepts inputs up to 32,000 tokens, and has 346 million parameters.
It suits developers building search or retrieval systems who want a small embedding model for local development, with a path to larger Voyage 4 models later.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Search engineers | Embed documents and queries for semantic search | Finding the passage that answers a question |
| AI apps | RAG builders | Retrieve supporting documents for a chatbot | Fetching context before an answer is written |
| Data platforms | Database teams | Store compact vectors for fast lookup | Keeping binary or 8-bit embeddings to save space |
You can skip it if you need an embedding model for images, or if you have no use for vector search.
It runs in Python through the transformers or sentence-transformers libraries. It works on Windows, macOS or Linux, with an Nvidia GPU optional for faster work.
| Use case | Who | What they get back |
|---|---|---|
| Query embedding | Search developers | A vector for a question, using the right prompt automatically |
| Document embedding | Data engineers | One vector per document in a list |
| Flexible size | Platform teams | Vectors of 2048, 1024, 512 or 256 dimensions |
You need Python with transformers 4.56 or newer, or the sentence-transformers package. Hugging Face lists the weights at about 693 MB in BF16. The card advises the same arguments on Nvidia GPUs, with flash attention when the GPU supports it.
pip install -U huggingface_hub hf download MongoDB/voyage-4-nano
Load the model, then call encode_query for questions and encode_document for passages, so that the right prompts are added for you. You can shorten vectors with truncate_dim.
from sentence_transformers import SentenceTransformer
import torch
# Standard loading, assuming no GPU access
model = SentenceTransformer(
"voyageai/voyage-4-nano",
trust_remote_code=True,
truncate_dim=2048
)
query = "Which planet is known as the Red Planet?"
documents = [
"Venus is often called Earth's twin because of its similar size and proximity.",
"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
"Jupiter, the largest planet in our solar system, has a prominent red spot.",
"Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
]
# Encode via encode_query and encode_document to automatically use the right prompts
query_embedding = model.encode_query(query)
document_embeddings = model.encode_document(documents)| Tool | What it does |
|---|---|
| SentenceTransformer | Loads the model with settings such as truncate_dim |
| encode_query | Embeds a question with the query prompt |
| encode_document | Embeds passages with the document prompt |
You embed the question about the Red Planet and four short passages about planets. The vectors for the question and the Mars passage end up closest, so a similarity search returns the Mars sentence first.
If you are new, an embedding turns a sentence into a list of numbers so a computer can compare meaning. Run the example, then compare the question vector with each passage vector.
If you know the field, the model uses Matryoshka representation learning for 2048, 1024, 512 and 256 dimensions. It also uses quantization-aware training, so output can be 32-bit float, signed or unsigned 8-bit integers, or binary. Its vectors share one space with the other Voyage 4 models.
You can mix sizes across the Voyage 4 family, for example indexing with one model and querying with another, without rebuilding the index.
Multilingual text embedding model of 346M parameters from the Voyage 4 series, for semantic search and retrieval, with flexible vector sizes. For developers building search and RAG systems.
Made by MongoDB on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: voyage-4-nano turns text into number vectors for semantic search and retrieval. Voyage AI developed it as part of the Voyage 4 models, and this copy sits under MongoDB's account. It is multilingual, accepts inputs up to 32,000 tokens, and has 346 million parameters.
Who it suits: It suits developers building search or retrieval systems who want a small embedding model for local development, with a path to larger Voyage 4 models later.
Industry | Who uses it | How they use it | Example
Software | Search engineers | Embed documents and queries for semantic search | Finding the passage that answers a question
AI apps | RAG builders | Retrieve supporting documents for a chatbot | Fetching context before an answer is written
Data platforms | Database teams | Store compact vectors for fast lookup | Keeping binary or 8-bit embeddings to save space
You can skip it if you need an embedding model for images, or if you have no use for vector search.
Where to use it: It runs in Python through the transformers or sentence-transformers libraries. It works on Windows, macOS or Linux, with an Nvidia GPU optional for faster work.
Use case | Who | What they get back
Query embedding | Search developers | A vector for a question, using the right prompt automatically
Document embedding | Data engineers | One vector per document in a list
Flexible size | Platform teams | Vectors of 2048, 1024, 512 or 256 dimensions
How to set it up: You need Python with transformers 4.56 or newer, or the sentence-transformers package. Hugging Face lists the weights at about 693 MB in BF16. The card advises the same arguments on Nvidia GPUs, with flash attention when the GPU supports it.
pip install -U huggingface_hub
hf download MongoDB/voyage-4-nano
How to use it: Load the model, then call encode_query for questions and encode_document for passages, so that the right prompts are added for you. You can shorten vectors with truncate_dim.
from sentence_transformers import SentenceTransformer
import torch
# Standard loading, assuming no GPU access
model = SentenceTransformer(
"voyageai/voyage-4-nano",
trust_remote_code=True,
truncate_dim=2048
)
query = "Which planet is known as the Red Planet?"
documents = [
"Venus is often called Earth's twin because of its similar size and proximity.",
"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
"Jupiter, the largest planet in our solar system, has a prominent red spot.",
"Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
]
# Encode via encode_query and encode_document to automatically use the right prompts
query_embedding = model.encode_query(query)
document_embeddings = model.encode_document(documents)
Tool | What it does
SentenceTransformer | Loads the model with settings such as truncate_dim
encode_query | Embeds a question with the query prompt
encode_document | Embeds passages with the document prompt
Example: You embed the question about the Red Planet and four short passages about planets. The vectors for the question and the Mars passage end up closest, so a similarity search returns the Mars sentence first.
For newcomers and experts: If you are new, an embedding turns a sentence into a list of numbers so a computer can compare meaning. Run the example, then compare the question vector with each passage vector.
If you know the field, the model uses Matryoshka representation learning for 2048, 1024, 512 and 256 dimensions. It also uses quantization-aware training, so output can be 32-bit float, signed or unsigned 8-bit integers, or binary. Its vectors share one space with the other Voyage 4 models.
Text input
Prompt added for query or document
Embedding model
Vector in the chosen size and type
Similarity search
Good to know: You can mix sizes across the Voyage 4 family, for example indexing with one model and querying with another, without rebuilding the index.
Title: Parameters in millions
Non-embedding: 180 M
Embedding: 160 M
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download MongoDB/voyage-4-nano
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| voyage-4-nano This page | 90,118 | 152 | 346M | apache-2.0 | |
| harrier-oss-v1-0.6bShares text-embeddings-inference · sentence-transformers · multilingual | 218,439 | 338 | 596M | mit | |
| Qwen3-Embedding-0.6BShares text-embeddings-inference · sentence-transformers · qwen3 | 8,761,091 | 1,346 | 596M | apache-2.0 | |
| Qwen3-Embedding-4BShares text-embeddings-inference · sentence-transformers · qwen3 | 2,426,700 | 351 | 4B | apache-2.0 | |
| Qwen3-Embedding-8BShares text-embeddings-inference · sentence-transformers · qwen3 | 2,358,928 | 858 | 7.6B | apache-2.0 | |
| paraphrase-multilingual-MiniLM-L12-v2Shares text-embeddings-inference · sentence-transformers · multilingual | 26,540,125 | 1,505 | 118M | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.