Spaces:
Running
Running
Update semsearch.py
Browse files- semsearch.py +2 -2
semsearch.py
CHANGED
@@ -279,7 +279,7 @@ wpChunkCollection = client.collections.create_from_dict(class_obj)
|
|
279 |
|
280 |
###########################################################
|
281 |
# Create document and chunks objects in the database.
|
282 |
-
logger.info("#### Create page/doc
|
283 |
for i, className in enumerate(webpageDocNames):
|
284 |
title = webpageTitles[i]
|
285 |
logger.debug(f"## className, title: {className}, {title}")
|
@@ -293,7 +293,7 @@ for i, className in enumerate(webpageDocNames):
|
|
293 |
"content": page_content
|
294 |
}
|
295 |
)
|
296 |
-
|
297 |
# Insert the chunks for the document.
|
298 |
for i2, chunk in enumerate(webpageChunks[i]):
|
299 |
chunk_uuid = wpChunkCollection.data.insert(
|
|
|
279 |
|
280 |
###########################################################
|
281 |
# Create document and chunks objects in the database.
|
282 |
+
logger.info("#### Create page/doc db objects.")
|
283 |
for i, className in enumerate(webpageDocNames):
|
284 |
title = webpageTitles[i]
|
285 |
logger.debug(f"## className, title: {className}, {title}")
|
|
|
293 |
"content": page_content
|
294 |
}
|
295 |
)
|
296 |
+
logger.info("#### Create chunk db objects.")
|
297 |
# Insert the chunks for the document.
|
298 |
for i2, chunk in enumerate(webpageChunks[i]):
|
299 |
chunk_uuid = wpChunkCollection.data.insert(
|