Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update README.md
Browse files
README.md
CHANGED
@@ -4,18 +4,19 @@ emoji: 🛠
|
|
4 |
colorFrom: gray
|
5 |
colorTo: gray
|
6 |
sdk: docker
|
7 |
-
app_port: 6333
|
|
|
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 `
|
18 |
-
* gRPC API: Available at `
|
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 |
-
|
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(
|
31 |
-
|
|
|
|
|
|
|
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 |
```
|