---
title: Agentic-R_e5
canonical_url: "https://www.modelscope.cn/models/lwhlwh/Agentic-R_e5"
md_url: "https://www.modelscope.cn/models/lwhlwh/Agentic-R_e5.md"
repository: lwhlwh/Agentic-R_e5
last_updated: 2026-01-28
license: "Apache License 2.0"
pipeline_tag: sentence-embedding
tasks:
  - sentence-embedding
  - sentence-similarity
model_type:
  - bert
architectures:
  - BertModel
base_model:
  - intfloat/e5-base-v2
base_model_relation: finetune
parameters: 109.5M
tensor_type:
  - F16
library_name:
  - safetensors
  - pytorch
frameworks:
  - PyTorch
language:
  - en
inference_backends:
  - "deploy_task emb"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 19
stars: 0
---

# Agentic-R_e5

> Agentic-R_e5 - lwhlwh 在 ModelScope 开源的模型。当前模型的贡献者未提供更加详细的模型介绍。模型文件和权重，可浏览“模型文件”页面获取。 您可以通过如下git clone命令，或者ModelScope SDK来下载模型

lwhlwh/Agentic-R_e5 是 ModelScope 魔搭社区上的 109.5M 参数sentence-embedding、sentence-similarity模型，采用 Apache License 2.0 许可，基于 intfloat/e5-base-v2 构建，可用 deploy_task emb、sglang 0.5.2、vllm 0.9.2 部署。

- **Repository**: lwhlwh/Agentic-R_e5
- **License**: Apache License 2.0
- **Tasks**: sentence-embedding, sentence-similarity
- **Parameters**: 109.5M
- **Base model**: intfloat/e5-base-v2
- **Inference backends**: deploy_task emb, sglang 0.5.2, vllm 0.9.2
- **Downloads**: 19
- **Stars**: 0
- **Last updated**: 2026-01-28

Source: https://www.modelscope.cn/models/lwhlwh/Agentic-R_e5

---

### 当前模型的贡献者未提供更加详细的模型介绍。模型文件和权重，可浏览“模型文件”页面获取。
#### 您可以通过如下git clone命令，或者ModelScope SDK来下载模型

SDK下载
```bash
#安装ModelScope
pip install modelscope
```

## Introduction

This is the Agentic-R trained in our paper: Agentic-R: Learning to Retrieve for Agentic Search
 ([📝arXiv](https://arxiv.org/pdf/2601.11888)). Please refer our [🧩github repository](https://github.com/8421BCD/Agentic-R) for the detailed usage of our Agentic-R.

## Usage

Our **Agentic-R** query encoder is designed for agentic search scenarios.  
For queries, the input format is:
`query: <original_question> [SEP] <agent_query>`.
Passages use the standard `passage:` prefix following E5.

Below is an example of how to compute embeddings using sentence_transformers:

```python
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("liuwenhan/Agentic-R_e5")

input_texts = [
    # Query encoder input:
    # original_question [SEP] current_query
    "query: Who wrote The Old Man and the Sea? [SEP] Old Man and the Sea",

    # Passages
    "passage: The Old Man and the Sea is a short novel written by the American author Ernest Hemingway in 1951.",
    "passage: Ernest Hemingway was an American novelist, short-story writer, and journalist, born in 1899."
]

embeddings = model.encode(
    input_texts,
    normalize_embeddings=True
)
```
Notes:

`original_question` refers to the user’s initial question.

`agent_query` refers to the intermediate query generated during the agent’s reasoning process.

Always include `[SEP]` to separate the two parts of the query.

We recommend setting `normalize_embeddings=True` for cosine similarity–based retrieval.
```python
#SDK模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('lwhlwh/Agentic-R_e5')
```
Git下载
```
#Git模型下载
git clone https://www.modelscope.cn/lwhlwh/Agentic-R_e5.git
```

<p style="color: lightgrey;">如果您是本模型的贡献者，我们邀请您根据<a href="https://modelscope.cn/docs/ModelScope%E6%A8%A1%E5%9E%8B%E6%8E%A5%E5%85%A5%E6%B5%81%E7%A8%8B%E6%A6%82%E8%A7%88" style="color: lightgrey; text-decoration: underline;">模型贡献文档</a>，及时完善模型卡片内容。</p>
