Files
saqel/backend/scripts/ingest_physics_unit2.php
T

18 lines
622 B
PHP

<?php
require_once __DIR__ . '/../app/bootstrap.php';
require_once __DIR__ . '/curriculum_markdown_parser.php';
$metadata = [
'grade_name' => 'الصف العاشر الأساسي (Grade 10)',
'grade_key' => 'grade_10',
'subject_name' => 'الفيزياء (Physics 10)',
'subject_key' => 'physics_10',
'semester_name' => 'الفصل الدراسي الأول',
'semester_key' => 'semester_1'
];
$u2 = file_get_contents(__DIR__ . '/unit2_physics_full.md');
$res = parseAndIngestTextbookMarkdown($u2, $metadata);
echo "SUCCESS! Ingested Grade 10 Physics Unit 2 (Motion and Forces)!\n";