Class SimpleIndexConfig
java.lang.Object
com.tangosol.io.AbstractEvolvable
com.oracle.coherence.rag.config.AbstractConfig<Object>
com.oracle.coherence.rag.config.index.IndexConfig<Object>
com.oracle.coherence.rag.config.index.SimpleIndexConfig
- All Implemented Interfaces:
Evolvable,PortableObject
Configuration class for
SIMPLE vector indexing.
Simple index uses standard Coherence index on a vector field, in order to avoid chunk and vector deserialization when performing similarity search.
Unlike HnswIndex and BinaryQuantIndex, simple index cannot be
queried directly, and requires vector distance calculation to be performed
for each document chunk in the store. That means that it will always provide the
most accurate results, at the cost of performance.
Unless the store is fairly small, HnswIndex and BinaryQuantIndex
are better options for most use cases, abd should be preferred.
- Since:
- 25.09
- Author:
- Aleks Seovic 2025.06.28
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe implementation version for this class.static final StringThe type of the index this configuration is for. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new SimpleIndexConfig with default settings. -
Method Summary
Methods inherited from class com.oracle.coherence.rag.config.index.IndexConfig
equals, readExternal, writeExternalMethods inherited from class com.oracle.coherence.rag.config.AbstractConfig
apply, getDataVersionMethods inherited from class com.tangosol.io.AbstractEvolvable
getFutureData, setDataVersion, setFutureData
-
Field Details
-
TYPE
-
IMPLEMENTATION_VERSION
public static final int IMPLEMENTATION_VERSIONThe implementation version for this class.This version is used by Coherence POF for class evolution support. Increment this value when making incompatible changes to the class structure.
- See Also:
-
-
Constructor Details
-
SimpleIndexConfig
public SimpleIndexConfig()Constructs a new SimpleIndexConfig with default settings.Initializes the configuration with:
- Index type: "SIMPLE"
-
-
Method Details
-
type
Returns the type of the index this configuration is for.- Overrides:
typein classIndexConfig<Object>- Returns:
- the type of the index this configuration is for
-
hashCode
public int hashCode()- Overrides:
hashCodein classIndexConfig<Object>
-
toString
- Overrides:
toStringin classIndexConfig<Object>
-
getImplVersion
public int getImplVersion()Description copied from class:AbstractEvolvableDetermine the serialization version supported by the implementing class.- Specified by:
getImplVersionin interfaceEvolvable- Overrides:
getImplVersionin classIndexConfig<Object>- Returns:
- the serialization version supported by this object
-