voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Add StringIndex support in Python/C++

Open markkohdev opened this issue 1 year ago • 2 comments

The java bindings currently support a StringIndex class which wraps the Index class but adds a mapping of strings to index integer IDs. This is a handy piece of functionality which would be beneficial and should be fairly straightforward to implement in the Python bindings

markkohdev avatar Jun 21 '23 19:06 markkohdev

Additionally, we should support string index containment checking with this python StringIndex as well so that we can write things like

if "some-string-key" in my_index:
  # Do something

markkohdev avatar Jun 21 '23 19:06 markkohdev

cc @Ibrokhimsadikov

markkohdev avatar Jul 01 '24 14:07 markkohdev