All Products
Search
Document Center

Vector Retrieval Service:Install a DashVector SDK

Last Updated:Aug 20, 2024

DashVector supports the following SDKs:

  • Python SDK

  • Java SDK

  • HTTP API

  • DashVector will support more SDKs in other programming languages later.

Python SDK

Note

You must deploy Python 3.7 or later.

To use DashVector, run the following command to install DashVector of the latest version by using pip:

pip3 install dashvector

To upgrade a Python SDK to the latest version, run the following command:

pip3 install dashvector --upgrade

Java SDK

Note

You must deploy Java 1.8 or later. You can run the java -version command to view the Java version.

To use DashVector, run the following commands to add dependencies for the DashVector Java SDK of the latest version to the project:

<!-- https://mvnrepository.com/artifact/com.aliyun/dashvector-java-sdk -->
<dependency>
    <groupId>com.aliyun</groupId>
    <artifactId>dashvector-java-sdk</artifactId>
    <version>1.0.9</version>
</dependency>
// https://mvnrepository.com/artifact/com.aliyun/dashvector-java-sdk
implementation 'com.aliyun:dashvector-java-sdk:1.0.9'

HTTP API

DashVector allows you to perform operations on collections and Docs over HTTP. For example, you can create and delete collections and insert and retrieve Docs over HTTP. For more information, see HTTP API.