Vector data type
data-typesvector
vector
vector
json
Half-precision float support in vector data type
Always-
up-to-date
テ
2025 (17.x)
Azure SQL Managed
Instance
The
data type is designed to store vector data optimized for operations such as
similarity search and machine learning applications. Vectors are stored in an optimized binary
format but are exposed as JSON arrays for convenience. Each element of the vector is stored as
a single-precision (4-byte) floating-point value.
To provide a familiar experience for developers, the
data type is created and displayed
as a JSON array. For example, a vector with three dimensions can be represented as. Implicit and explicit conversion from and to the
type can be done using
,
, and
types.
vector is currently available for preview. To test, enable the
database
scoped configuration option. For details, review
PREVIEW_FEATURES = { ON | OFF }.
For limitations, review
Limitations
and
Known issues.
For more information on working with vector data, see:
Vector search and vector indexes in the SQL Database Engine
Intelligent applications
7
Note
2025 (17.x) supports half-precision (
) vectors. For more information,
see.
7
Note
Vector features are available in Azure SQL Managed Instance configured with the
policy.
vector
half-precision
vector
vector
'[0.1, 2,
30]'
float16
PREVIEW_FEATURES
float16
ALTER
DATABASE
SCOPED CONFIGURATION
SET
PREVIEW_FEATURES =
ON
;
GO