Skip to content

Instantly share code, notes, and snippets.

@hamelsmu
Created May 27, 2018 04:50
Show Gist options
  • Save hamelsmu/0d9468333a103bdb3fbc91d772ab4891 to your computer and use it in GitHub Desktop.
Save hamelsmu/0d9468333a103bdb3fbc91d772ab4891 to your computer and use it in GitHub Desktop.
search_index = nmslib.init(method='hnsw', space='cosinesimil')
search_index.addDataPointBatch(numpy_vectors)
search_index.createIndex({'post': 2}, print_progress=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment