Skip to content

Commit db9a904

Browse files
committed
Updated sample doc
1 parent 736fd09 commit db9a904

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

samples/vector_index_update_attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# -----------------------------------------------------------------------------
77

88
# -----------------------------------------------------------------------------
9-
# vector_index_get_attributes.py
9+
# vector_index_update_attributes.py
1010
#
11-
# Gets attributes for a vector index
11+
# Update attributes for a vector index
1212
# -----------------------------------------------------------------------------
1313

1414
import os

src/select_ai/vector_index.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ def disable(self):
301301

302302
def set_attribute(
303303
self,
304-
attribute_name: str = None,
305-
attribute_value: Union[str, int, float] = None,
304+
attribute_name: str,
305+
attribute_value: Union[str, int, float],
306306
):
307307
"""
308308
This procedure updates an existing vector store index with a specified
@@ -599,8 +599,8 @@ async def set_attributes(
599599
600600
:param str attribute_name: Custom attribute name
601601
:param Union[str, int, float] attribute_value: Attribute Value
602-
:param VectorIndexAttributes attributes: Specify multiple attributes
603-
to update in a single API invocation
602+
:param select_ai.VectorIndexAttributes attributes: Use this to
603+
update multiple attribute values
604604
:return: None
605605
:raises: oracledb.DatabaseError
606606
"""

0 commit comments

Comments
 (0)