Interface VectorIndex<KeyType,ValueType,VectorType>

Type Parameters:
KeyType - the type of the cache keys
ValueType - the type of the cache values
VectorType - the type of the vector
All Superinterfaces:
MapIndex<KeyType,ValueType,VectorType>
All Known Implementing Classes:
BinaryQuantIndex.BinaryQuantMapIndex

public interface VectorIndex<KeyType,ValueType,VectorType> extends MapIndex<KeyType,ValueType,VectorType>
A custom MapIndex that maintains a vector search index.
  • Method Details

    • query

      BinaryQueryResult[] query(VectorType vector, int k, Filter<?> filter)
      Return the results of the query.
      Parameters:
      vector - the vector to use to perform the search
      k - the maximum number of results to return
      filter - an optional Filter to filter the returned results
      Returns:
      the search results