@moss-dev/moss-web 1.5.0 → 1.5.1
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 +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Built on WebAssembly for near-native performance in any modern browser.
|
|
|
18
18
|
npm install @moss-dev/moss-web
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Version 1.5.
|
|
21
|
+
Version 1.5.1 resolves `@moss-dev/moss-wasm@0.18.1`. Text `query()` loads its
|
|
22
22
|
model through the Moss service using the client's credentials, so the service
|
|
23
23
|
must be reachable the first time a model is loaded; there is no offline
|
|
24
24
|
fallback. Before 1.2.0 the only published npm versions were 1.0.0 and 1.0.1,
|
|
@@ -88,10 +88,10 @@ A token is cached until 60 seconds before it expires, or for 90% of its life whe
|
|
|
88
88
|
**Options:**
|
|
89
89
|
|
|
90
90
|
- `model` — `"moss-minilm"` (default, fast, for most use-cases) or `"moss-mediumlm"`
|
|
91
|
-
- `baseUrl
|
|
91
|
+
- `baseUrl`: custom API base URL.
|
|
92
92
|
- `onProgress` — Called with `{ modelId, loadedBytes, totalBytes, fromCache }` while the embedding model downloads
|
|
93
93
|
|
|
94
|
-
The first text query waits for the embedding model. The model
|
|
94
|
+
The first text query waits for the embedding model. The model request fails after 30 seconds without an answer. Each model file request aborts after 30 seconds without data and is retried once. The verified model is kept in the browser Cache API and checked against its SHA-256 before each use, so later page loads skip the download. On pages without the Cache API, such as plain HTTP, it downloads on each page load.
|
|
95
95
|
|
|
96
96
|
```typescript
|
|
97
97
|
const client = new MossClient(projectId, projectKey, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moss-dev/moss-web",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Moss browser SDK — in-browser semantic search powered by WASM",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "npm run build && node --test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@moss-dev/moss-wasm": "0.18.
|
|
34
|
+
"@moss-dev/moss-wasm": "0.18.1",
|
|
35
35
|
"onnxruntime-web": "1.30.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"vector"
|
|
48
48
|
],
|
|
49
49
|
"author": "InferEdge Inc.",
|
|
50
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
50
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
51
51
|
"repository": {
|
|
52
52
|
"type": "git",
|
|
53
53
|
"url": "https://github.com/usemoss/moss"
|