@@ -17,6 +17,7 @@ def vector_search_index_definition(
1717 path : str ,
1818 similarity : str ,
1919 filters : list [str ] | None = None ,
20+ vector_index_options : dict | None = None ,
2021 ** kwargs : Any ,
2122) -> dict [str , Any ]:
2223 """Create a vector search index definition.
@@ -40,6 +41,7 @@ def vector_search_index_definition(
4041 "path" : path ,
4142 "similarity" : similarity ,
4243 "type" : "vector" ,
44+ ** (vector_index_options or {}),
4345 },
4446 ]
4547 if filters :
@@ -95,6 +97,7 @@ def create_vector_search_index(
9597 path : str ,
9698 similarity : str ,
9799 filters : list [str ] | None = None ,
100+ vector_index_options : dict | None = None ,
98101 * ,
99102 wait_until_complete : float | None = None ,
100103 ** kwargs : Any ,
@@ -124,6 +127,7 @@ def create_vector_search_index(
124127 path = path ,
125128 similarity = similarity ,
126129 filters = filters ,
130+ vector_index_options = vector_index_options ,
127131 ** kwargs ,
128132 ),
129133 name = index_name ,
@@ -147,6 +151,7 @@ def update_vector_search_index(
147151 path : str ,
148152 similarity : str ,
149153 filters : list [str ] | None = None ,
154+ vector_index_options : dict | None = None ,
150155 * ,
151156 wait_until_complete : float | None = None ,
152157 ** kwargs : Any ,
@@ -174,6 +179,7 @@ def update_vector_search_index(
174179 path = path ,
175180 similarity = similarity ,
176181 filters = filters ,
182+ vector_index_options = vector_index_options ,
177183 ** kwargs ,
178184 ),
179185 )
0 commit comments