Critic-Embed / README.md
zarif98sjs's picture
Update model card: add pipeline tag, library name, and code link (#1)
98ceb5a
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}, 
}