* v1.0

* docs auto-sync

---------

Co-authored-by: qdrant <qdrant@users.noreply.github.com>
This commit is contained in:
Andrey Vasnetsov
2023-02-08 11:45:20 +01:00
committed by GitHub
co-authored by qdrant
parent d01daec3c9
commit dc6512ce37
9 changed files with 327 additions and 108 deletions
@@ -60,6 +60,46 @@ Default parameters for the optional collection parameters are defined in [config
See [schema definitions](https://qdrant.github.io/qdrant/redoc/index.html#operation/create_collection) and a [configuration file](https://github.com/qdrant/qdrant/blob/master/config/config.yaml) for more information about collection parameters.
### Create collection from another collection
*Available since v1.0.0*
It is possible to initialize a collection from another existing collection.
This might be useful for experimenting quickly with different configurations for the same data set.
Make sure the vectors have the same size and distance function when setting up the vectors configuration in the new collection.
```http
PUT /collections/{collection_name}
{
"name": "example_collection",
"vectors": {
"size": 300,
"distance": "Cosine"
},
"init_from": {
"collection": {from_collection_name}
}
}
```
```python
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client.recreate_collection(
collection_name="{collection_name}",
vectors_config=models.VectorParams(size=100, distance=models.Distance.COSINE),
init_from=models.InitFrom(
collection={from_collection_name}
)
)
```
### Collection with multiple vectors
*Available since v0.10.0*
@@ -309,3 +349,33 @@ POST /collections/aliases
]
}
```
### List collection aliases
```http
GET /collections/{collection_name}/aliases
```
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client.list_collection_aliases(
collection_name="{collection_name}"
)
```
### List all aliases
```http
GET /aliases
```
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client.list_aliases()
```