mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-26 14:38:30 +02:00
docs auto-sync
This commit is contained in:
@@ -511,13 +511,9 @@ client.recreate_collection(
|
|||||||
After upload is done, you can enable indexing by setting `indexing_threshold` to default value(20000):
|
After upload is done, you can enable indexing by setting `indexing_threshold` to default value(20000):
|
||||||
|
|
||||||
```http
|
```http
|
||||||
PUT /collections/{collection_name}
|
PATCH /collections/{collection_name}
|
||||||
|
|
||||||
{
|
{
|
||||||
"vectors": {
|
|
||||||
"size": 768,
|
|
||||||
"distance": "Cosine"
|
|
||||||
},
|
|
||||||
"optimizers_config": {
|
"optimizers_config": {
|
||||||
"indexing_threshold": 20000
|
"indexing_threshold": 20000
|
||||||
}
|
}
|
||||||
@@ -529,12 +525,11 @@ from qdrant_client import QdrantClient, models
|
|||||||
|
|
||||||
client = QdrantClient("localhost", port=6333)
|
client = QdrantClient("localhost", port=6333)
|
||||||
|
|
||||||
client.recreate_collection(
|
client.update_collection(
|
||||||
collection_name="{collection_name}",
|
collection_name="{collection_name}",
|
||||||
vectors_config=models.VectorParams(size=768, distance=models.Distance.COSINE),
|
optimizer_config=models.OptimizersConfigDiff(
|
||||||
optimizers_config=models.OptimizersConfigDiff(
|
indexing_threshold=20000
|
||||||
indexing_threshold=20000,
|
)
|
||||||
),
|
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user