← Về thư mục
NotebookLM master-file repair pattern
Use this reference for large master files built from NotebookLM sources.
Durable lessons
- Batch by source index, usually 3 to 5 sources per batch.
- Verify both English and Vietnamese summaries before writing each batch.
- Detect corrupted Vietnamese text by scanning for mojibake markers such as
Ã, Ä, VÄ, and BÃ.
- Detect stale NotebookLM auth output by scanning for
Authentication Error, Authentication expired, and empty summary fields.
- Use source IDs from the Markdown line format
- **ID:** \...`. Do not assume plainID:` formatting.
- Prefer
stream: false for local router translation calls when complete JSON responses are more stable than stream parsing.
- If translation times out, reduce batch size and retry only the unconfirmed candidates.
- Write only after the whole batch passes validation.
Recommended validation checks
For each source block, confirm:
- one title line beginning with
###
- one ID line
- one keyword line
- one English summary line
- one Vietnamese summary line
- no authentication placeholder
- no mojibake markers
- no empty summary field
Workflow note
If the user asks to review only at the end, continue across batches and keep the final parent task blocked for one review. Do not block after every batch unless the user explicitly requests batch-by-batch approval.