Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
|
@@ -245,8 +245,8 @@
|
|
| 245 |
const statusEl = document.getElementById("status");
|
| 246 |
const embed = await pipeline(
|
| 247 |
"feature-extraction",
|
| 248 |
-
"
|
| 249 |
-
{ device: "webgpu", dtype: "
|
| 250 |
);
|
| 251 |
statusEl.textContent = "Ready!";
|
| 252 |
|
|
@@ -291,7 +291,7 @@
|
|
| 291 |
.value.trim();
|
| 292 |
const labelTexts = labelInput
|
| 293 |
.split("\n")
|
| 294 |
-
.map((s) => s.trim())
|
| 295 |
.filter((s) => s);
|
| 296 |
|
| 297 |
let labelEmbeddings = [];
|
|
|
|
| 245 |
const statusEl = document.getElementById("status");
|
| 246 |
const embed = await pipeline(
|
| 247 |
"feature-extraction",
|
| 248 |
+
"MongoDB/mdbr-leaf-mt",
|
| 249 |
+
{ device: "webgpu", dtype: "q4" },
|
| 250 |
);
|
| 251 |
statusEl.textContent = "Ready!";
|
| 252 |
|
|
|
|
| 291 |
.value.trim();
|
| 292 |
const labelTexts = labelInput
|
| 293 |
.split("\n")
|
| 294 |
+
.map((s) => "Represent this sentence for searching relevant passages: " + s.trim())
|
| 295 |
.filter((s) => s);
|
| 296 |
|
| 297 |
let labelEmbeddings = [];
|