denselinkage.core.ports.VectorIndex¶
- class denselinkage.core.ports.VectorIndex(*args, **kwargs)[source]¶
Bases:
ProtocolSpec for a vector-index backend — stateless and reusable.
Holds no vectors, only the configuration of which index to build.
buildis a factory (cf.Trainer, “a factory, not a fit”): it returns a fresh populatedSearchableIndexand mutates neitherselfnor its arguments, so one spec safely builds many artifacts over different datasets.