GirishaBuilds01 commited on
Commit
37156ae
·
verified ·
1 Parent(s): 386ef0b

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +3 -3
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 init_collection():
13
 
14
  collections = [c.name for c in client.get_collections().collections]
15
 
@@ -23,4 +23,4 @@ def init_collection():
23
  )
24
  )
25
 
26
- init_collection()
 
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()