Skip to content

Commit

Permalink
add refactoring hint
Browse files Browse the repository at this point in the history
  • Loading branch information
do-me committed May 6, 2024
1 parent 441095a commit 95a2348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ self.onmessage = async (event) => {
let valuesArray = convertFloat32ArraysToArrays(valuesFloat32Array);
const valuesArrayLength = valuesArray.length;
//console.log(valuesArrayLength);
// Check if the length is below 61
// stupid workaround needed as the wasm module has no param for perplexity yet
// Check if the length is below 61 to set perplexity to a different value, needs slight refactoring to
// get rid of this workaround

let compressed_vectors;
if (valuesArrayLength < 61) {
Expand Down

0 comments on commit 95a2348

Please sign in to comment.