MVPilgrim commited on
Commit
5178a70
·
1 Parent(s): f45277d
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -214,7 +214,7 @@ try:
214
  st.session_state.wpCollection = wpCollection
215
  logger.info("#### createWebpageCollection() exited.")
216
  else:
217
- wpCollection = client.get_collection("Documents")
218
 
219
 
220
  if not client.collections.exists("Chunks"):
@@ -231,7 +231,7 @@ try:
231
  },
232
  "vectorIndexType": "hnsw",
233
  "vectorIndexConfig": {
234
- "distance": "cosine",
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.get_collection("Chunks")
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