A text-embedding model for space-domain retrieval: Qwen3-Embedding-0.6B fine-tuned on question→passage pairs from space-engineering and space-science documents (Wikipedia, NASA, ESA, ISRO). This Balanced variant blends 80% of the fine-tuned weights with 20% of the base weights (WiSE-FT), keeping most of the space-domain gain while losing little general ability. For maximum space-domain accuracy see SpaceEmbed-Qwen3-0.6B-Domain. Try it in the Space Tools desktop app (SpaceEmbed).
Queries take an instruction prefix (stored as the query prompt); passages are embedded as-is.
Passages formatted as title | section\ntext work best.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("llmlabcse/SpaceEmbed-Qwen3-0.6B")
queries = ["How is momentum unloaded from reaction wheels?"]
passages = ["Attitude control | Momentum management\nMagnetic torquers dump excess wheel momentum ..."]
q = model.encode(queries, prompt_name="query", normalize_embeddings=True)
p = model.encode(passages, normalize_embeddings=True)
print(q @ p.T)
The query prompt is
"Instruct: Given a space-domain search query, retrieve the passage that answers it\nQuery: ".
GGUF versions for llama.cpp: SpaceEmbed-Qwen3-0.6B-GGUF.
Held-out test split: 1,888 queries, each searching all 27,119 passages.
| Model | Recall@1 | Recall@10 | MRR@10 | nDCG@10 |
|---|---|---|---|---|
| BM25 | 0.659 | 0.926 | 0.752 | 0.794 |
| Qwen3-Embedding-0.6B (base) | 0.670 | 0.943 | 0.766 | 0.809 |
| SpaceEmbed Balanced (this model) | 0.724 | 0.972 | 0.820 | 0.858 |
| SpaceEmbed Domain | 0.734 | 0.973 | 0.828 | 0.864 |
(sentence-transformers, max_seq_length 512. With full-length passages in llama.cpp the Balanced GGUF reaches MRR@10 0.839 vs 0.763 for the base model.) On the 140 test queries where BM25 fails (answer not in its top 10), MRR@10 rises from 0.501 (base) to 0.618.
General-domain retrieval (NanoBEIR, 7 datasets, mean nDCG@10): base 0.592 → this model 0.572.
The test queries were generated by the same LLM procedure as the training queries, so part of the gain may reflect that query style; human-written queries have not yet been evaluated. English only. The corpus over-represents NASA, ESA and ISRO missions.
Apache-2.0, as the base model. Training text came from Wikipedia (CC BY-SA 4.0) and public agency documents; no training text is redistributed in this repository.
Qwen/Qwen3-Embedding-0.6B