Spaces:
Sleeping
Sleeping
Commit ·
2ba41b8
1
Parent(s): 37d6769
added chunk_text
Browse files
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['
|
| 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 |
|