asking if collection exists and collection name with "/"
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 304
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 37
Description
Asking for to the client for a collection name with includes "/" in the name raises UnexpectedResponse. Can this be validated in the client site before calling the remote qdrant server ?
for example:
qdrant_client = QdrantClient(url="http://localhost:6333")
qdrant_client.collection_exists(
collection_name="example/collection1"
)
With make sense, since this implies a call to a remote API like "GET http://localhost:6333/collections/example/collection1/exists" with do not exists .. maybe it make sense to validate collection_name before calling the remote API. Or use some type of encoding to avoid this
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at QdrantClient.collection_exists and reproduce the example using the collection name "example/collection1". Determine whether the client should reject or encode slash-containing names before making the remote request, and verify that the chosen behavior prevents the UnexpectedResponse without breaking valid collection names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100