public class VikingDBService extends BaseServiceImpl
apiInfoList, credentials, ISigner, serviceInfo| 构造器和说明 |
|---|
VikingDBService(String host,
String region,
String ak,
String sk,
String scheme) |
VikingDBService(String host,
String region,
String ak,
String sk,
String scheme,
org.apache.http.HttpHost proxy) |
destroy, getAccessKey, getApiInfoList, getHttpClient, getISigner, getRegion, getSecretKey, getServiceInfo, getSessionToken, getSignUrl, json, makeRequest, post, postDataWithResponse, postFileMultiPart, prepareRequest, proto, put, putData, putData, putDataWithResponse, putDataWithResponse, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2public VikingDBService(String host, String region, String ak, String sk, String scheme) throws Exception
Exceptionpublic static ServiceInfo getServiceInfo(String host, String region, String ak, String sk, String scheme)
public com.google.gson.internal.LinkedTreeMap<String,Object> doRequest(String api, List<org.apache.http.NameValuePair> params, HashMap<String,Object> body) throws Exception
Exceptionpublic com.google.gson.internal.LinkedTreeMap<String,Object> retryRequest(String api, List<org.apache.http.NameValuePair> params, HashMap<String,Object> body, Integer remainingRetries) throws Exception
Exceptionpublic double calculateRetryTimeout(int remainingRetries)
public static com.google.gson.internal.LinkedTreeMap<String,Object> convertStringToLinkedTreeMap(String x)
public HashMap<String,Object> convertLinkedTreeMapToHashMap(com.google.gson.internal.LinkedTreeMap<String,Object> linkedTreeMap)
public ExceptionDetails extractExceptionDetails(String exceptionMessage)
public Collection createCollection(CreateCollectionParam createCollectionParam) throws Exception
Exceptionpublic Collection getCollection(String collectionName) throws Exception
Exceptionpublic List<Collection> listCollections() throws Exception
Exceptionpublic Index createIndex(CreateIndexParam createIndexParam) throws Exception
Exceptionpublic Index getIndex(String collectionName, String indexName) throws Exception
Exceptionpublic void dropIndex(String collectionName, String indexName) throws Exception
Exceptionpublic void updateCollection(UpdateCollectionParam updateCollectionParam) throws Exception
Exceptionpublic void updateIndex(UpdateIndexParam updateIndexParam) throws Exception
Exceptionpublic List<Double> embedding(EmbModel embModel, RawData rawData) throws Exception
Exceptionpublic List<List<Double>> embedding(EmbModel embModel, List<RawData> rawDatas) throws Exception
Exceptionpublic Double rerank(String query, String content, String title) throws Exception
Exceptionpublic List<Double> batchRerank(List<Map<String,Object>> datas) throws Exception
Exceptionpublic Map<String,Object> embeddingV2(EmbModel embModel, List<RawData> rawDatas) throws Exception
Exceptionpublic Map<String,Object> embeddingV2(EmbModel embModel, RawData rawData) throws Exception
Exceptionpublic String createTask(CreateTaskParam createTaskParam) throws Exception
ExceptionCopyright © 2025. All rights reserved.