Abhilashvj commited on
Commit
aab8068
1 Parent(s): 641a396

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -236,7 +236,10 @@ if len(ALL_FILES) > 0:
236
  if len(res) > 0:
237
  embeds = [record["embedding"] for record in res["data"]]
238
  # get metadata
239
- meta = [doc.meta for doc in docs[i:i_end]]
 
 
 
240
  # create unique IDs
241
  ids = [doc.id for doc in docs[i:i_end]]
242
  # add all to upsert list
 
236
  if len(res) > 0:
237
  embeds = [record["embedding"] for record in res["data"]]
238
  # get metadata
239
+ meta = []
240
+ for doc in docs[i:i_end]:
241
+ meta_dict = doc.meta
242
+ meta_dict["text"] = doc.content
243
  # create unique IDs
244
  ids = [doc.id for doc in docs[i:i_end]]
245
  # add all to upsert list