title: How to store FAISS IndexFlatL2 Object for further usage in other modules?
body: <p>I am building a schematic search model for a large corpus of data using FAISS library.
  For the searching operation I am using the &quot;IndexFlatL2&quot; method in the FAISS library, which in background uses the Euclidean distance for finding the nearest neighbor. The python implementation is as shown.</p>
  <pre><code>import faiss as fs
  fs_index = fs.IndexFlatL2(768)
  fs_index.add(train_embeddings)
  D,I = fs_index.search(query,k=1)
  </code></pre>
  <p>Now, I am trying to store the fs_index object as model file (i.e. like traditional ML model pickle or joblib file) so that I can use the same file for prediction of other queries in the other modules/other packages.</p>
  <p>So, Is there a way to store this index object as joblib/pickle file for further use of this model in anyother place as required?</p>
  <p>Thanks in Advance</p>