Package app.ductape.sdk.vector
Class VectorService
java.lang.Object
app.ductape.sdk.vector.VectorService
Parity with TS
vector.service.ts / VectorService (synchronous Java API).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnect()intcreateIndex(Map<String, Object> options) static VectorServicecreateMemoryVectorService(String index, int dimensions) static VectorServicecreateMemoryVectorService(String index, int dimensions, VectorTypes.DistanceMetric metric) static VectorServicecreateVectorService(VectorServiceOptions options) deleteByIds(List<String> ids, String namespace) deleteIndex(Map<String, Object> options) voiddeleteNamespace(String namespace) voidbooleanintgetStats()booleanbooleansupportsFeature(VectorTypes.VectorFeature feature) boolean
-
Constructor Details
-
VectorService
-
-
Method Details
-
rawAdapter
-
getDbType
-
isConnected
public boolean isConnected() -
getNamespace
-
getDimensions
public int getDimensions() -
getMetric
-
connect
-
disconnect
public void disconnect() -
testConnection
public boolean testConnection() -
upsert
-
upsertOne
-
query
-
findSimilar
-
fetch
-
fetchOne
-
update
-
updateMetadata
-
delete
-
deleteByIds
-
deleteAll
-
list
-
listAll
-
listNamespaces
-
deleteNamespace
-
describeIndex
-
getStats
-
createIndex
-
deleteIndex
-
listIndexes
-
supportsFeature
-
getSupportedFeatures
-
count
-
exists
-
createVectorService
-
createMemoryVectorService
-
createMemoryVectorService
public static VectorService createMemoryVectorService(String index, int dimensions, VectorTypes.DistanceMetric metric)
-