qdrant/qdrant-web-ui

Uploading a snapshot via UI does not support dots in collection name

cccs-eric opened this issue · 1 comments

When uploading a snapshot via the Qdrant dashboard (UI), the UI will refuse any collection name that includes a dot [.].

Current Behavior

See the following screenshot:
image
But it is possible to create a collection name that includes a dot using the Python SDK for example:

qdrant_client.create_collection(
                collection_name="dotted.name",
                vectors_config=VectorParams(size=1536, distance=Distance.COSINE),
            )

Steps to Reproduce

Expected Behavior

I would expact the UI to allow names with dots.

Possible Solution

The following REGEX seems to be used to validate collection names. Maybe it should be modified to allow dots.

Context (Environment)

Qdrant v1.8.2

Detailed Description

Possible Implementation

A collection name with dots should be supported, correct.

This function shows what names we support. It should also be between 1 and 255 characters in length: https://github.com/qdrant/qdrant/blob/acb04d5f0d22b46a756b31c0fc507336a0451c15/lib/common/common/src/validation.rs#L52-L69