CoolFace
Modelpublic

MiG-NJU/EvoEmbedding-2B

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes21downloads
Model Card

EvoEmbedding: Evolvable Representations for Long-Context Retrieval and Agentic Memory

๐Ÿ”— [GitHub Repository](https://github.com/MiG-NJU/EvoEmbedding) | ๐Ÿ  [Project Page](https://clare-nie.github.io/EvoEmbedding/) | ๐Ÿ“š [Training Dataset](https://huggingface.co/datasets/MiG-NJU/EvoTrain-180K) | ๐Ÿ“‘ [Paper](https://arxiv.org/abs/2606.21649)

EvoEmbedding is a novel embedding model designed for long-context and dynamic retrieval scenarios. Unlike static embedding models that chunk text in isolation, EvoEmbedding maintains a continuously updated Latent Memory Queue. This allows it to capture temporal dynamics and generate context-aware, evolvable embeddings for precise retrieval in agentic workflows and long-conversations.

๐Ÿš€ Quick Start

To use EvoEmbedding, please clone the GitHub Repository and install the environment.

As an Embedding Model

python
from model.client import EvoEmbeddingClient

client = EvoEmbeddingClient()

messages = [
    {"role": "user", "content": "I visited Paris in April."},
    {"role": "assistant", "content": "Noted."},
    {"role": "user", "content": "I bought a new laptop yesterday."},
    {"role": "assistant", "content": "Got it."},
    {"role": "user", "content": "Where did I travel in spring?"},
]

embeddings = client.encode_messages(messages)

The messages input preserves the original dialogue order. encode_messages returns normalized embeddings for the history turns and the final query.

As a Reranker

python
candidates = [
    "I visited Paris in April.",
    "I bought a new laptop yesterday.",
    "The meeting was moved to Friday.",
]
query = "Where did I travel in spring?"

ranked_candidates, ranked_indices = client.rerank(
    query,
    candidates,
    top_k=1,
    return_indices=True,
)

The reranker takes a direct list of candidate strings and returns them in relevance order.

๐Ÿ“ฆ Model Family

We provide EvoEmbedding in three sizes based on the Qwen architecture:

ModelParametersBase ModelHugging Face Link
EvoEmbedding-0.8B0.8BQwen3.5-0.8BMiG-NJU/EvoEmbedding-0.8B
EvoEmbedding-2B2BQwen3.5-2BMiG-NJU/EvoEmbedding-2B
EvoEmbedding-4B4BQwen3-4BMiG-NJU/EvoEmbedding-4B

๐Ÿ“š Citation

If you find this model or our methodology useful, please cite our paper:

bibtex
@article{nie2026evoembedding,
  title={EvoEmbedding: Evolvable Representations for Long-Context Retrieval and Agentic Memory},
  author={Nie, Chang and Fu, Chaoyou and Feng, Junlan and Shan, Caifeng},
  journal={arXiv preprint arXiv:2606.21649},
  year={2026}
}