Temporal-aware embedding model for AI agent memory retrieval
Project description
🧠 AgentRank
The First Retrieval Model Family Optimized for AI Agent Memory
Every existing agent memory system (Mem0, Letta, CogniHive, etc.) uses generic embeddings. AgentRank is the first specialized solution.
Model Family
| Model | Size | Base | Use Case |
|---|---|---|---|
agentrank-small |
33M | MiniLM | Edge/fast |
agentrank-base |
110M | ModernBERT-base | Standard |
agentrank-reranker |
140M | Cross-encoder | Top-k reranking |
Novel Features
- Temporal Position Embeddings - Understands when memories were created
- Memory Type Embeddings - Distinguishes episodic/semantic/procedural
- Importance Prediction - Auxiliary task for ranking critical memories
Quick Start
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("vrushank/agentrank-base")
# Encode memories
memories = [
"User prefers dark mode in all applications",
"Yesterday we discussed Python debugging",
"To deploy: run pytest → build docker → push to ECR"
]
embeddings = model.encode(memories)
# Encode query and find relevant memories
query = "What are the user's UI preferences?"
query_emb = model.encode(query)
similarities = model.similarity(query_emb, embeddings)
Project Structure
agentrank/
├── data/
│ ├── generators/ # Memory & query generators
│ └── datasets/ # Generated training data
├── models/
│ ├── embedder.py # AgentRank embedder
│ └── reranker.py # AgentRank reranker
├── training/
│ ├── train_embedder.py
│ └── train_reranker.py
├── evaluation/
│ └── agentmembench.py
└── scripts/
├── generate_data.py
└── upload_to_hub.py
Training Data
- 500K synthetic agent memory traces
- 3 memory types: Episodic (40%), Semantic (35%), Procedural (25%)
- 5 types of hard negatives for robust training
License
Apache 2.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agentrank-0.1.0.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentrank-0.1.0.tar.gz.
File metadata
- Download URL: agentrank-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9db45f90c69145f41c8ccf6f402caf81b5f3716a280cd2ffa15b6b84bbd51cb6
|
|
| MD5 |
dd203abe552be43950509a95f8ee16cb
|
|
| BLAKE2b-256 |
d944cc0a461c682de5c7073050c2aea8987cd1e4b4143b36ffb515432e69ba1f
|
File details
Details for the file agentrank-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentrank-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5e17c0343faa23b5030bf58658f1e61196c1f2baf1fce0b8eae0a83797e3ecc
|
|
| MD5 |
3dee805c33d94db1f4622d68f60a1c6b
|
|
| BLAKE2b-256 |
65d52ce578bfaa662b1a4a183c6fe8389cb6a99e36883a9c1997983ec83a4e17
|