docs auto-sync

This commit is contained in:
qdrant
2023-02-24 10:07:52 +00:00
parent faad182279
commit 94c25d96e6
7 changed files with 26 additions and 26 deletions
@@ -45,7 +45,7 @@ Examples with clients
from qdrant_client import QdrantClient
qdrant_client = QdrantClient(
host="xyz-example.eu-central.aws.staging-cloud.qdrant.io",
"xyz-example.eu-central.aws.staging-cloud.qdrant.io",
prefer_grpc=True,
api_key="<<-provide-your-own-key->>",
)
@@ -40,7 +40,7 @@ PUT /collections/{collection_name}
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.recreate_collection(
collection_name="{collection_name}",
@@ -89,7 +89,7 @@ PUT /collections/{collection_name}
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.recreate_collection(
collection_name="{collection_name}",
@@ -131,7 +131,7 @@ PUT /collections/{collection_name}
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.recreate_collection(
collection_name="{collection_name}",
@@ -174,7 +174,7 @@ PATCH /collections/{collection_name}
client.update_collection(
collection_name="{collection_name}",
optimizer_config=models.OptimizersConfigDiff(
max_segment_size=10000
indexing_threshold=10000
)
)
```
@@ -359,7 +359,7 @@ GET /collections/{collection_name}/aliases
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.list_collection_aliases(
collection_name="{collection_name}"
@@ -375,7 +375,7 @@ GET /aliases
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.list_aliases()
```
@@ -145,7 +145,7 @@ PUT /collections/{collection_name}
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.recreate_collection(
name="{collection_name}",
@@ -221,7 +221,7 @@ PUT /collections/{collection_name}
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.recreate_collection(
name="{collection_name}",
@@ -381,7 +381,7 @@ PUT /collections/{collection_name}
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.recreate_collection(
name="{collection_name}",
@@ -79,7 +79,7 @@ PUT /collections/{collection_name}/points
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.upsert(
collection_name="{collection_name}",
@@ -83,7 +83,7 @@ curl -X PUT 'http://localhost:6333/collections/test_collection' \
from qdrant_client import QdrantClient
from qdrant_client.http.models import Distance, VectorParams
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.recreate_collection(
collection_name="test_collection",
vectors_config=VectorParams(size=4, distance=Distance.DOT),
@@ -85,7 +85,7 @@ POST /collections/{collection_name}/points/search
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.search(
collection_name="{collection_name}",
@@ -156,7 +156,7 @@ POST /collections/{collection_name}/points/search
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.search(
collection_name="{collection_name}",
@@ -219,7 +219,7 @@ POST /collections/{collection_name}/points/search
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.search(
collection_name="{collection_name}",
@@ -287,7 +287,7 @@ POST /collections/{collection_name}/points/search/batch
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
filter = models.Filter(
must=[
@@ -382,7 +382,7 @@ POST /collections/{collection_name}/points/recommend
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.recommend(
collection_name="{collection_name}",
@@ -492,7 +492,7 @@ POST /collections/{collection_name}/points/recommend/batch
from qdrant_client import QdrantClient
from qdrant_client.http import models
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
filter = models.Filter(
must=[
@@ -570,7 +570,7 @@ POST /collections/{collection_name}/points/search
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.search(
collection_name="{collection_name}",
@@ -30,7 +30,7 @@ POST /collections/{collection_name}/snapshots
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.create_snapshot(
collection_name="{collection_name}"
@@ -50,7 +50,7 @@ DELETE /collections/{collection_name}/snapshots/{snapshot_name}
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.delete_snapshot(
collection_name="{collection_name}",
@@ -69,7 +69,7 @@ GET /collections/{collection_name}/snapshots
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.list_snapshots(
collection_name="{collection_name}"
@@ -128,7 +128,7 @@ PUT /collections/<collection_name>/snapshots/recover
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="qdrant-node-2", port=6333)
client = QdrantClient("qdrant-node-2", port=6333)
client.recover_snapshot("collection_name", "http://qdrant-node-1:6333/collections/collection_name/snapshots/snapshot-2022-10-10.shapshot")
```
@@ -152,7 +152,7 @@ POST /snapshots
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.create_full_snapshot()
```
@@ -168,7 +168,7 @@ DELETE /snapshots/{snapshot_name}
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.delete_full_snapshot(
snapshot_name="{snapshot_name}"
@@ -184,7 +184,7 @@ GET /snapshots
```python
from qdrant_client import QdrantClient
client = QdrantClient(host="localhost", port=6333)
client = QdrantClient("localhost", port=6333)
client.list_full_snapshots()
```