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
/// This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
37
-
pubstructVectorizeIndexDetails{
38
-
pubid:String,
39
-
pubname:String,
40
-
pubdescription:Option<String>,
41
-
pubconfig:VectorizeIndexConfig,
42
-
pubvectors_count:u64,
35
+
pubstructVectorizeIndexInfo{
36
+
/// The number of records containing vectors within the index.
37
+
pubvector_count:u64,
38
+
/// Number of dimensions the index has been configured for.
39
+
pubdimensions:u32,
40
+
/// ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state.
41
+
#[serde(skip_serializing_if = "Option::is_none")]
42
+
pubprocessed_up_to_datetime:Option<String>,
43
+
/// UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state.
44
+
#[serde(skip_serializing_if = "Option::is_none")]
45
+
pubprocessed_up_to_mutation:Option<String>,
43
46
}
44
47
48
+
/// Results of an operation that performed a mutation on a set of vectors.
45
49
#[derive(Debug,Deserialize)]
46
50
#[serde(rename_all = "camelCase")]
47
-
/// Results of an operation that performed a mutation on a set of vectors.
48
-
/// Here, `ids` is a list of vectors that were successfully processed.
49
-
///
50
-
/// This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
51
-
pubstructVectorizeVectorMutation{
52
-
/// List of ids of vectors that were successfully processed.
53
-
pubids:Vec<String>,
54
-
/// Total count of the number of processed vectors.
55
-
pubcount:u64,
51
+
pubstructVectorizeVectorAsyncMutation{
52
+
/// The unique identifier for the async mutation operation containing the changeset.
53
+
pubmutation_id:String,
56
54
}
57
55
58
-
#[derive(Debug,Serialize)]
59
56
/// Represents a single vector value set along with its associated metadata.
57
+
#[derive(Debug,Serialize)]
60
58
pubstructVectorizeVector<'a>{
61
59
/// The ID for the vector. This can be user-defined, and must be unique. It should uniquely identify the object, and is best set based on the ID of what the vector represents.
/// Full metadata for the vector return set, including all fields (including those un-indexed) without truncation. This is a more expensive retrieval, as it requires additional fetching & reading of un-indexed data.
98
96
All,
99
97
/// Return all metadata fields configured for indexing in the vector return set. This level of retrieval is "free" in that no additional overhead is incurred returning this data. However, note that indexed metadata is subject to truncation (especially for larger strings).
100
98
Indexed,
101
99
/// No indexed metadata will be returned.
100
+
#[default]
102
101
None,
103
102
}
104
103
105
-
#[derive(Debug,Serialize,Hash,PartialEq,Eq)]
106
104
/// Comparison logic/operation to use for metadata filtering.
107
105
///
108
106
/// This list is expected to grow as support for more operations are released.
107
+
#[derive(Debug,Serialize,Hash,PartialEq,Eq)]
109
108
pubenumVectorizeVectorMetadataFilterOp{
110
109
#[serde(rename = "$eq")]
111
110
Eq,
@@ -120,13 +119,14 @@ type VectorizeVectorMetadataFilter =
120
119
#[derive(Debug,Serialize)]
121
120
#[serde(rename_all = "camelCase")]
122
121
pubstructVectorizeQueryOptions{
123
-
// Default 3, max 20
122
+
// Default 5, max 100
124
123
top_k:u8,
124
+
/// Return vectors from the specified namespace. Default `none`.
/// Represents a single vector value set along with its associated metadata.
189
+
#[derive(Debug,Deserialize)]
187
190
pubstructVectorizeVectorResult{
188
191
/// The ID for the vector. This can be user-defined, and must be unique. It should uniquely identify the object, and is best set based on the ID of what the vector represents.
189
192
pubid:String,
190
193
/// The vector values.
191
194
pubvalues:Option<Vec<f32>>,
192
195
/// Metadata associated with the vector. Includes the values of other fields and potentially additional details.
0 commit comments