Vector type
Use the vector type to store vectors, such as embeddings, which you can then use for vector searches.
When you define a vector column, you specify the vector dimensions.
To use a vector column:
-
Create a
vectorcolumn. For examples, see Create a table with a column to store vector embeddings, or alter a table to add a vector column.You can define multiple
vectorcolumns to store vectors with different dimensions or from different embedding models, but you can only run a vector search on one column at a time. -
Store vector data in the column. For an example, see Insert a row with vector embeddings.
-
Use vector search on the column. For an example, see Use vector search with a search vector to find a row.