Update index.html
Browse files- index.html +3 -5
index.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<meta charset="UTF-8" />
|
5 |
-
<title>
|
6 |
<style>
|
7 |
* {
|
8 |
margin: 0;
|
@@ -271,11 +271,9 @@
|
|
271 |
}
|
272 |
|
273 |
statusEl.textContent = `Embedding ${sentences.length} sentence(s)...`;
|
274 |
-
const task =
|
275 |
-
"Given a textual input sentence, retrieve relevant categories that best describe it.";
|
276 |
const output = await embed(
|
277 |
-
sentences
|
278 |
-
{ pooling: "
|
279 |
);
|
280 |
const embeddings = output.tolist();
|
281 |
|
|
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
<meta charset="UTF-8" />
|
5 |
+
<title>Ettin Embedding Scatterplot</title>
|
6 |
<style>
|
7 |
* {
|
8 |
margin: 0;
|
|
|
271 |
}
|
272 |
|
273 |
statusEl.textContent = `Embedding ${sentences.length} sentence(s)...`;
|
|
|
|
|
274 |
const output = await embed(
|
275 |
+
sentences,
|
276 |
+
{ pooling: "cls", normalize: true },
|
277 |
);
|
278 |
const embeddings = output.tolist();
|
279 |
|