From f0f460b8e871626ee0d20b4436dddb2e62197557 Mon Sep 17 00:00:00 2001 From: Michael Norris Date: Tue, 22 Apr 2025 18:29:16 -0700 Subject: [PATCH] Add RaBitQ to the swigfaiss so we can access its properties correctly in python Summary: can't use properly in notebooks without this. `index.code_size` will fail. Differential Revision: D73482034 --- faiss/python/swigfaiss.swig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/faiss/python/swigfaiss.swig b/faiss/python/swigfaiss.swig index 2236b399c3..67d903bd92 100644 --- a/faiss/python/swigfaiss.swig +++ b/faiss/python/swigfaiss.swig @@ -768,6 +768,8 @@ struct faiss::simd16uint16 {}; DOWNCAST ( IndexShardsIVF ) DOWNCAST2 ( IndexShards, IndexShardsTemplateT_faiss__Index_t ) DOWNCAST2 ( IndexReplicas, IndexReplicasTemplateT_faiss__Index_t ) + DOWNCAST ( IndexRaBitQ ) + DOWNCAST ( IndexIVFRaBitQ ) DOWNCAST ( IndexIVFIndependentQuantizer) DOWNCAST ( IndexIVFPQR ) DOWNCAST ( IndexIVFPQ )