mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-02 01:18:30 +02:00
removed all python-dotenv and just let dev load from env, assuming they know variables have to be exported beforehand
This commit is contained in:
@@ -42,9 +42,7 @@ To connect to Qdrant Cloud, you need your cluster URL and API key from your Qdra
|
||||
|
||||
```python
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
client = QdrantClient(url=os.getenv("QDRANT_URL"), api_key=os.getenv("QDRANT_API_KEY"))
|
||||
|
||||
# For Colab:
|
||||
|
||||
@@ -29,7 +29,7 @@ A working search system with:
|
||||
### Prerequisites
|
||||
- Qdrant Cloud cluster (URL + API key)
|
||||
- Python 3.9+ (or Colab)
|
||||
- Required packages: `qdrant-client`, `python-dotenv`.
|
||||
- Required packages: `qdrant-client`.
|
||||
|
||||
### Models
|
||||
- None. We will create vectors by hand.
|
||||
@@ -52,9 +52,7 @@ For this tutorial, we'll use the **Product Categories** concept.
|
||||
```python
|
||||
from qdrant_client import QdrantClient, models
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
client = QdrantClient(url=os.getenv("QDRANT_URL"), api_key=os.getenv("QDRANT_API_KEY"))
|
||||
|
||||
# For Colab:
|
||||
|
||||
@@ -99,14 +99,12 @@ QDRANT_URL=https://YOUR-CLUSTER.cloud.qdrant.io:6333
|
||||
QDRANT_API_KEY=YOUR_API_KEY
|
||||
```
|
||||
|
||||
Load the credentials with `dotenv` and create a Qdrant client:
|
||||
Load the credentials from the environment and create a Qdrant client:
|
||||
|
||||
```python
|
||||
from qdrant_client import QdrantClient, models
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
client = QdrantClient(url=os.getenv("QDRANT_URL"), api_key=os.getenv("QDRANT_API_KEY"))
|
||||
|
||||
# For Colab:
|
||||
|
||||
Reference in New Issue
Block a user