Skip to content

Instantly share code, notes, and snippets.

@bsod90
Created August 3, 2019 21:44
Show Gist options
  • 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