Closed 0xDebabrata closed 1 year ago
Instead of creating a map between ID and an integer and saving and loading that from a file, make use of the postgres/sqlite db layer to maintain an auto incrementing integer primary key. Maintaining crucial info through files can get hinky with multithreading.
citrus only supports integer IDs at the moment because that's passed directly to HNSW. Add support for non-integer IDs by creating a map between each ID and an incrementing integer value which will serve as the HNSW label.