VolatileVectorStoreCollectionSearchMapping Class

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

public class VolatileVectorStoreCollectionSearchMapping

Provides methods to filter records based on a VectorSearchFilter.

Constructor Summary

Constructor Description
VolatileVectorStoreCollectionSearchMapping()

Method Summary

Modifier and Type Method and Description
static java.util.List<Record> filterRecords(List<Record> records, VectorSearchFilter filter, VectorStoreRecordDefinition recordDefinition, ObjectMapper objectMapper)

Filters the records based on the given VectorSearchFilter.

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

VolatileVectorStoreCollectionSearchMapping

public VolatileVectorStoreCollectionSearchMapping()

Method Details

filterRecords

public static List filterRecords(List records, VectorSearchFilter filter, VectorStoreRecordDefinition recordDefinition, ObjectMapper objectMapper)

Filters the records based on the given VectorSearchFilter.

Parameters:

records - The records to filter.
filter - The filter to apply.
recordDefinition - The record definition.
objectMapper - The object mapper.

Returns:

The filtered records.

Applies to