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 int
The implementation version for this class.static final String
The 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, writeExternal
Methods inherited from class com.oracle.coherence.rag.config.AbstractConfig
apply, getDataVersion
Methods 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:
type
in classIndexConfig<Object>
- Returns:
- the type of the index this configuration is for
-
hashCode
public int hashCode()- Overrides:
hashCode
in classIndexConfig<Object>
-
toString
- Overrides:
toString
in classIndexConfig<Object>
-
getImplVersion
public int getImplVersion()Description copied from class:AbstractEvolvable
Determine the serialization version supported by the implementing class.- Specified by:
getImplVersion
in interfaceEvolvable
- Overrides:
getImplVersion
in classIndexConfig<Object>
- Returns:
- the serialization version supported by this object
-