ppsingh's picture
Update README.md
d99c065 verified
|
raw
history blame
1.27 kB
metadata
title: Qdrant Vector Store Server
emoji: 🛠
colorFrom: gray
colorTo: gray
sdk: docker
app_port: 6333

Qdrant Vector Database Server on Hugging Face Spaces

This Space hosts a Qdrant vector database instance.

Persistence: Data is stored persistently in the /data/qdrant_data directory due to enabled persistent storage.

Endpoints:

  • HTTP/REST API: Available at http://<your-space-url>:6333
  • gRPC API: Available at http://<your-space-url>: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:

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_SPACE_URL = "[https://your-username-qdrant-server.hf.space](https://your-username-qdrant-server.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_SPACE_URL, port=6334)
# OR client = QdrantClient(url=f"http://{QDRANT_SPACE_URL}:6333") if using HTTP/REST