When using faiss-cpu with Python 3.12, there are deprecation warnings from SWIG about builtin types not having module attributes:
<frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyPacked has no __module__ attribute
<frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyObject has no __module__ attribute
<frozen importlib._bootstrap>:488: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
This is a known issue in SWIG being tracked in swig/swig#2881. The warnings appear because SWIG is not setting the module attribute on its builtin types.
Once SWIG 4.4 is released with the fix, faiss should update to use the newer SWIG version to resolve these warnings.