Skip to content

Commit

Permalink
Use deck.gl for 2D ScatterPlot, add full functionality and controls
Browse files Browse the repository at this point in the history
  • Loading branch information
do-me authored and do-me committed Feb 1, 2024
1 parent 54b3145 commit 695bfd9
Show file tree
Hide file tree
Showing 8 changed files with 1,358 additions and 481 deletions.
31 changes: 28 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,20 @@ <h6>Style Preferences</h6>
id="dimensionalityReduction">🌌 Dim-Reduction</button>
</div>
</div>
<div class="col-md-2">
<div class="form-floating mb-2">
<input id="dimReductionIterations" class="form-control w-100" type="number"
min="1" value="1000" />
<label for="dimReductionIterations"># Iterations</label>
</div>
</div>
<div class="col-md-2">
<div class="form-floating mb-2">
<input id="scatterplotRadius" class="form-control w-100" type="number"
min="1" value="16000" />
<label for="scatterplotRadius"># Radius</label>
</div>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -643,9 +657,20 @@ <h6>Style Preferences</h6>
<ul id="results-list"></ul>
</div>
</div>
<div class="row">
<div id="plot-container"></div>

<div class="row justify-content-center">
<div class="col-12">
<div>
<hr />
<h4>Dimensionality Reduction (New🔥) </h4>
<p>Run a search as usual or load an index. Then hit "Dim-Reduction" in the advanced settings. More iterations yield better results but take more time to compute. If the points are too small increase the radius. Using a fast wasm implementation of Barnes-Hut tSNE (<a href="https://github.com/Lv-291/wasm-bhtsne" target="_blank">wasm-bhtSNE</a>).</p>
<div id="plot-container">
<canvas id="deckgl"></canvas>
</div>
</div>
</div>
</div>

<div class="row justify-content-center">
<div class="col-12">
<div>
Expand Down Expand Up @@ -810,7 +835,7 @@ <h4>Summary (Retrieval Augmented Generation, RAG)</h4>
<br>
</div>
</div>

<div id="tooltip" class="tooltip"></div>
</body>

</html>
Loading

0 comments on commit 695bfd9

Please sign in to comment.