MrSimple07 commited on
Commit
2ba41b8
·
1 Parent(s): 37d6769

added chunk_text

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -256,7 +256,7 @@ def initialize_models():
256
 
257
  if not chunks_df.empty:
258
  log_message("📝 Создание документов...")
259
- documents = [Document(text=str(row['text']),
260
  metadata={"chunk_id": row.get('chunk_id', i), "document_id": row.get('document_id', 'unknown')})
261
  for i, (_, row) in enumerate(chunks_df.iterrows())]
262
 
 
256
 
257
  if not chunks_df.empty:
258
  log_message("📝 Создание документов...")
259
+ documents = [Document(text=str(row['chunk_text']),
260
  metadata={"chunk_id": row.get('chunk_id', i), "document_id": row.get('document_id', 'unknown')})
261
  for i, (_, row) in enumerate(chunks_df.iterrows())]
262