chroma
chroma copied to clipboard
UUIDs and Strings
In several places, we convert UUID objects back and forth from and to strings. This isn't great, and it's hard to keep track of what they should be, when.
We should add types to make sure they are what we expect, and then refactor to try to do this conversion as little as possible, or preferably, not at all.
An example: https://github.com/chroma-core/chroma/blob/ddaabebd7570f4006a6990023a51fcb0c7ba7301/chromadb/api/local.py#L115
It's ambiguous here what type collection_uuid should be.
@levand I believe we are addressing this as a part of the refactor? Should we keep it open or close it?
This will be handled in the refactor, not urgent until then.
Great! Will leave this open then.
This will be handled in the refactor, not urgent until then.
Refactor has landed! Closing this issue.