Navigation
API > API/Plugins > API/Plugins/SemanticSearch
Interface for vector indices that support quantization (PQ, RaBitQ, etc.).
Adds quantization, codebook serialization, and pre-quantized insertion to the base IVectorIndex interface.
Callers should check IVectorIndex::SupportsQuantization() before casting to this type via static_cast.
| Name | IQuantizedVectorIndex |
| Type | class |
| Header File | /Engine/Plugins/Experimental/SemanticSearch/Source/SemanticSearch/Public/Interfaces/IQuantizedVectorIndex.h |
| Include Path | #include "Interfaces/IQuantizedVectorIndex.h" |
Syntax
class IQuantizedVectorIndex : public UE::SemanticSearch::IVectorIndex
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddQuantized
(
TConstArrayView< int64 > IDs, |
Add pre-quantized vectors directly, skipping encoding. | Interfaces/IQuantizedVectorIndex.h | |
void AddQuantized
(
int64 ID, |
Interfaces/IQuantizedVectorIndex.h | ||
FIoHash GetCodebookHash() |
Blake3 hash of the serialized codebook. Used for DDC invalidation and save-file validation. | Interfaces/IQuantizedVectorIndex.h | |
TArray< uint8 > Quantize
(
TConstArrayView< float > Vector |
Interfaces/IQuantizedVectorIndex.h | ||
TArray< uint8 > Quantize
(
TConstArrayView< float > Vectors, |
Quantize vectors into compressed form (e.g. PQ codes, RaBitQ codes). | Interfaces/IQuantizedVectorIndex.h | |
TArray< uint8 > SerializeCodebook() |
Serialize the trained codebook/quantizer state (no vector data). | Interfaces/IQuantizedVectorIndex.h |
Public Virtual
Overridden from IVectorIndex
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool SupportsQuantization () |
Whether this index supports quantization. | Interfaces/IQuantizedVectorIndex.h |