Skip to content

Instantly share code, notes, and snippets.

@bsod90
Created August 3, 2019 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsod90/29654c6637170f11836f0940a6c1bb7b to your computer and use it in GitHub Desktop.
Save bsod90/29654c6637170f11836f0940a6c1bb7b to your computer and use it in GitHub Desktop.
state_dir = './search_data/'
faiss.write_index(
index,
os.path.join(state_dir, "faiss.index")
)
index = faiss.read_index(
os.path.join(state_dir, "faiss.index")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment