diff --git a/modules/workerInterface.js b/modules/workerInterface.js index da49b709018ec8efd3167807d85e4f51e400874c..8d37081593149115594ad69bc90b026ac98ef6bd 100644 --- a/modules/workerInterface.js +++ b/modules/workerInterface.js @@ -30,10 +30,9 @@ export function handleWorker(events){ bestAnswer[questions[i]] = bestTokens[i]; } - drawFeedbackButtons(query, bestAnswer); + drawUserInfo(); - - + /** pass our three results to ui so they can be displayed and worked with in chat */ results.forEach(result => { appendMessage( @@ -46,7 +45,7 @@ export function handleWorker(events){ result.answer ); }); - + drawFeedbackButtons(query, bestAnswer); /**discloseLimitations();*/ break; diff --git a/styles.css b/styles.css index 3d7cde2378a3a17d1a6d626e6215e8d9d023ebfb..9d7f811801add3e5756c5bc176e0e8a7111bacb5 100644 --- a/styles.css +++ b/styles.css @@ -221,8 +221,8 @@ .feedback-container { position: relative; - margin-left: auto; - left: -20px; + margin-right: auto; + right: -25px; color: #000; cursor: pointer; max-width: 10px; @@ -238,11 +238,11 @@ content: "Did the suggestions answer your question? Let us know."; position: absolute; max-width: 100px; - bottom: -50px; - right: 300%; + left: 200%; transform: translateX(20%); background-color: rgb(0, 0, 0, 0.8); color: white; + z-index: 1000; padding: 10px; border-radius: 4px; font-size: 14px; @@ -331,22 +331,3 @@ transform: translateY(0); } } - - - - - - - - - - - - - - - - - - - diff --git a/worker.js b/worker.js index 9930d39a523f120f428c659f406de9abcd81b6a2..3dfe4d0ca55aeaa3ce55602db2c4f40e3b4ae02d 100644 --- a/worker.js +++ b/worker.js @@ -20,8 +20,13 @@ self.onmessage = async function (event) { switch (act) { case 'initialize': - console.time("calcEmbeddings"); + + console.time("Model Loading Time"); await initializeModel(); + console.timeEnd("Model Loading Time"); + + console.time("calcEmbeddings"); + textData = newtextData; setCaches(embeddingStack, tokenEmbeddingStack);