Text Retrieval
sentence-transformers
Safetensors
English
new
embeddings
agent
search
retriever
instruction-tuned retriever
agentic-search
custom_code
Instructions to use zarif98sjs/Critic-Embed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use zarif98sjs/Critic-Embed with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("zarif98sjs/Critic-Embed", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
metadata
base_model:
- NovaSearch/stella_en_400M_v5
language:
- en
license: cc-by-nc-4.0
pipeline_tag: text-retrieval
library_name: sentence-transformers
tags:
- embeddings
- agent
- search
- retriever
- instruction-tuned retriever
- agentic-search
Critic-Embed
Critic-Embed is the trained retriever from the paper Critic-R: Improving Agentic Search using Instruction-tuned Retrievers with Natural Language Introspective Feedback.
Code: https://github.com/zarif98sjs/Critic-R
Usage
from sentence_transformers import SentenceTransformer
# This model supports two prompts: "s2p_query" and "s2s_query" for sentence-to-passage and sentence-to-sentence tasks, respectively.
# They are defined in `config_sentence_transformers.json`
query_prompt_name = "s2p_query"
queries = [
"What are some ways to reduce stress?",
"What are the benefits of drinking green tea?",
]
# docs do not need any prompts
docs = [
"There are many effective ways to reduce stress. Some common techniques include deep breathing, meditation, and physical activity. Engaging in hobbies, spending time in nature, and connecting with loved ones can also help alleviate stress. Additionally, setting boundaries, practicing self-care, and learning to say no can prevent stress from building up.",
"Green tea has been consumed for centuries and is known for its potential health benefits. It contains antioxidants that may help protect the body against damage caused by free radicals. Regular consumption of green tea has been associated with improved heart health, enhanced cognitive function, and a reduced risk of certain types of cancer. The polyphenols in green tea may also have anti-inflammatory and weight loss properties.",
]
model = SentenceTransformer("zarif98sjs/Critic-Embed", trust_remote_code=True).cuda()
query_embeddings = model.encode(queries, prompt_name=query_prompt_name)
doc_embeddings = model.encode(docs)
print(query_embeddings.shape, doc_embeddings.shape)
similarities = model.similarity(query_embeddings, doc_embeddings)
print(similarities)
Citation
@misc{alam2026criticrimprovingagenticsearch,
title={Critic-R: Improving Agentic Search using Instruction-tuned Retrievers with Natural Language Introspective Feedback},
author={Md Zarif Ul Alam and Alireza Salemi and Hamed Zamani},
year={2026},
eprint={2606.00590},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2606.00590},
}