Vector index (Python SDK V2)
With OSS AISearch, you can quickly locate object files among a massive number of objects based on conditions such as semantic content, OSS metadata, multimedia metadata, object ETags, tags, and custom metadata to improve retrieval efficiency. This topic describes how to use Python SDK V2 for vector retrieval.
Notes
-
The sample code in this topic uses the China (Hangzhou) region (
cn-hangzhou) as an example. By default, the public endpoint is used. If you want to access OSS from other Alibaba Cloud products in the same region, use the internal endpoint. For more information about the mappings between OSS-supported regions and endpoints, see OSS regions and endpoints. -
The examples in this topic demonstrate how to read access credentials from environment variables. For more information about how to configure access credentials, see Configure access credentials.
Sample code
References
-
For more information about AISearch, see AISearch.
-
For more information about the API operations for data indexing, see Data Indexing.
-
For the complete sample code for AISearch, see the GitHub example.