VolatileVectorStore Class

  • java.lang.Object
    • com.microsoft.semantickernel.data.VolatileVectorStore

Implements

public class VolatileVectorStore
implements VectorStore

Represents a volatile vector store. A volatile vector store is an in-memory vector store that does not persist data.

Constructor Summary

Constructor Description
VolatileVectorStore()

Creates a new instance of the volatile vector store.

Method Summary

Modifier and Type Method and Description
VectorStoreRecordCollection<Key,Record> <Key,Record>getCollection(String collectionName, VectorStoreRecordCollectionOptions<Key,Record> options)

Gets a collection from the vector store.

reactor.core.publisher.Mono<java.util.List<java.lang.String>> getCollectionNamesAsync()

Gets the names of all collections in the vector store.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

VolatileVectorStore

public VolatileVectorStore()

Creates a new instance of the volatile vector store.

Method Details

<Key,Record>getCollection

public VectorStoreRecordCollection getCollection(String collectionName, VectorStoreRecordCollectionOptions options)

Gets a collection from the vector store.

Parameters:

collectionName - The name of the collection.
options - The options for the collection.

Returns:

The collection.

getCollectionNamesAsync

public Mono> getCollectionNamesAsync()

Gets the names of all collections in the vector store.

Returns:

A list of collection names.

Applies to