Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
d2928dd
1
Parent(s):
6ea395c
fdsa
Browse files- semsearch.py +12 -1
semsearch.py
CHANGED
@@ -314,7 +314,18 @@ webpageChunks = []
|
|
314 |
webpageTitles = []
|
315 |
webpageChunksDocNames = []
|
316 |
|
317 |
-
connectToWeaviateDB()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
readParseChunkFiles()
|
319 |
wpCollection = createWebpageCollection()
|
320 |
wpChunkCollection = createChunksCollection()
|
|
|
314 |
webpageTitles = []
|
315 |
webpageChunksDocNames = []
|
316 |
|
317 |
+
#connectToWeaviateDB()
|
318 |
+
logger.info("#### Create Weaviate db client connection.")
|
319 |
+
client = weaviate.connect_to_custom(
|
320 |
+
http_host="127.0.0.1",
|
321 |
+
http_port=8080,
|
322 |
+
http_secure=False,
|
323 |
+
grpc_host="127.0.0.1",
|
324 |
+
grpc_port=50051,
|
325 |
+
grpc_secure=False
|
326 |
+
)
|
327 |
+
client.connect()
|
328 |
+
|
329 |
readParseChunkFiles()
|
330 |
wpCollection = createWebpageCollection()
|
331 |
wpChunkCollection = createChunksCollection()
|