Feature Extraction
sentence-transformers
Safetensors
Transformers
multilingual
qwen3
text-embeddings
alfotech
silas
rag
semantic-search
vector-search
Eval Results (legacy)
text-embeddings-inference
Instructions to use alfotech/silas-embedding-0.6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use alfotech/silas-embedding-0.6b with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("alfotech/silas-embedding-0.6b") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use alfotech/silas-embedding-0.6b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="alfotech/silas-embedding-0.6b")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("alfotech/silas-embedding-0.6b") model = AutoModel.from_pretrained("alfotech/silas-embedding-0.6b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,59 +1,58 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
base_model:
|
| 4 |
-
|
| 5 |
pipeline_tag: feature-extraction
|
| 6 |
library_name: sentence-transformers
|
| 7 |
-
|
| 8 |
language:
|
| 9 |
-
|
| 10 |
-
|
| 11 |
tags:
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
model-index:
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
value: 0.7268
|
| 57 |
---
|
| 58 |
|
| 59 |
<p align="center">
|
|
@@ -64,67 +63,551 @@ model-index:
|
|
| 64 |
|
| 65 |
<p align="center">
|
| 66 |
<b>Production-Grade Embedding Model by Alfo Tech Industries</b><br/>
|
| 67 |
-
Multilingual · Long Context · Semantic Understanding ·
|
| 68 |
</p>
|
| 69 |
|
| 70 |
<p align="center">
|
| 71 |
<a href="https://huggingface.co/alfotech/silas-embedding-0.6b">
|
| 72 |
-
<img src="https://img.shields.io/badge/🤗-
|
| 73 |
</a>
|
| 74 |
-
<img src="https://img.shields.io/badge/Parameters-0.6B-6D5BFF" alt="Parameters">
|
| 75 |
-
<img src="https://img.shields.io/badge/Context-32K-00E5FF" alt="Context">
|
| 76 |
-
<img src="https://img.shields.io/badge/
|
| 77 |
-
<img src="https://img.shields.io/badge/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
</p>
|
| 79 |
|
| 80 |
---
|
| 81 |
|
| 82 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
-
|
|
|
|
|
|
|
| 85 |
|
| 86 |
**Silas Embedding 0.6B** is a production-oriented multilingual embedding model developed by **Alfo Tech Industries**.
|
| 87 |
|
| 88 |
-
Silas
|
| 89 |
|
| 90 |
-
|
|
|
|
|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-2.0
|
| 3 |
base_model:
|
| 4 |
+
- Qwen/Qwen3-Embedding-0.6B
|
| 5 |
pipeline_tag: feature-extraction
|
| 6 |
library_name: sentence-transformers
|
|
|
|
| 7 |
language:
|
| 8 |
+
- multilingual
|
|
|
|
| 9 |
tags:
|
| 10 |
+
- text-embeddings
|
| 11 |
+
- feature-extraction
|
| 12 |
+
- sentence-transformers
|
| 13 |
+
- transformers
|
| 14 |
+
- multilingual
|
| 15 |
+
- qwen3
|
| 16 |
+
- alfotech
|
| 17 |
+
- silas
|
| 18 |
+
- rag
|
| 19 |
+
- semantic-search
|
| 20 |
+
- vector-search
|
| 21 |
model-index:
|
| 22 |
+
- name: silas-embedding-0.6b
|
| 23 |
+
results:
|
| 24 |
+
- task:
|
| 25 |
+
type: feature-extraction
|
| 26 |
+
name: Embedding Model — Easy Benchmark
|
| 27 |
+
metrics:
|
| 28 |
+
- type: recall_at_1
|
| 29 |
+
value: 0.967
|
| 30 |
+
name: Recall@1
|
| 31 |
+
- type: recall_at_5
|
| 32 |
+
value: 0.999
|
| 33 |
+
name: Recall@5
|
| 34 |
+
- type: recall_at_10
|
| 35 |
+
value: 1.0
|
| 36 |
+
name: Recall@10
|
| 37 |
+
- type: mrr_at_10
|
| 38 |
+
value: 0.9815
|
| 39 |
+
name: MRR@10
|
| 40 |
+
- task:
|
| 41 |
+
type: feature-extraction
|
| 42 |
+
name: Embedding Model — Hard Benchmark
|
| 43 |
+
metrics:
|
| 44 |
+
- type: recall_at_1
|
| 45 |
+
value: 0.614
|
| 46 |
+
name: Recall@1
|
| 47 |
+
- type: recall_at_5
|
| 48 |
+
value: 0.883
|
| 49 |
+
name: Recall@5
|
| 50 |
+
- type: recall_at_10
|
| 51 |
+
value: 0.929
|
| 52 |
+
name: Recall@10
|
| 53 |
+
- type: mrr_at_10
|
| 54 |
+
value: 0.7268
|
| 55 |
+
name: MRR@10
|
|
|
|
| 56 |
---
|
| 57 |
|
| 58 |
<p align="center">
|
|
|
|
| 63 |
|
| 64 |
<p align="center">
|
| 65 |
<b>Production-Grade Embedding Model by Alfo Tech Industries</b><br/>
|
| 66 |
+
Multilingual · Long Context · Semantic Understanding · AI Infrastructure
|
| 67 |
</p>
|
| 68 |
|
| 69 |
<p align="center">
|
| 70 |
<a href="https://huggingface.co/alfotech/silas-embedding-0.6b">
|
| 71 |
+
<img src="https://img.shields.io/badge/🤗_Hugging_Face-Model-yellow" alt="Hugging Face"/>
|
| 72 |
</a>
|
| 73 |
+
<img src="https://img.shields.io/badge/Parameters-0.6B-6D5BFF" alt="Parameters"/>
|
| 74 |
+
<img src="https://img.shields.io/badge/Context-32K-00E5FF" alt="Context"/>
|
| 75 |
+
<img src="https://img.shields.io/badge/Embedding-1024D-8B5CF6" alt="Embedding Dimension"/>
|
| 76 |
+
<img src="https://img.shields.io/badge/Languages-100%2B-22C55E" alt="Languages"/>
|
| 77 |
+
<img src="https://img.shields.io/badge/License-Apache--2.0-2563EB" alt="License"/>
|
| 78 |
+
<img src="https://img.shields.io/badge/Status-Active_Development-F59E0B" alt="Status"/>
|
| 79 |
+
</p>
|
| 80 |
+
|
| 81 |
+
<p align="center">
|
| 82 |
+
<a href="#quick-start">Quick Start</a> ·
|
| 83 |
+
<a href="#benchmark-dashboard">Benchmarks</a> ·
|
| 84 |
+
<a href="#production-deployment">Deployment</a> ·
|
| 85 |
+
<a href="#intended-use">Intended Use</a> ·
|
| 86 |
+
<a href="#faq">FAQ</a> ·
|
| 87 |
+
<a href="#citation">Citation</a>
|
| 88 |
</p>
|
| 89 |
|
| 90 |
---
|
| 91 |
|
| 92 |
+
## Table of Contents
|
| 93 |
+
|
| 94 |
+
- [Model Profile](#model-profile)
|
| 95 |
+
- [Why Silas?](#why-silas)
|
| 96 |
+
- [Embedding Capabilities](#embedding-capabilities)
|
| 97 |
+
- [Benchmark Dashboard](#benchmark-dashboard)
|
| 98 |
+
- [Easy Embedding Benchmark](#easy-embedding-benchmark)
|
| 99 |
+
- [Hard Embedding Benchmark](#hard-embedding-benchmark)
|
| 100 |
+
- [Benchmark Comparison](#benchmark-comparison)
|
| 101 |
+
- [Semantic Analysis](#semantic-analysis)
|
| 102 |
+
- [Development Architecture](#development-architecture)
|
| 103 |
+
- [Quick Start](#quick-start)
|
| 104 |
+
- [Usage Guide](#usage-guide)
|
| 105 |
+
- [Query vs. Document Embeddings](#query-vs-document-embeddings)
|
| 106 |
+
- [Variable Embedding Size (Matryoshka)](#variable-embedding-size-matryoshka)
|
| 107 |
+
- [Batch Processing](#batch-processing)
|
| 108 |
+
- [Production Deployment](#production-deployment)
|
| 109 |
+
- [Recommended Production Config](#production-starting-point)
|
| 110 |
+
- [Serving Options](#serving-options)
|
| 111 |
+
- [Integration Architecture](#integration)
|
| 112 |
+
- [Intended Use](#intended-use)
|
| 113 |
+
- [Bias, Risks & Limitations](#bias-risks--limitations)
|
| 114 |
+
- [Current Development Status](#current-development-status)
|
| 115 |
+
- [Roadmap](#roadmap)
|
| 116 |
+
- [Versioning](#versioning)
|
| 117 |
+
- [FAQ](#faq)
|
| 118 |
+
- [Reproducibility](#reproducibility)
|
| 119 |
+
- [Citation](#citation)
|
| 120 |
+
- [License](#license)
|
| 121 |
+
- [Contact & Support](#contact--support)
|
| 122 |
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
# Model Profile
|
| 126 |
|
| 127 |
**Silas Embedding 0.6B** is a production-oriented multilingual embedding model developed by **Alfo Tech Industries**.
|
| 128 |
|
| 129 |
+
Silas converts text into dense vector representations designed for semantic understanding, similarity measurement, knowledge systems, AI search, Retrieval-Augmented Generation, and vector databases. The model is based on **Qwen3-Embedding-0.6B** and follows an evaluation-first engineering workflow focused on difficult semantic matching scenarios rather than only easy, well-separated cases.
|
| 130 |
|
| 131 |
+
| Property | Specification |
|
| 132 |
+
| --------------------------- | ---------------------- |
|
| 133 |
+
| **Model** | Silas Embedding 0.6B |
|
| 134 |
+
| **Organization** | Alfo Tech Industries |
|
| 135 |
+
| **Base Model** | Qwen3-Embedding-0.6B |
|
| 136 |
+
| **Parameters** | 0.6B |
|
| 137 |
+
| **Context Window** | 32K |
|
| 138 |
+
| **Default Embedding Size** | 1024 dimensions |
|
| 139 |
+
| **Supported Dimensions** | 32–1024 |
|
| 140 |
+
| **Languages** | 100+ |
|
| 141 |
+
| **Architecture Type** | Text Embedding |
|
| 142 |
+
| **Instruction Aware** | Yes |
|
| 143 |
+
| **Framework** | Sentence Transformers |
|
| 144 |
+
| **License** | Apache-2.0 |
|
| 145 |
|
| 146 |
---
|
| 147 |
|
| 148 |
+
# Why Silas?
|
| 149 |
+
|
| 150 |
+
A useful embedding model should do more than place related sentences close together — it should help a downstream system distinguish the *correct* semantic match from close, plausible-looking alternatives.
|
| 151 |
+
|
| 152 |
+
```text
|
| 153 |
+
Correct Semantic Meaning
|
| 154 |
+
│
|
| 155 |
+
▼
|
| 156 |
+
Silas Embedding
|
| 157 |
+
│
|
| 158 |
+
▼
|
| 159 |
+
Dense Vector Representation
|
| 160 |
+
│
|
| 161 |
+
┌──────┼────────┐
|
| 162 |
+
▼ ▼ ▼
|
| 163 |
+
Search RAG Similarity
|
| 164 |
+
```
|
| 165 |
+
|
| 166 |
+
For this reason, Silas is evaluated on both a straightforward **Easy Benchmark** and a deliberately adversarial **Hard Benchmark** built from semantically similar candidates — the gap between the two is treated as the real signal of embedding quality, not the easy score alone.
|
| 167 |
+
|
| 168 |
+
---
|
| 169 |
+
|
| 170 |
+
# Embedding Capabilities
|
| 171 |
+
|
| 172 |
+
| Capability | Example |
|
| 173 |
+
| ----------------------- | ------------------------------------------ |
|
| 174 |
+
| **Semantic Search** | Find conceptually relevant documents |
|
| 175 |
+
| **RAG** | Retrieve context for language models |
|
| 176 |
+
| **Knowledge Bases** | Search enterprise documentation |
|
| 177 |
+
| **FAQ Matching** | Match questions with answers |
|
| 178 |
+
| **Similarity Systems** | Compare semantic meaning |
|
| 179 |
+
| **Code Search** | Retrieve related programming content |
|
| 180 |
+
| **Vector Databases** | Store and query dense vectors |
|
| 181 |
+
| **Multilingual AI** | Represent text across supported languages |
|
| 182 |
+
|
| 183 |
+
---
|
| 184 |
+
|
| 185 |
+
# Benchmark Dashboard
|
| 186 |
+
|
| 187 |
+
## Evaluation Overview
|
| 188 |
+
|
| 189 |
+
| Benchmark | Corpus | Queries | Primary Purpose |
|
| 190 |
+
| ------------------------------ | ------------------ | ------- | ----------------------------------- |
|
| 191 |
+
| **Easy Embedding Benchmark** | Evaluation set | 1,000 | Standard semantic matching |
|
| 192 |
+
| **Hard Embedding Benchmark** | 72,635 documents | 1,000 | Difficult semantic discrimination |
|
| 193 |
+
|
| 194 |
+
The hard benchmark introduces semantically similar candidates, making it a more demanding test of embedding quality than corpus-level recall alone.
|
| 195 |
+
|
| 196 |
+
## Easy Embedding Benchmark
|
| 197 |
+
|
| 198 |
+
| Metric | Score |
|
| 199 |
+
| -------------- | ------- |
|
| 200 |
+
| **Recall@1** | 96.70% |
|
| 201 |
+
| **Recall@5** | 99.90% |
|
| 202 |
+
| **Recall@10** | 100.00% |
|
| 203 |
+
| **MRR@10** | 98.15% |
|
| 204 |
+
|
| 205 |
+
**Interpretation:** The model performs strongly when the correct semantic match is relatively distinguishable from competing candidates — this reflects typical FAQ-matching and coarse retrieval workloads.
|
| 206 |
+
|
| 207 |
+
## Hard Embedding Benchmark
|
| 208 |
+
|
| 209 |
+
### Evaluation Setup
|
| 210 |
+
|
| 211 |
+
| Parameter | Value |
|
| 212 |
+
| --------------------------- | -------------------------------- |
|
| 213 |
+
| **Corpus Size** | 72,635 documents |
|
| 214 |
+
| **Evaluation Queries** | 1,000 |
|
| 215 |
+
| **Candidate Environment** | Semantically similar documents |
|
| 216 |
+
| **Primary Metric** | Recall@1 |
|
| 217 |
+
| **Ranking Metric** | MRR@10 |
|
| 218 |
+
|
| 219 |
+
### Results
|
| 220 |
+
|
| 221 |
+
| Metric | Score |
|
| 222 |
+
| -------------- | ------ |
|
| 223 |
+
| **Recall@1** | 61.40% |
|
| 224 |
+
| **Recall@5** | 88.30% |
|
| 225 |
+
| **Recall@10** | 92.90% |
|
| 226 |
+
| **MRR@10** | 72.68% |
|
| 227 |
+
|
| 228 |
+
This benchmark is intentionally more difficult because incorrect candidates can be semantically close to the correct document — the kind of near-miss confusion that matters most in production RAG pipelines.
|
| 229 |
+
|
| 230 |
+
## Benchmark Comparison
|
| 231 |
+
|
| 232 |
+
| Metric | Easy | Hard |
|
| 233 |
+
| -------------- | ------- | ------ |
|
| 234 |
+
| **Recall@1** | 96.70% | 61.40% |
|
| 235 |
+
| **Recall@5** | 99.90% | 88.30% |
|
| 236 |
+
| **Recall@10** | 100.00% | 92.90% |
|
| 237 |
+
| **MRR@10** | 98.15% | 72.68% |
|
| 238 |
+
|
| 239 |
+
The gap between the two evaluations is a useful signal of how the model behaves once results get semantically crowded, rather than an artifact of an easy test set.
|
| 240 |
+
|
| 241 |
+
## Semantic Analysis
|
| 242 |
+
|
| 243 |
+
A detailed failure analysis was run on the hard benchmark results:
|
| 244 |
+
|
| 245 |
+
| Analysis | Result |
|
| 246 |
+
| ------------------------------------- | ------- |
|
| 247 |
+
| **Queries analyzed** | 1,000 |
|
| 248 |
+
| **Semantic hard negatives** | 386 |
|
| 249 |
+
| **Average positive similarity** | 0.6894 |
|
| 250 |
+
| **Average top-negative similarity** | 0.6534 |
|
| 251 |
+
| **Average separation margin** | 0.0360 |
|
| 252 |
+
| **Potential noisy positives** | 0 |
|
| 253 |
+
| **Potential duplicates** | 0 |
|
| 254 |
+
|
| 255 |
+
**Key finding:** The average similarity margin between the positive document and the strongest negative candidate was only **0.0360**. This indicates the remaining challenge is primarily **fine-grained semantic separation**, not simply filtering out unrelated content — which directly informs the hard-negative mining plan in the [Roadmap](#roadmap).
|
| 256 |
+
|
| 257 |
+
---
|
| 258 |
+
|
| 259 |
+
# Development Architecture
|
| 260 |
+
|
| 261 |
+
Silas follows an evaluation-driven development process:
|
| 262 |
+
|
| 263 |
+
```text
|
| 264 |
+
BASE MODEL
|
| 265 |
+
│
|
| 266 |
+
▼
|
| 267 |
+
┌─────────────────┐
|
| 268 |
+
│ Baseline Test │
|
| 269 |
+
└────────┬────────┘
|
| 270 |
+
│
|
| 271 |
+
▼
|
| 272 |
+
┌─────────────────┐
|
| 273 |
+
│ Hard Benchmark │
|
| 274 |
+
└────────┬────────┘
|
| 275 |
+
│
|
| 276 |
+
▼
|
| 277 |
+
┌─────────────────┐
|
| 278 |
+
│ Failure Analysis│
|
| 279 |
+
└────────┬────────┘
|
| 280 |
+
│
|
| 281 |
+
▼
|
| 282 |
+
┌─────────────────┐
|
| 283 |
+
│ Hard Negatives │
|
| 284 |
+
└────────┬────────┘
|
| 285 |
+
│
|
| 286 |
+
▼
|
| 287 |
+
┌─────────────────┐
|
| 288 |
+
│ Fine-Tuning │
|
| 289 |
+
└────────┬────────┘
|
| 290 |
+
│
|
| 291 |
+
▼
|
| 292 |
+
┌─────────────────┐
|
| 293 |
+
│ Validation │
|
| 294 |
+
└────────┬────────┘
|
| 295 |
+
│
|
| 296 |
+
▼
|
| 297 |
+
PRODUCTION MODEL
|
| 298 |
+
```
|
| 299 |
+
|
| 300 |
+
---
|
| 301 |
+
|
| 302 |
+
# Quick Start
|
| 303 |
+
|
| 304 |
+
## Install
|
| 305 |
+
|
| 306 |
+
```bash
|
| 307 |
+
pip install -U sentence-transformers
|
| 308 |
+
```
|
| 309 |
+
|
| 310 |
+
## Load the Model
|
| 311 |
+
|
| 312 |
+
```python
|
| 313 |
+
from sentence_transformers import SentenceTransformer
|
| 314 |
+
|
| 315 |
+
model = SentenceTransformer(
|
| 316 |
+
"alfotech/silas-embedding-0.6b"
|
| 317 |
+
)
|
| 318 |
+
```
|
| 319 |
+
|
| 320 |
+
## Generate Embeddings
|
| 321 |
+
|
| 322 |
+
```python
|
| 323 |
+
texts = [
|
| 324 |
+
"Artificial intelligence improves information retrieval.",
|
| 325 |
+
"Vector embeddings represent semantic relationships."
|
| 326 |
+
]
|
| 327 |
+
|
| 328 |
+
embeddings = model.encode(
|
| 329 |
+
texts,
|
| 330 |
+
normalize_embeddings=True
|
| 331 |
+
)
|
| 332 |
+
|
| 333 |
+
print(embeddings.shape)
|
| 334 |
+
```
|
| 335 |
+
|
| 336 |
+
---
|
| 337 |
+
|
| 338 |
+
# Usage Guide
|
| 339 |
+
|
| 340 |
+
## Query vs. Document Embeddings
|
| 341 |
+
|
| 342 |
+
For retrieval-style workloads, query instructions can describe the intended task:
|
| 343 |
+
|
| 344 |
+
```text
|
| 345 |
+
Instruct: Given a search query, retrieve relevant passages.
|
| 346 |
+
|
| 347 |
+
Query: How do I optimize transformer inference?
|
| 348 |
+
```
|
| 349 |
+
|
| 350 |
+
```python
|
| 351 |
+
queries = [
|
| 352 |
+
"How do I optimize transformer inference?"
|
| 353 |
+
]
|
| 354 |
+
|
| 355 |
+
documents = [
|
| 356 |
+
"Quantization, batching, and KV-cache optimization can reduce inference latency.",
|
| 357 |
+
"The stock market closed higher after strong earnings reports."
|
| 358 |
+
]
|
| 359 |
+
|
| 360 |
+
query_embeddings = model.encode(
|
| 361 |
+
queries,
|
| 362 |
+
prompt_name="query",
|
| 363 |
+
normalize_embeddings=True
|
| 364 |
+
)
|
| 365 |
+
|
| 366 |
+
document_embeddings = model.encode(
|
| 367 |
+
documents,
|
| 368 |
+
normalize_embeddings=True
|
| 369 |
+
)
|
| 370 |
+
|
| 371 |
+
scores = model.similarity(
|
| 372 |
+
query_embeddings,
|
| 373 |
+
document_embeddings
|
| 374 |
+
)
|
| 375 |
+
|
| 376 |
+
print(scores)
|
| 377 |
+
```
|
| 378 |
+
|
| 379 |
+
> Use `prompt_name="query"` for the search-query side of asymmetric retrieval and leave documents un-prefixed. For symmetric tasks (e.g. clustering, deduplication), encode both sides the same way.
|
| 380 |
+
|
| 381 |
+
## Variable Embedding Size (Matryoshka)
|
| 382 |
|
| 383 |
+
Silas supports configurable embedding dimensions so storage and latency can be traded against representation capacity without re-encoding your corpus with a different model:
|
| 384 |
+
|
| 385 |
+
```python
|
| 386 |
+
embeddings = model.encode(
|
| 387 |
+
["Efficient vectors reduce storage requirements."],
|
| 388 |
+
normalize_embeddings=True,
|
| 389 |
+
truncate_dim=256
|
| 390 |
+
)
|
| 391 |
+
```
|
| 392 |
+
|
| 393 |
+
Supported range: **32 → 1024 dimensions**.
|
| 394 |
+
|
| 395 |
+
Use larger representations when maximizing representation capacity is important (e.g. hard semantic discrimination), or smaller vectors when storage and throughput are the priority (e.g. large-scale first-pass retrieval).
|
| 396 |
+
|
| 397 |
+
## Batch Processing
|
| 398 |
+
|
| 399 |
+
```python
|
| 400 |
+
embeddings = model.encode(
|
| 401 |
+
large_text_list,
|
| 402 |
+
batch_size=32,
|
| 403 |
+
normalize_embeddings=True,
|
| 404 |
+
show_progress_bar=True
|
| 405 |
+
)
|
| 406 |
+
```
|
| 407 |
+
|
| 408 |
+
For corpora in the millions of documents, encode in chunks and stream directly into your vector database's bulk-insert API rather than holding all vectors in memory at once.
|
| 409 |
|
| 410 |
---
|
| 411 |
|
| 412 |
+
# Production Deployment
|
| 413 |
+
|
| 414 |
+
## Production Starting Point
|
| 415 |
+
|
| 416 |
+
| Configuration | Recommended Value |
|
| 417 |
+
| ------------------------- | ------------------ |
|
| 418 |
+
| **Sequence Length** | 512 |
|
| 419 |
+
| **Batch Size** | 32 |
|
| 420 |
+
| **Normalization** | Enabled |
|
| 421 |
+
| **Similarity Metric** | Cosine |
|
| 422 |
+
| **Default Dimension** | 1024 |
|
| 423 |
+
|
| 424 |
+
These are recommended starting points — production workloads should be benchmarked using representative data before locking in a configuration.
|
| 425 |
+
|
| 426 |
+
## Serving Options
|
| 427 |
|
| 428 |
+
Silas is a standard `sentence-transformers`-compatible model, so it can be served with:
|
| 429 |
+
|
| 430 |
+
- **Sentence Transformers**, directly in a Python service, for simplest integration and full control over batching.
|
| 431 |
+
- **Hugging Face Text Embeddings Inference (TEI)** or similar dedicated embedding servers, for higher-throughput, lower-latency serving behind a REST/gRPC endpoint.
|
| 432 |
+
- **ONNX / quantized export**, where CPU-only or edge deployment is required and GPU serving isn't available.
|
| 433 |
+
|
| 434 |
+
Choice of serving stack should be validated against your own latency, throughput, and hardware constraints — figures above are configuration defaults, not deployment benchmarks.
|
| 435 |
+
|
| 436 |
+
## Integration
|
| 437 |
|
| 438 |
```text
|
| 439 |
+
Application
|
| 440 |
+
│
|
| 441 |
+
▼
|
| 442 |
+
Silas Embedding
|
| 443 |
+
│
|
| 444 |
+
▼
|
| 445 |
+
Vector Database
|
| 446 |
+
│
|
| 447 |
+
┌───┼───────────────┐
|
| 448 |
+
▼ ▼ ▼
|
| 449 |
+
FAISS Qdrant pgvector
|
| 450 |
+
│
|
| 451 |
+
▼
|
| 452 |
+
Nearest Neighbors
|
| 453 |
+
│
|
| 454 |
+
▼
|
| 455 |
+
AI Application
|
| 456 |
+
```
|
| 457 |
+
|
| 458 |
+
---
|
| 459 |
+
|
| 460 |
+
# Intended Use
|
| 461 |
+
|
| 462 |
+
Silas is intended as the **representation layer** in semantic search, RAG, knowledge-base retrieval, and similarity-matching systems, primarily where:
|
| 463 |
+
|
| 464 |
+
- Text needs to be compared or retrieved by meaning rather than exact keyword match.
|
| 465 |
+
- A downstream ranking, generation, or filtering step consumes the retrieved candidates (Silas returns similarity, not a final answer).
|
| 466 |
+
- Multilingual input is expected, or embedding size needs to be tuned per deployment tier.
|
| 467 |
+
|
| 468 |
+
**Out of scope:** Silas does not verify factual correctness, does not perform classification or generation on its own, and should not be used as a sole safety or content-moderation filter — similarity scores reflect semantic closeness, not truth or safety.
|
| 469 |
+
|
| 470 |
+
---
|
| 471 |
+
|
| 472 |
+
# Bias, Risks & Limitations
|
| 473 |
+
|
| 474 |
+
Silas is currently evaluated primarily through embedding and semantic-matching experiments. Current limitations include:
|
| 475 |
+
|
| 476 |
+
- External leaderboard evaluation has not been independently performed.
|
| 477 |
+
- Long-context behavior has not been independently re-benchmarked across the entire 32K context window.
|
| 478 |
+
- Performance may vary across domains not represented in the benchmark corpus.
|
| 479 |
+
- Multilingual performance should be validated against the specific languages relevant to the target application — "100+ languages supported" reflects the base model's training, not per-language benchmarking by Alfo Tech Industries.
|
| 480 |
+
- Similarity scores do not represent factual correctness, and retrieved-but-similar text can still be wrong, biased, or outdated relative to the query's intent.
|
| 481 |
+
|
| 482 |
+
For high-stakes applications (legal, medical, financial, safety-critical), validate Silas using domain-specific evaluation datasets and appropriate system-level safeguards rather than relying on the benchmarks above alone.
|
| 483 |
+
|
| 484 |
+
---
|
| 485 |
+
|
| 486 |
+
# Current Development Status
|
| 487 |
+
|
| 488 |
+
| Component | Status |
|
| 489 |
+
| ------------------------------------ | ---------- |
|
| 490 |
+
| Base Model Integration | ✅ Complete |
|
| 491 |
+
| Baseline Evaluation | ✅ Complete |
|
| 492 |
+
| Easy Benchmark | ✅ Complete |
|
| 493 |
+
| Hard Benchmark | ✅ Complete |
|
| 494 |
+
| Failure Analysis | ✅ Complete |
|
| 495 |
+
| Semantic Hard-Negative Discovery | ✅ Complete |
|
| 496 |
+
| Retrieval Fine-Tuning | 🔄 Ongoing |
|
| 497 |
+
| Extended Blind Evaluation | 🔄 Planned |
|
| 498 |
+
| Production Optimization | 🔄 Planned |
|
| 499 |
+
|
| 500 |
+
---
|
| 501 |
+
|
| 502 |
+
# Roadmap
|
| 503 |
+
|
| 504 |
+
**Model Quality**
|
| 505 |
+
- Larger curated datasets
|
| 506 |
+
- Improved semantic hard-negative mining
|
| 507 |
+
- Stronger domain adaptation
|
| 508 |
+
- Broader multilingual evaluation
|
| 509 |
+
|
| 510 |
+
**Benchmarking**
|
| 511 |
+
- Blind evaluation sets
|
| 512 |
+
- Additional embedding benchmarks
|
| 513 |
+
- Expanded production-scale benchmarks
|
| 514 |
+
- Cross-domain evaluation
|
| 515 |
+
|
| 516 |
+
**Deployment**
|
| 517 |
+
- Higher-throughput inference
|
| 518 |
+
- Optimized vector dimensions
|
| 519 |
+
- Serving infrastructure
|
| 520 |
+
- Additional vector database integrations
|
| 521 |
+
|
| 522 |
+
---
|
| 523 |
+
|
| 524 |
+
# Versioning
|
| 525 |
+
|
| 526 |
+
| Version | Status | Notes |
|
| 527 |
+
| ------- | ------- | -------------------------------------------------------- |
|
| 528 |
+
| v1 | Current | Initial public release; baseline + hard-benchmark results above |
|
| 529 |
+
|
| 530 |
+
Future releases that materially change benchmark numbers or the recommended production config will be tagged as new versions rather than silently overwriting these results.
|
| 531 |
+
|
| 532 |
+
---
|
| 533 |
+
|
| 534 |
+
# FAQ
|
| 535 |
+
|
| 536 |
+
**Which dimension should I use?**
|
| 537 |
+
Start at the default 1024 for best hard-case separation. Drop to a smaller `truncate_dim` (e.g. 256–384) once you've confirmed accuracy holds on your own hard-negative style data — don't shrink dimensions before benchmarking on your corpus.
|
| 538 |
+
|
| 539 |
+
**Do I need the `query` prompt for every use case?**
|
| 540 |
+
Only for asymmetric retrieval (short query → long document). For symmetric comparison tasks (dedup, clustering, paraphrase matching), encode both sides without the query prompt.
|
| 541 |
+
|
| 542 |
+
**Why is Recall@1 so much lower on the hard benchmark?**
|
| 543 |
+
Because the hard benchmark's negatives are semantically close to the correct answer by design (see [Semantic Analysis](#semantic-analysis)) — this is expected and is the metric the roadmap's hard-negative mining work targets directly.
|
| 544 |
+
|
| 545 |
+
**Is this model safe to use as a standalone fact-checker or filter?**
|
| 546 |
+
No — see [Intended Use](#intended-use) and [Bias, Risks & Limitations](#bias-risks--limitations).
|
| 547 |
+
|
| 548 |
+
---
|
| 549 |
+
|
| 550 |
+
# Reproducibility
|
| 551 |
+
|
| 552 |
+
Silas follows an evaluation-first development methodology. The project tracks:
|
| 553 |
+
|
| 554 |
+
- Model configuration
|
| 555 |
+
- Dataset processing
|
| 556 |
+
- Benchmark methodology
|
| 557 |
+
- Failure analysis
|
| 558 |
+
- Inference configuration
|
| 559 |
+
- Production recommendations
|
| 560 |
+
|
| 561 |
+
All benchmark values presented above are measured results from the current development evaluation.
|
| 562 |
+
|
| 563 |
+
---
|
| 564 |
+
|
| 565 |
+
# Citation
|
| 566 |
+
|
| 567 |
+
## Silas Embedding
|
| 568 |
+
|
| 569 |
+
```bibtex
|
| 570 |
+
@misc{silas_embedding_2026,
|
| 571 |
+
title={Silas Embedding 0.6B},
|
| 572 |
+
author={Alfo Tech Industries},
|
| 573 |
+
year={2026},
|
| 574 |
+
publisher={Hugging Face},
|
| 575 |
+
url={https://huggingface.co/alfotech/silas-embedding-0.6b}
|
| 576 |
+
}
|
| 577 |
+
```
|
| 578 |
+
|
| 579 |
+
## Qwen3 Embedding
|
| 580 |
+
|
| 581 |
+
```bibtex
|
| 582 |
+
@article{qwen3embedding,
|
| 583 |
+
title={Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models},
|
| 584 |
+
author={Zhang, Yanzhao and Li, Mingxin and Long, Dingkun and others},
|
| 585 |
+
journal={arXiv preprint arXiv:2506.05176},
|
| 586 |
+
year={2025}
|
| 587 |
+
}
|
| 588 |
+
```
|
| 589 |
+
|
| 590 |
+
---
|
| 591 |
+
|
| 592 |
+
# License
|
| 593 |
+
|
| 594 |
+
**Apache-2.0**
|
| 595 |
+
|
| 596 |
+
Silas is based on Qwen3-Embedding-0.6B and follows the applicable licensing requirements of the upstream model.
|
| 597 |
+
|
| 598 |
+
---
|
| 599 |
+
|
| 600 |
+
# Contact & Support
|
| 601 |
+
|
| 602 |
+
- **Organization:** Alfo Tech Industries — [github.com/Alfo-Tech-Lab](https://github.com/Alfo-Tech-Lab)
|
| 603 |
+
- **Issues & feedback:** open an issue on the model's Hugging Face repository discussion tab, or via the GitHub organization above.
|
| 604 |
+
|
| 605 |
+
---
|
| 606 |
+
|
| 607 |
+
<p align="center">
|
| 608 |
+
<b>Silas Embedding 0.6B</b><br/>
|
| 609 |
+
<b>Alfo Tech Industries</b><br/>
|
| 610 |
+
<i>Production-grade embedding infrastructure for modern AI systems.</i>
|
| 611 |
+
<br/><br/>
|
| 612 |
+
<a href="https://huggingface.co/alfotech/silas-embedding-0.6b">Hugging Face</a>
|
| 613 |
+
</p>
|