fix and refactor python examples (#770)

* fix: fix points selector bugs, refactor code

* fix: fix and refactor embeddings

* fix: fix and refactor frameworks

* refactor: refactor guides

* fix: fix and refactor aleph-alpha tutorial

* fix: fix and refactor tutorials

* refactoring: refactor quick-start

* fix: address review comments

* fix: replace remaining host
This commit is contained in:
George
2024-04-03 13:17:45 +02:00
committed by GitHub
parent 5441805449
commit 92f8196651
38 changed files with 202 additions and 233 deletions
@@ -167,10 +167,9 @@ PUT /collections/{collection_name}
```
```python
from qdrant_client import QdrantClient
from qdrant_client.http import models
from qdrant_client import QdrantClient, models
client = QdrantClient("localhost", port=6333)
client = QdrantClient(url="http://localhost:6333")
client.create_collection(
collection_name="{collection_name}",
@@ -335,10 +334,9 @@ PUT /collections/{collection_name}
```
```python
from qdrant_client import QdrantClient
from qdrant_client.http import models
from qdrant_client import QdrantClient, models
client = QdrantClient("localhost", port=6333)
client = QdrantClient(url="http://localhost:6333")
client.create_collection(
collection_name="{collection_name}",
@@ -475,10 +473,9 @@ PUT /collections/{collection_name}
```
```python
from qdrant_client import QdrantClient
from qdrant_client.http import models
from qdrant_client import QdrantClient, models
client = QdrantClient("localhost", port=6333)
client = QdrantClient(url="http://localhost:6333")
client.create_collection(
collection_name="{collection_name}",
@@ -630,10 +627,9 @@ POST /collections/{collection_name}/points/search
```
```python
from qdrant_client import QdrantClient
from qdrant_client.http import models
from qdrant_client import QdrantClient, models
client = QdrantClient("localhost", port=6333)
client = QdrantClient(url="http://localhost:6333")
client.search(
collection_name="{collection_name}",
@@ -784,7 +780,7 @@ POST /collections/{collection_name}/points/search
```python
from qdrant_client import QdrantClient, models
client = QdrantClient("localhost", port=6333)
client = QdrantClient(url="http://localhost:6333")
client.search(
collection_name="{collection_name}",
@@ -923,7 +919,7 @@ PUT /collections/{collection_name}
```python
from qdrant_client import QdrantClient, models
client = QdrantClient("localhost", port=6333)
client = QdrantClient(url="http://localhost:6333")
client.create_collection(
collection_name="{collection_name}",
@@ -1077,7 +1073,7 @@ POST /collections/{collection_name}/points/search
```python
from qdrant_client import QdrantClient, models
client = QdrantClient("localhost", port=6333)
client = QdrantClient(url="http://localhost:6333")
client.search(
collection_name="{collection_name}",
@@ -1200,7 +1196,7 @@ PUT /collections/{collection_name}
```python
from qdrant_client import QdrantClient, models
client = QdrantClient("localhost", port=6333)
client = QdrantClient(url="http://localhost:6333")
client.create_collection(
collection_name="{collection_name}",