chore(FEEDBACK-0001): linting
This commit is contained in:
@@ -46,9 +46,7 @@ interface RawEmbeddingRow {
|
||||
*/
|
||||
export function cosineSimilarity(a: Float32Array, b: Float32Array): number {
|
||||
if (a.length !== b.length) {
|
||||
throw new Error(
|
||||
`Embedding dimension mismatch: ${a.length} vs ${b.length}`
|
||||
);
|
||||
throw new Error(`Embedding dimension mismatch: ${a.length} vs ${b.length}`);
|
||||
}
|
||||
|
||||
let dot = 0;
|
||||
|
||||
Reference in New Issue
Block a user