Udostępnij przez


VectorSearchCompressionRescoreStorageMethod Class

public final class VectorSearchCompressionRescoreStorageMethod
extends ExpandableStringEnum<VectorSearchCompressionRescoreStorageMethod>

The storage method for the original full-precision vectors used for rescoring and internal index operations.

Field Summary

Modifier and Type Field and Description
static final VectorSearchCompressionRescoreStorageMethod DISCARD_ORIGINALS

This option discards the original full-precision vectors.

static final VectorSearchCompressionRescoreStorageMethod PRESERVE_ORIGINALS

This option preserves the original full-precision vectors.

Constructor Summary

Constructor Description
VectorSearchCompressionRescoreStorageMethod()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorSearchCompressionRescoreStorageMethod value.

Method Summary

Modifier and Type Method and Description
static VectorSearchCompressionRescoreStorageMethod fromString(String name)

Creates or finds a VectorSearchCompressionRescoreStorageMethod from its string representation.

static Collection<VectorSearchCompressionRescoreStorageMethod> values()

Gets known VectorSearchCompressionRescoreStorageMethod values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISCARD_ORIGINALS

public static final VectorSearchCompressionRescoreStorageMethod DISCARD_ORIGINALS

This option discards the original full-precision vectors. Choose this option for maximum storage savings. Since this option does not allow for rescoring and oversampling, it will often cause slight to moderate reductions in quality.

PRESERVE_ORIGINALS

public static final VectorSearchCompressionRescoreStorageMethod PRESERVE_ORIGINALS

This option preserves the original full-precision vectors. Choose this option for maximum flexibility and highest quality of compressed search results. This consumes more storage but allows for rescoring and oversampling.

Constructor Details

VectorSearchCompressionRescoreStorageMethod

@Deprecated
public VectorSearchCompressionRescoreStorageMethod()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorSearchCompressionRescoreStorageMethod value.

Method Details

fromString

public static VectorSearchCompressionRescoreStorageMethod fromString(String name)

Creates or finds a VectorSearchCompressionRescoreStorageMethod from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding VectorSearchCompressionRescoreStorageMethod.

values

public static Collection<VectorSearchCompressionRescoreStorageMethod> values()

Gets known VectorSearchCompressionRescoreStorageMethod values.

Returns:

known VectorSearchCompressionRescoreStorageMethod values.

Applies to