public class VikingDBService extends BaseServiceImpl
apiInfoList, credentials, ISigner, serviceInfodestroy, getAccessKey, getApiInfoList, getHttpClient, getISigner, getRegion, getSecretKey, getServiceInfo, getSessionToken, getSignUrl, json, makeRequest, post, postFileMultiPart, prepareRequest, proto, put, putData, putData, putDataWithResponse, putDataWithResponse, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2public 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 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 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
ExceptionCopyright © 2024. All rights reserved.