Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 1,402 Bytes
16735e3 d99c065 16735e3 7cab5c5 16735e3 d99c065 7cab5c5 d99c065 7cab5c5 d99c065 7cab5c5 d99c065 7cab5c5 d99c065 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
---
title: Qdrant Vector Store Server
emoji: 🛠
colorFrom: gray
colorTo: gray
sdk: docker
app_port: 6333
short_description: Qdrant Vector Database Server
---
# Qdrant Vector Database Server on Hugging Face Spaces
This Space hosts a Qdrant vector database instance. This is just a Infrastructural component and doesnt not serve any user application through its User Interface.
**Persistence:** Data is stored persistently in the `/data/qdrant_data` directory due to enabled persistent storage.
**Endpoints:**
* HTTP/REST API: Available at `https://giz-chatfed-qdrantserver.hf.space:6333`
* gRPC API: Available at `https://giz-chatfed-qdrantserver.hf.space:6334`
**How to connect:**
From your client application (e.g., your embedding microservice), use the `qdrant-client` with the host set to your Space's direct URL and the appropriate port:
```python
from qdrant_client import QdrantClient
# Replace with your actual Space URL (e.g., [https://your-username-qdrant-server.hf.space](https://your-username-qdrant-server.hf.space))
QDRANT_HOST = "giz-chatfed-qdrantserver.hf.space"
# Use port 6334 for gRPC or 6333 for HTTP REST (when connecting from client)
# The app_port in README.md is just for HF's internal health check
client = QdrantClient(
host = QDRANT_HOST,
port=443, # very important that port to be used for python client
https=True,
api_key = <QDRANT_API_KEY>,)
``` |