Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
5178a70
1
Parent(s):
f45277d
debug
Browse files
app.py
CHANGED
@@ -214,7 +214,7 @@ try:
|
|
214 |
st.session_state.wpCollection = wpCollection
|
215 |
logger.info("#### createWebpageCollection() exited.")
|
216 |
else:
|
217 |
-
wpCollection = client.
|
218 |
|
219 |
|
220 |
if not client.collections.exists("Chunks"):
|
@@ -231,7 +231,7 @@ try:
|
|
231 |
},
|
232 |
"vectorIndexType": "hnsw",
|
233 |
"vectorIndexConfig": {
|
234 |
-
"distance": "
|
235 |
},
|
236 |
"properties": [
|
237 |
{
|
@@ -269,7 +269,7 @@ try:
|
|
269 |
st.session_state.wpChunkCollection = wpChunkCollection
|
270 |
logger.info("#### createChunksCollection() exited.")
|
271 |
else:
|
272 |
-
wpChunksCollection = client.
|
273 |
|
274 |
|
275 |
|
|
|
214 |
st.session_state.wpCollection = wpCollection
|
215 |
logger.info("#### createWebpageCollection() exited.")
|
216 |
else:
|
217 |
+
wpCollection = client.collections.get("Documents")
|
218 |
|
219 |
|
220 |
if not client.collections.exists("Chunks"):
|
|
|
231 |
},
|
232 |
"vectorIndexType": "hnsw",
|
233 |
"vectorIndexConfig": {
|
234 |
+
"distance": "cosin
|
235 |
},
|
236 |
"properties": [
|
237 |
{
|
|
|
269 |
st.session_state.wpChunkCollection = wpChunkCollection
|
270 |
logger.info("#### createChunksCollection() exited.")
|
271 |
else:
|
272 |
+
wpChunksCollection = client.collections.get("Chunks")
|
273 |
|
274 |
|
275 |
|