You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/vector-search-how-to-storage-options.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,21 +16,23 @@ Azure AI Search stores multiple copies of vector fields that are used in specifi
16
16
17
17
## Prerequisites
18
18
19
-
-[Compressed vector fields](vector-search-how-to-quantization.md) in a search index.
19
+
-[Vvector fields](vector-search-how-to-create-index.md) in a search index.
20
20
21
21
## How vector fields are stored
22
22
23
23
For every vector field, there are three copies of vectors:
24
24
25
-
-`source` (in JSON) as received from an embedding model or push request to the index, used if you want `retrievable` vectors in search results.
26
-
- original full-precision vectors, used if you want to rescore the query results obtained over compressed vectors.
27
-
- vectors and graph information created by the HNSW library, used for query execution.
25
+
| Instance | Usage |
26
+
|----------|-------|
27
+
| source vectors (in JSON) as received from an embedding model or push request to the index | Used if you want "retrievable" vectors returned in the query response. |
28
+
| original full-precision vectors | Used if you want to rescore the query results obtained over compressed vectors. Applies only to vector fields subject to [scalar or binary quantization](vector-search-how-to-quantization.md). |
29
+
| vectors and graph information created by the HNSW library | Used for query execution. |
28
30
29
31
The last instance (vectors and graph) is required for vector query execution. The first two instances can be discarded if you don't need them. Compression techniques like scalar or binary quantization are applied to the vectors used during query execution.
30
32
31
33
## Set the `stored` property
32
34
33
-
The `stored` property is a boolean on a vector field definition that determines whether storage is allocated for retrievable vector field content (the `source` instance). The `stored` property is true by default. If you don't need raw vector content in a query response, you can save up to 50 percent storage per field by changing `stored` to false.
35
+
The `stored` property is a boolean on a vector field definition that determines whether storage is allocated for retrievable vector field content (the source instance). The `stored` property is true by default. If you don't need raw vector content in a query response, you can save up to 50 percent storage per field by changing `stored` to false.
34
36
35
37
Considerations for setting `stored` to false:
36
38
@@ -76,7 +78,7 @@ PUT https://[service-name].search.windows.net/indexes/demo-index?api-version=202
The `rescoreStorageMethod` property on a vector field definition that determines whether storage is allocated for original full-precision vectors. The `rescoreStorageMethod` property is set to `preserveOriginals` by default. If you aren't using the [oversampling and rescoring mitigations](vector-search-how-to-quantization.md#add-compressions-to-a-search-index) provided for querying compressed vectors, you can save on vector storage per field by changing `rescoreStorageMethod` to `discardOriginals`.
81
+
The `rescoreStorageMethod` property on a vector field definition determines whether storage is allocated for original full-precision vectors. The `rescoreStorageMethod` property is set to `preserveOriginals` by default. If you aren't using the [oversampling and rescoring mitigations](vector-search-how-to-quantization.md#add-compressions-to-a-search-index) provided for querying compressed vectors, you can save on vector storage by changing `rescoreStorageMethod` to `discardOriginals`.
80
82
81
83
If you intend to use scalar or binary quantization, we recommend retaining `rescoreStorageMethod` set to `preserveOriginals`.
0 commit comments