Authentication
The Qdrant SDK uses API key authentication. You can obtain an API key from your Qdrant Cloud dashboard.
Basic Usage
1 2 3 | |
How It Works
Qdrant natively uses the api-key header for authentication. The SDK automatically converts the Bearer token to the api-key header format via a PrepareRequest hook, so you just pass your API key to the constructor.
Self-Hosted Instances
For self-hosted Qdrant instances, you can configure a custom base URL via HttpClient:
1 2 3 4 5 6 7 8 | |
If your self-hosted instance does not require authentication, you can pass an empty string as the API key.