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, signSts2
public VikingDBService(String host, String region, String ak, String sk, String scheme) throws Exception
Exception
public 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
Exception
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
Exception
public Collection getCollection(String collectionName) throws Exception
Exception
public List<Collection> listCollections() throws Exception
Exception
public Index createIndex(CreateIndexParam createIndexParam) throws Exception
Exception
public Index getIndex(String collectionName, String indexName) throws Exception
Exception
public void dropIndex(String collectionName, String indexName) throws Exception
Exception
public void updateCollection(UpdateCollectionParam updateCollectionParam) throws Exception
Exception
public void updateIndex(UpdateIndexParam updateIndexParam) throws Exception
Exception
public List<Double> embedding(EmbModel embModel, RawData rawData) throws Exception
Exception
public List<List<Double>> embedding(EmbModel embModel, List<RawData> rawDatas) throws Exception
Exception
public Double rerank(String query, String content, String title) throws Exception
Exception
public List<Double> batchRerank(List<Map<String,Object>> datas) throws Exception
Exception
public Map<String,Object> embeddingV2(EmbModel embModel, List<RawData> rawDatas) throws Exception
Exception
Copyright © 2024. All rights reserved.