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…
Turns text in many languages into embedding vectors for search, clustering, similarity, classification and reranking. Made for developers who run semantic search or retrieval and can host a 27B model.
harrier-oss-v1-27b 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 microsoft/harrier-oss-v1-27b
harrier-oss-v1-27b is the largest model in Microsoft's multilingual text embedding family. It turns a sentence or passage into a dense vector, using a decoder-only design with last-token pooling and L2 normalization. You compare the vectors to find text with a similar meaning. It was trained with contrastive learning on a large mix of multilingual data.
It suits developers and data teams who build search, recommendation or text-grouping features across several languages and have the hardware for a 27B model.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Search engineers | Embed queries and passages, then rank passages by score | A semantic search over help articles |
| Data science | Analysts | Cluster texts or measure how close two texts are in meaning | Grouping survey answers by topic |
| Localization | Language teams | Mine matching sentence pairs across languages | Finding translated sentence pairs |
| Support | Platform teams | Retrieve relevant passages and rerank them | Matching a question to stored answers |
Skip it if you need a model that writes replies, since it only outputs vectors. Skip the 27B size if memory is tight, because the family also has 270m and 0.6b models.
| Use case | Who | What they get back |
|---|---|---|
| Retrieval | Search engineers | Similarity scores between a query and passages |
| Clustering | Data teams | Vectors you can group by meaning |
| Bitext mining | Language teams | Vectors that line up matching sentences across languages |
| Classification | ML engineers | Vectors you feed to a classifier |
pip install -U huggingface_hub hf download microsoft/harrier-oss-v1-27b
You encode queries with a prompt and documents without one, then take the dot product of the two sets of vectors. The card's example multiplies the result by 100 to print scores. A config file in the repository holds ready-made prompts for web search, similarity and bitext work.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("microsoft/harrier-oss-v1-27b", model_kwargs={"dtype": "auto"})query_embeddings = model.encode(queries, prompt_name="web_search_query") document_embeddings = model.encode(documents) scores = (query_embeddings @ document_embeddings.T) * 100 print(scores.tolist())
To use your own instruction, pass it directly.
model.encode(queries, prompt="Instruct: Retrieve semantically similar text\nQuery: ")
| Tool | What it does |
|---|---|
| SentenceTransformer | Loads the model with the dtype set automatically |
| encode | Turns a list of texts into embedding vectors |
| prompt_name | Picks a pre-set instruction such as web_search_query |
| last_token_pool | Pools the last token's state when you use plain transformers |
You encode two questions, "how much protein should a female eat" and "summit define", plus two passages that answer them. The script prints a grid of scores, one row per question. The matching passage should score highest in each row.
An embedding turns text into a list of numbers so that texts with similar meaning land close together. A good first try is the card's two-question script, and reading which passage scores higher for each question.
If you know the field, this is a decoder-only embedder with last-token pooling and L2 normalization. With plain transformers, each query needs a one-sentence task instruction while documents need none. The 270m and 0.6b models also used distillation from larger embedders, and the 27b model has 5,376 dimensions.
Turns text in many languages into embedding vectors for search, clustering, similarity, classification and reranking. Made for developers who run semantic search or retrieval and can host a 27B model.
Made by microsoft 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: harrier-oss-v1-27b is the largest model in Microsoft's multilingual text embedding family. It turns a sentence or passage into a dense vector, using a decoder-only design with last-token pooling and L2 normalization. You compare the vectors to find text with a similar meaning. It was trained with contrastive learning on a large mix of multilingual data.
Who it suits: It suits developers and data teams who build search, recommendation or text-grouping features across several languages and have the hardware for a 27B model.
Industry | Who uses it | How they use it | Example
Software | Search engineers | Embed queries and passages, then rank passages by score | A semantic search over help articles
Data science | Analysts | Cluster texts or measure how close two texts are in meaning | Grouping survey answers by topic
Localization | Language teams | Mine matching sentence pairs across languages | Finding translated sentence pairs
Support | Platform teams | Retrieve relevant passages and rerank them | Matching a question to stored answers
Skip it if you need a model that writes replies, since it only outputs vectors. Skip the 27B size if memory is tight, because the family also has 270m and 0.6b models.
Where to use it:
Use case | Who | What they get back
Retrieval | Search engineers | Similarity scores between a query and passages
Clustering | Data teams | Vectors you can group by meaning
Bitext mining | Language teams | Vectors that line up matching sentences across languages
Classification | ML engineers | Vectors you feed to a classifier
How to set it up:
pip install -U huggingface_hub
hf download microsoft/harrier-oss-v1-27b
How to use it: You encode queries with a prompt and documents without one, then take the dot product of the two sets of vectors. The card's example multiplies the result by 100 to print scores. A config file in the repository holds ready-made prompts for web search, similarity and bitext work.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("microsoft/harrier-oss-v1-27b", model_kwargs={"dtype": "auto"})
query_embeddings = model.encode(queries, prompt_name="web_search_query")
document_embeddings = model.encode(documents)
scores = (query_embeddings @ document_embeddings.T) * 100
print(scores.tolist())
To use your own instruction, pass it directly.
model.encode(queries, prompt="Instruct: Retrieve semantically similar text\nQuery: ")
Tool | What it does
SentenceTransformer | Loads the model with the dtype set automatically
encode | Turns a list of texts into embedding vectors
prompt_name | Picks a pre-set instruction such as web_search_query
last_token_pool | Pools the last token's state when you use plain transformers
Example: You encode two questions, "how much protein should a female eat" and "summit define", plus two passages that answer them. The script prints a grid of scores, one row per question. The matching passage should score highest in each row.
For newcomers and experts: An embedding turns text into a list of numbers so that texts with similar meaning land close together. A good first try is the card's two-question script, and reading which passage scores higher for each question.
If you know the field, this is a decoder-only embedder with last-token pooling and L2 normalization. With plain transformers, each query needs a one-sentence task instruction while documents need none. The 270m and 0.6b models also used distillation from larger embedders, and the 27b model has 5,376 dimensions.
Write a task instruction for queries
Encode queries and documents
Pool the last token and normalize
Compare vectors with a dot product
Rank passages by score
Title: Multilingual MTEB v2 score by model
harrier-oss-v1-270m: 66.5 points
harrier-oss-v1-0.6b: 69.0 points
harrier-oss-v1-27b: 74.3 points
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download microsoft/harrier-oss-v1-27b
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 |
|---|---|---|---|---|---|
| harrier-oss-v1-27b This page | 7,115 | 173 | 27B | mit | |
| harrier-oss-v1-0.6bShares mteb · text-embeddings-inference · sentence-transformers | 218,439 | 338 | 596M | mit | |
| multilingual-e5-largeShares mteb · text-embeddings-inference · sentence-transformers | 7,120,555 | 1,284 | 560M | mit | |
| bge-small-en-v1.5Shares mteb · text-embeddings-inference · sentence-transformers | 45,750,548 | 671 | 33.4M | mit | |
| nomic-embed-text-v1.5Shares mteb · text-embeddings-inference · sentence-transformers | 11,809,681 | 994 | 137M | apache-2.0 | |
| bge-base-en-v1.5Shares mteb · text-embeddings-inference · sentence-transformers | 8,508,165 | 542 | 109M | mit |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
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.