Downloads · 30 days
22
55% of all-time downloads
eoinedge/ros2-docs-embeddings
ros2-docs-embeddings is a sentence similarity model from eoinedge. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as apache-2.0.
all-MiniLM-L6-v2 fine-tuned on the ROS 2 documentation, for retrieval over that corpus.
Downloads · 30 days
22
55% of all-time downloads
All-time downloads
40
Public
Parameters
22.7M
90.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors90.9 MB · 99%
From the Hugging Face model README
all-MiniLM-L6-v2 fine-tuned on the ROS 2 documentation, for retrieval over
that corpus.
The base model is trained on general web text, where "node" means a graph vertex and "action" means a UI event. This copy is adapted to ROS 2's vocabulary so those senses separate.
Use it as a drop-in replacement for the base model when embedding ROS 2 documentation:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("eoinedge/ros2-docs-embeddings")
vectors = model.encode(passages, normalize_embeddings=True)
| Base | sentence-transformers/all-MiniLM-L6-v2 |
| Pairs | 4,507 mined from the docs' own heading/body structure |
| Loss | MultipleNegativesRankingLoss (in-batch negatives) |
| Epochs | 1 |
| Batch size | 32 |
| Held-out pairs | 400 |
No hand-labelled data and no synthetic questions from a generator — a section heading is a natural query for the body beneath it, and it is already written by the documentation authors.
| Metric | Base | Tuned |
|---|---|---|
| recall@5 on held-out pairs | 0.565 | 0.8225 |
That number flatters the model, and you should treat it with suspicion. The evaluation measures the same heading→body relationship the model was trained on, so it partly measures whether training converged rather than whether retrieval improved.
Spot-checking real questions gives a more mixed picture: some clearly improve, several are unchanged, and at least one regressed. Real questions are not phrased like section headings, which is exactly the gap this evaluation does not cover.
The comparison Space runs both models on the same query so you can judge for yourself rather than trusting the headline.
Apache-2.0, matching the base model.