COSINE_SIMILARITY_NORM (Lakehouse v2)
Retorna a similaridade de cosseno entre dois arrays normalizados.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.cosine_similarity_norm(<array1>, <array2>)Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.cosine_similarity_norm([0.6, 0.8], [0.8, 0.6])
┌──────┐│ 0.96 │└──────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”COSINE_SIMILARITY_NORM(<array1>, <array2>)Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT COSINE_SIMILARITY_NORM([0.6, 0.8], [0.8, 0.6]);
┌──────┐│ 0.96 │└──────┘