Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
| 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>,) | |
| ``` |