MaxCompute SQL provides VECTOR functions to operate on the VECTOR data type. These functions support various distance and retrieval operations for use cases such as semantic search, enhancing Large Language Models (LLMs), and generative AI.
Function | Description |
Calculates the cosine distance between two vectors. | |
Calculates the inner product distance between two vectors. | |
Calculates the L2 Euclidean distance between two vectors. | |
Performs vector similarity search and supports large-scale approximate nearest neighbor (ANN) search. |
该文章对您有帮助吗?