From c7c048acdba883cb167e1a2d07d65867d74c6b7b Mon Sep 17 00:00:00 2001 From: Daniel Shiffman Date: Sun, 28 Apr 2024 18:46:38 -0400 Subject: [PATCH] id only (#5) --- public/explore-prototype/sketch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/explore-prototype/sketch.js b/public/explore-prototype/sketch.js index 24e5718..3974be7 100644 --- a/public/explore-prototype/sketch.js +++ b/public/explore-prototype/sketch.js @@ -130,7 +130,7 @@ async function goMarkov() { const sortedIndices = similarities .map((_, i) => i) .sort((a, b) => similarities[b] - similarities[a]); - const topResults = sortedIndices.map((i) => embeddings[i]); + const topResults = sortedIndices.map((i) => embeddings[i].id); console.log(topResults); }