Spaces:
Build error
Build error
Update config.py
Browse files
config.py
CHANGED
|
@@ -2,14 +2,14 @@ import os
|
|
| 2 |
from qdrant_client import QdrantClient
|
| 3 |
from qdrant_client.http.models import VectorParams, Distance
|
| 4 |
|
| 5 |
-
VECTOR_SIZE = 384
|
| 6 |
COLLECTION = "esg_vectors"
|
|
|
|
| 7 |
|
| 8 |
os.makedirs("qdrant_db", exist_ok=True)
|
| 9 |
|
| 10 |
client = QdrantClient(path="qdrant_db")
|
| 11 |
|
| 12 |
-
def
|
| 13 |
|
| 14 |
collections = [c.name for c in client.get_collections().collections]
|
| 15 |
|
|
@@ -23,4 +23,4 @@ def init_collection():
|
|
| 23 |
)
|
| 24 |
)
|
| 25 |
|
| 26 |
-
|
|
|
|
| 2 |
from qdrant_client import QdrantClient
|
| 3 |
from qdrant_client.http.models import VectorParams, Distance
|
| 4 |
|
|
|
|
| 5 |
COLLECTION = "esg_vectors"
|
| 6 |
+
VECTOR_SIZE = 512
|
| 7 |
|
| 8 |
os.makedirs("qdrant_db", exist_ok=True)
|
| 9 |
|
| 10 |
client = QdrantClient(path="qdrant_db")
|
| 11 |
|
| 12 |
+
def init():
|
| 13 |
|
| 14 |
collections = [c.name for c in client.get_collections().collections]
|
| 15 |
|
|
|
|
| 23 |
)
|
| 24 |
)
|
| 25 |
|
| 26 |
+
init()
|