ppsingh commited on
Commit
7cab5c5
·
verified ·
1 Parent(s): 5f38389

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -7
README.md CHANGED
@@ -4,18 +4,19 @@ 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:
@@ -24,9 +25,12 @@ From your client application (e.g., your embedding microservice), use the `qdran
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
  ```
 
4
  colorFrom: gray
5
  colorTo: gray
6
  sdk: docker
7
+ app_port: 6333
8
+ short_description: Qdrant Vector Database Server
9
  ---
10
 
11
  # Qdrant Vector Database Server on Hugging Face Spaces
12
 
13
+ 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.
14
 
15
  **Persistence:** Data is stored persistently in the `/data/qdrant_data` directory due to enabled persistent storage.
16
 
17
  **Endpoints:**
18
+ * HTTP/REST API: Available at `https://giz-chatfed-qdrantserver.hf.space:6333`
19
+ * gRPC API: Available at `https://giz-chatfed-qdrantserver.hf.space:6334`
20
 
21
  **How to connect:**
22
  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:
 
25
  from qdrant_client import QdrantClient
26
 
27
  # Replace with your actual Space URL (e.g., [https://your-username-qdrant-server.hf.space](https://your-username-qdrant-server.hf.space))
28
+ QDRANT_HOST = "giz-chatfed-qdrantserver.hf.space"
29
  # Use port 6334 for gRPC or 6333 for HTTP REST (when connecting from client)
30
  # The app_port in README.md is just for HF's internal health check
31
+ client = QdrantClient(
32
+ host = QDRANT_HOST,
33
+ port=443, # very important that port to be used for python client
34
+ https=True,
35
+ api_key = <QDRANT_API_KEY>,)
36
  ```