Created
January 23, 2022 12:20
-
-
Save davidmezzetti/85e295f6ab1f0231e9cec8e0eb11edfb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save index as tar.xz | |
embeddings.save("index.tar.xz") | |
#tar -tvJf index.tar.xz | |
#echo | |
#xz -l index.tar.xz | |
#echo | |
# Reload index | |
embeddings.load("index.tar.xz") | |
# Test search | |
embeddings.search("lucky guy", 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment