ppsingh commited on
Commit
d99c065
·
verified ·
1 Parent(s): 25cc20f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -7
README.md CHANGED
@@ -1,11 +1,32 @@
1
  ---
2
- title: Qdrant Store
3
- emoji: 🏃
4
- colorFrom: indigo
5
- colorTo: indigo
6
  sdk: docker
7
- pinned: false
8
- short_description: qdrant vectorstore server
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Qdrant Vector Store Server
3
+ emoji: 🛠
4
+ colorFrom: gray
5
+ colorTo: gray
6
  sdk: docker
7
+ app_port: 6333 # <--- ADD/CHANGE THIS LINE!
 
8
  ---
9
 
10
+ # Qdrant Vector Database Server on Hugging Face Spaces
11
+
12
+ This Space hosts a Qdrant vector database instance.
13
+
14
+ **Persistence:** Data is stored persistently in the `/data/qdrant_data` directory due to enabled persistent storage.
15
+
16
+ **Endpoints:**
17
+ * HTTP/REST API: Available at `http://<your-space-url>:6333`
18
+ * gRPC API: Available at `http://<your-space-url>:6334`
19
+
20
+ **How to connect:**
21
+ 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:
22
+
23
+ ```python
24
+ from qdrant_client import QdrantClient
25
+
26
+ # Replace with your actual Space URL (e.g., [https://your-username-qdrant-server.hf.space](https://your-username-qdrant-server.hf.space))
27
+ QDRANT_SPACE_URL = "[https://your-username-qdrant-server.hf.space](https://your-username-qdrant-server.hf.space)"
28
+ # Use port 6334 for gRPC or 6333 for HTTP REST (when connecting from client)
29
+ # The app_port in README.md is just for HF's internal health check
30
+ client = QdrantClient(host=QDRANT_SPACE_URL, port=6334)
31
+ # OR client = QdrantClient(url=f"http://{QDRANT_SPACE_URL}:6333") if using HTTP/REST
32
+ ```