// 计算余弦相似度
function cosineSimilarity(s, t) {
let dotProduct = 0;
let magnitude1 = 0;
let magnitude2 = 0;
2023-06-21