@vivantel/virage-embedder-transformers 0.2.15 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -39,22 +39,22 @@ The pipeline initializes lazily — the model is downloaded on the first `embed(
|
|
|
39
39
|
|
|
40
40
|
## Recommended models
|
|
41
41
|
|
|
42
|
-
| Model
|
|
43
|
-
|
|
|
44
|
-
| `Xenova/all-MiniLM-L6-v2`
|
|
45
|
-
| `Xenova/all-mpnet-base-v2`
|
|
46
|
-
| `Xenova/paraphrase-multilingual-MiniLM-L12-v2` | 384
|
|
42
|
+
| Model | Dimensions | Notes |
|
|
43
|
+
| ---------------------------------------------- | ---------- | ------------------------- |
|
|
44
|
+
| `Xenova/all-MiniLM-L6-v2` | 384 | Fast, good quality, 80 MB |
|
|
45
|
+
| `Xenova/all-mpnet-base-v2` | 768 | Higher quality, 420 MB |
|
|
46
|
+
| `Xenova/paraphrase-multilingual-MiniLM-L12-v2` | 384 | Multilingual |
|
|
47
47
|
|
|
48
48
|
Any ONNX-compatible model on the HuggingFace hub can be used.
|
|
49
49
|
|
|
50
50
|
## Options
|
|
51
51
|
|
|
52
|
-
| Option
|
|
53
|
-
|
|
|
54
|
-
| `model`
|
|
55
|
-
| `dimensions` | `number`
|
|
56
|
-
| `device`
|
|
57
|
-
| `cacheDir`
|
|
52
|
+
| Option | Type | Description |
|
|
53
|
+
| ------------ | ------------------- | ----------------------------------- |
|
|
54
|
+
| `model` | `string` | HuggingFace model ID (required) |
|
|
55
|
+
| `dimensions` | `number` | Output dimensions (default: 384) |
|
|
56
|
+
| `device` | `"cpu" \| "webgpu"` | Inference device (default: `"cpu"`) |
|
|
57
|
+
| `cacheDir` | `string` | Local model cache directory |
|
|
58
58
|
|
|
59
59
|
## First run
|
|
60
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivantel/virage-embedder-transformers",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"description": "Local transformers.js embedding provider for @vivantel/rag-core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@vivantel/virage-core": "*"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@vivantel/virage-core": "0.2.
|
|
55
|
+
"@vivantel/virage-core": "0.2.16",
|
|
56
56
|
"@types/node": "^25.9.1",
|
|
57
57
|
"typescript": "^6.0.3",
|
|
58
58
|
"vitest": "^4.1.8"
|