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…
Scores how well each document answers a query, in eight languages and for inputs up to 8,192 tokens, so a search or memory system can put the best matches first. For developers building retrieval.
hs-rerank-1 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 sentence-transformers
hs-rerank-1 is a small multilingual reranker built for the Hindsight project. It reads a query and a candidate document together and gives back one relevance score between 0 and 1. A search or memory system can use those scores to put the best matches at the top.
It suits developers who run search, retrieval or memory features and want a light model that sorts results across several languages.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Search and retrieval engineers | Re-sort the top results from a first-stage search | Ranking candidate passages for a question |
| AI agents | Agent developers | Pick the stored memories that fit the current request | Choosing which notes to show a user |
| Support | Help desk tool builders | Match a customer question to the best article | Ranking help pages for a Spanish query |
| Research | Retrieval researchers | Use a compact baseline across languages | Comparing scores on mixed-language data |
Skip it if you only need to embed text for first-stage search, since this model scores pairs and does not create embeddings.
| Use case | Who | What they get back |
|---|---|---|
| Reranking results | Search developers | Documents sorted by a 0 to 1 relevance score |
| Memory lookup | Agent builders | The stored facts that best match a question |
| Multilingual matching | Global product teams | Scores for queries and documents in different languages |
You need these first.
pip install -U sentence-transformers
pip install -U huggingface_hub hf download hindsight-ai/hs-rerank-1
Create a CrossEncoder with the model name, then call rank with a query and your documents. Scores run from 0 to 1. Pass the identity activation to get raw logits instead. To use it inside Hindsight, set the environment variables below.
from sentence_transformers import CrossEncoder
model = CrossEncoder("hindsight-ai/hs-rerank-1")
query = "¿Qué app de presupuesto estoy creando?"
documents = [
"El usuario quiere tooltips en su app de presupuesto.",
"El usuario corre los domingos por la mañana.",
]
print(model.rank(query, documents))
# [{'corpus_id': 0, 'score': 0.9647}, {'corpus_id': 1, 'score': 0.0003}]HINDSIGHT_API_RERANKER_PROVIDER=local HINDSIGHT_API_RERANKER_LOCAL_MODEL=hindsight-ai/hs-rerank-1
| Tool | What it does |
|---|---|
| rank | Scores each document against the query and sorts them |
| predict | Returns relevance scores between 0 and 1 |
| activation_fn=torch.nn.Identity() | Returns raw logits in place of 0 to 1 scores |
| Text Embeddings Inference | Serves the model over HTTP on CPU or GPU |
Ask in Spanish which budget app you are building, and offer two notes. One says the user wants tooltips in their budget app, the other says they run on Sunday mornings. The first note scores 0.9647 and the second 0.0003.
If you are new, a reranker is a second look at search results. A first search returns many candidates, and this model reads each one next to the question and scores it. Start with the short Python example above.
If you know the field, it is a cross-encoder based on mmBERT-small. Of its 114M parameters, 98M are the token embedding table, so each pass runs a 15M-parameter transformer. Inputs may reach 8,192 tokens per pair. The weights are stored in FP16, with an FP32 copy on a separate branch and an ONNX export with an int8 vocabulary table.
Scores how well each document answers a query, in eight languages and for inputs up to 8,192 tokens, so a search or memory system can put the best matches first. For developers building retrieval.
Made by hindsight-ai 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: hs-rerank-1 is a small multilingual reranker built for the Hindsight project. It reads a query and a candidate document together and gives back one relevance score between 0 and 1. A search or memory system can use those scores to put the best matches at the top.
Who it suits: It suits developers who run search, retrieval or memory features and want a light model that sorts results across several languages.
Industry | Who uses it | How they use it | Example
Software | Search and retrieval engineers | Re-sort the top results from a first-stage search | Ranking candidate passages for a question
AI agents | Agent developers | Pick the stored memories that fit the current request | Choosing which notes to show a user
Support | Help desk tool builders | Match a customer question to the best article | Ranking help pages for a Spanish query
Research | Retrieval researchers | Use a compact baseline across languages | Comparing scores on mixed-language data
Skip it if you only need to embed text for first-stage search, since this model scores pairs and does not create embeddings.
Where to use it:
Use case | Who | What they get back
Reranking results | Search developers | Documents sorted by a 0 to 1 relevance score
Memory lookup | Agent builders | The stored facts that best match a question
Multilingual matching | Global product teams | Scores for queries and documents in different languages
How to set it up: You need these first.
pip install -U sentence-transformers
pip install -U huggingface_hub
hf download hindsight-ai/hs-rerank-1
How to use it: Create a CrossEncoder with the model name, then call rank with a query and your documents. Scores run from 0 to 1. Pass the identity activation to get raw logits instead. To use it inside Hindsight, set the environment variables below.
from sentence_transformers import CrossEncoder
model = CrossEncoder("hindsight-ai/hs-rerank-1")
query = "¿Qué app de presupuesto estoy creando?"
documents = [
"El usuario quiere tooltips en su app de presupuesto.",
"El usuario corre los domingos por la mañana.",
]
print(model.rank(query, documents))
# [{'corpus_id': 0, 'score': 0.9647}, {'corpus_id': 1, 'score': 0.0003}]
HINDSIGHT_API_RERANKER_PROVIDER=local
HINDSIGHT_API_RERANKER_LOCAL_MODEL=hindsight-ai/hs-rerank-1
Tool | What it does
rank | Scores each document against the query and sorts them
predict | Returns relevance scores between 0 and 1
activation_fn=torch.nn.Identity() | Returns raw logits in place of 0 to 1 scores
Text Embeddings Inference | Serves the model over HTTP on CPU or GPU
Example: Ask in Spanish which budget app you are building, and offer two notes. One says the user wants tooltips in their budget app, the other says they run on Sunday mornings. The first note scores 0.9647 and the second 0.0003.
For newcomers and experts: If you are new, a reranker is a second look at search results. A first search returns many candidates, and this model reads each one next to the question and scores it. Start with the short Python example above.
If you know the field, it is a cross-encoder based on mmBERT-small. Of its 114M parameters, 98M are the token embedding table, so each pass runs a 15M-parameter transformer. Inputs may reach 8,192 tokens per pair. The weights are stored in FP16, with an FP32 copy on a separate branch and an ONNX export with an int8 vocabulary table.
Query and one document go in together
Cross-encoder reads the pair
One relevance score comes out
Documents are sorted by score
Good to know:
Title: Relevance scores in the card's Spanish example
Tooltips in a budget app: 0.9647 score
Runs on Sunday mornings: 0.0003 score
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download hindsight-ai/hs-rerank-1
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 |
|---|---|---|---|---|---|
| hs-rerank-1 This page | 1,148,007 | 6 | 114M | mit | |
| hs-embed-1Shares hindsight · modernbert · text-embeddings-inference | 22,412 | 7 | 112M | mit | |
| hs-decide-1-flashShares hindsight · reranker · text-ranking | 858 | 20 | 752M | apache-2.0 | |
| AsteroRank-LeptonShares reranker · text-ranking · sentence-transformers | 58 | 7 | 4.8B | cc-by-nc-4.0 | |
| paraphrase-multilingual-MiniLM-L12-v2Shares text-embeddings-inference · sentence-transformers · multilingual | 26,540,125 | 1,505 | 118M | apache-2.0 | |
| multilingual-e5-largeShares text-embeddings-inference · sentence-transformers · multilingual | 7,120,555 | 1,284 | 560M | mit |
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.