![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.semantickernel.data.vectorstorage.definition.IndexKind Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semantickernel-api Show documentation
Show all versions of semantickernel-api Show documentation
Defines the public interface for the Semantic Kernel
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.data.vectorstorage.definition;
/**
* Represents the kind of index to use for a vector store.
*/
public enum IndexKind {
/**
* Hierarchical Navigable Small World, which performs an approximate nearest neighbour (ANN) search.
*/
HNSW("Hnsw"),
/**
* Flat index, which performs an exact nearest neighbour search.
* Also referred to as exhaustive k nearest neighbor in some databases.
* High recall accuracy, but slower and more expensive than HNSW.
* Better with smaller datasets.
*/
FLAT("Flat"),
/**
* Inverted file index, which performs an approximate nearest neighbour (ANN) search.
*/
IVFFLAT("IVFFlat"),
/**
* No index specified. It will default to the database's default index.
*/
UNDEFINED(null);
private final String value;
IndexKind(String value) {
this.value = value;
}
/**
* Gets the string value of the index kind.
*
* @return the string value of the index kind
*/
public String getValue() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy