@@ -81,6 +81,42 @@ output::
81
81
82
82
.. latex :clearpage ::
83
83
84
+
85
+ Get vector index attributes
86
+ +++++++++++++++++++++++++++
87
+
88
+ You can fetch the vector index attributes and associated AI profile using
89
+ ``vector_index.get_attributes() `` and ``vector_index.get_profile() `` methods
90
+ respectively.
91
+
92
+ .. literalinclude :: ../../../samples/vector_index_get_attributes.py
93
+ :language: python
94
+ :lines: 14-
95
+
96
+ output::
97
+
98
+ OracleVectorIndexAttributes(chunk_size=1024, chunk_overlap=128, location='https://objectstorage.us-ashburn-1.oraclecloud.com/n/dwcsdev/b/conda-environment/o/tenant1-pdb3/graph', match_limit=5, object_storage_credential_name='my_oci_ai_profile_key', profile_name='oci_vector_ai_profile', refresh_rate=1450, similarity_threshold=0.5, vector_distance_metric='COSINE', vector_db_endpoint=None, vector_db_credential_name=None, vector_db_provider=<VectorDBProvider.ORACLE: 'oracle'>, vector_dimension=None, vector_table_name=None, pipeline_name='TEST_VECTOR_INDEX$VECPIPELINE')
99
+
100
+ Profile(profile_name=oci_vector_ai_profile, attributes=ProfileAttributes(annotations=None, case_sensitive_values=None, comments=None, constraints=None, conversation=None, credential_name='my_oci_ai_profile_key', enable_custom_source_uri=None, enable_sources=None, enable_source_offsets=None, enforce_object_list=None, max_tokens=1024, object_list=None, object_list_mode=None, provider=OCIGenAIProvider(embedding_model='cohere.embed-english-v3.0', model=None, provider_name='oci', provider_endpoint=None, region='us-chicago-1', oci_apiformat='GENERIC', oci_compartment_id=None, oci_endpoint_id=None, oci_runtimetype=None), seed=None, stop_tokens=None, streaming=None, temperature=None, vector_index_name='test_vector_index'), description=MY OCI AI Profile)
101
+
102
+ .. latex :clearpage ::
103
+
104
+ Update vector index attributes
105
+ ++++++++++++++++++++++++++++++
106
+
107
+ To update attributes, use either ``vector_index.set_attribute() `` or
108
+ ``vector_index.set_attributes() ``
109
+
110
+ .. literalinclude :: ../../../samples/vector_index_update_attributes.py
111
+ :language: python
112
+ :lines: 14-
113
+
114
+ output::
115
+
116
+ OracleVectorIndexAttributes(chunk_size=1024, chunk_overlap=128, location='https://objectstorage.us-ashburn-1.oraclecloud.com/n/dwcsdev/b/conda-environment/o/tenant1-pdb3/graph', match_limit=5, object_storage_credential_name='my_oci_ai_profile_key', profile_name='oci_vector_ai_profile', refresh_rate=1450, similarity_threshold=0.5, vector_distance_metric='COSINE', vector_db_endpoint=None, vector_db_credential_name=None, vector_db_provider=<VectorDBProvider.ORACLE: 'oracle'>, vector_dimension=None, vector_table_name=None, pipeline_name='TEST_VECTOR_INDEX$VECPIPELINE')
117
+
118
+ .. latex :clearpage ::
119
+
84
120
RAG using vector index
85
121
++++++++++++++++++++++
86
122
@@ -159,6 +195,41 @@ output::
159
195
160
196
.. latex :clearpage ::
161
197
198
+
199
+ Async get vector index attributes
200
+ +++++++++++++++++++++++++++++++++
201
+
202
+ You can fetch the vector index attributes and associated AI profile using
203
+ ``async_vector_index.get_attributes() `` and ``async_vector_index.get_profile() ``
204
+ methods respectively.
205
+
206
+ .. literalinclude :: ../../../samples/async/vector_index_get_attributes.py
207
+ :language: python
208
+ :lines: 14-
209
+
210
+ output::
211
+
212
+ OracleVectorIndexAttributes(chunk_size=1024, chunk_overlap=128, location='https://objectstorage.us-ashburn-1.oraclecloud.com/n/dwcsdev/b/conda-environment/o/tenant1-pdb3/graph', match_limit=5, object_storage_credential_name='my_oci_ai_profile_key', profile_name='oci_vector_ai_profile', refresh_rate=1450, similarity_threshold=0.5, vector_distance_metric='COSINE', vector_db_endpoint=None, vector_db_credential_name=None, vector_db_provider=<VectorDBProvider.ORACLE: 'oracle'>, vector_dimension=None, vector_table_name=None, pipeline_name='TEST_VECTOR_INDEX$VECPIPELINE')
213
+
214
+ AsyncProfile(profile_name=oci_vector_ai_profile, attributes=ProfileAttributes(annotations=None, case_sensitive_values=None, comments=None, constraints=None, conversation=None, credential_name='my_oci_ai_profile_key', enable_custom_source_uri=None, enable_sources=None, enable_source_offsets=None, enforce_object_list=None, max_tokens=1024, object_list=None, object_list_mode=None, provider=OCIGenAIProvider(embedding_model='cohere.embed-english-v3.0', model=None, provider_name='oci', provider_endpoint=None, region='us-chicago-1', oci_apiformat='GENERIC', oci_compartment_id=None, oci_endpoint_id=None, oci_runtimetype=None), seed=None, stop_tokens=None, streaming=None, temperature=None, vector_index_name='test_vector_index'), description=MY OCI AI Profile)
215
+
216
+ .. latex :clearpage ::
217
+
218
+ Async update vector index attributes
219
+ ++++++++++++++++++++++++++++++++++++
220
+
221
+ To update attributes, use either ``async_vector_index.set_attribute() `` or
222
+ ``async_vector_index.set_attributes() ``
223
+
224
+ .. literalinclude :: ../../../samples/async/vector_index_update_attributes.py
225
+ :language: python
226
+ :lines: 14-
227
+
228
+ output::
229
+
230
+ OracleVectorIndexAttributes(chunk_size=1024, chunk_overlap=128, location='https://objectstorage.us-ashburn-1.oraclecloud.com/n/dwcsdev/b/conda-environment/o/tenant1-pdb3/graph', match_limit=5, object_storage_credential_name='my_oci_ai_profile_key', profile_name='oci_vector_ai_profile', refresh_rate=1450, similarity_threshold=0.5, vector_distance_metric='COSINE', vector_db_endpoint=None, vector_db_credential_name=None, vector_db_provider=<VectorDBProvider.ORACLE: 'oracle'>, vector_dimension=None, vector_table_name=None, pipeline_name='TEST_VECTOR_INDEX$VECPIPELINE')
231
+
232
+
162
233
Async RAG using vector index
163
234
++++++++++++++++++++++++++++
164
235
0 commit comments