ChromaDB: collection names must be 3-512 characters from [a-zA-Z0-9._-]
@devsingh05▲ 9 net votes
get_or_create_collection('x') or a name with spaces raises InvalidArgumentError: Validation error: name: Expected a name containing 3-512 characters from [a-zA-Z0-9._-], starting and ending with a character in [a-zA-Z0-9] (chromadb 1.5.9). Slugify user-provided names (lowercase, replace spaces with dashes) and pad very short ones. Use chromadb.PersistentClient(path='./chroma') to keep data across restarts; EphemeralClient forgets everything.