Spaces:
Running
Running
Commit Β·
d6bfcc5
1
Parent(s): 21b1abb
modified phase0102 with page number display for nested knowledge markdown
Browse files
phase0102_chunker_aggregator_2.py
CHANGED
|
@@ -373,8 +373,8 @@ def export_visual_formats(final_data, timestamp):
|
|
| 373 |
|
| 374 |
# --- Uncoment the below to include the whole text - 'pages' - of the document in generated "nested_knowledge_xxxx" markdown and in json, useful in the case of short documents, articles, papers, etc. ---
|
| 375 |
#md_nested = f"# π VOLUME: {final_data['metadata']['pages']}\n"
|
| 376 |
-
md_nested = f"# π VOLUME: {final_data['metadata']['page_num']}\n"
|
| 377 |
-
|
| 378 |
md_nested += f"> {final_data['l3_volume']['content'] if final_data['l3_volume'] else 'N/A'}\n\n"
|
| 379 |
|
| 380 |
for l2 in final_data['l2_chapters']:
|
|
|
|
| 373 |
|
| 374 |
# --- Uncoment the below to include the whole text - 'pages' - of the document in generated "nested_knowledge_xxxx" markdown and in json, useful in the case of short documents, articles, papers, etc. ---
|
| 375 |
#md_nested = f"# π VOLUME: {final_data['metadata']['pages']}\n"
|
| 376 |
+
#md_nested = f"# π VOLUME: {final_data['metadata']['page_num']}\n"
|
| 377 |
+
md_nested = f"# π VOLUME SUMMARY\n"
|
| 378 |
md_nested += f"> {final_data['l3_volume']['content'] if final_data['l3_volume'] else 'N/A'}\n\n"
|
| 379 |
|
| 380 |
for l2 in final_data['l2_chapters']:
|