Skip to content

Commit

Permalink
new: display similarity score in panel
Browse files Browse the repository at this point in the history
  • Loading branch information
alondmnt committed Apr 18, 2024
1 parent acb9476 commit 462280d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ux/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function update_panel(panel: string, nearest: NoteEmbedding[], sett
<div class="jarvis-semantic-section" >
${n.embeddings.map((embd) => `
<a class="jarvis-semantic-section" href="#" data-note="${embd.id}" data-line="${embd.line}">
L${String(embd.line).padStart(4, '0')}: ${embd.title}
(${(100 * embd.similarity).toFixed(0)}) L${String(embd.line).padStart(4, '0')}: ${embd.title}
</a><br>
`).join('')}
</div>
Expand Down

0 comments on commit 462280d

Please sign in to comment.