← Về thư mục
📄 / / root / .hermes / skills / data-science / kb-data-pipeline / SKILL.md

name: kb-data-pipeline description: Workflow for extracting, translating, and integrating AI-generated summaries (e.g., from NotebookLM) into structured master markdown files for a knowledge base.


KB Data Ingestion Pipeline

This skill governs the process of moving data from external AI sources into the company knowledge base, specifically when dealing with large volumes of summaries that require translation and strict formatting.

Workflow

  1. Authentication Check: Ensure the source tool (e.g., NotebookLM) is authenticated. Use nlm login or a revive script.
  2. Candidate Identification: Scan the master file for entries needing repair:
  3. Missing English summary.
  4. Missing Vietnamese summary.
  5. "Authentication Error" or "Authentication expired" markers.
  6. Corrupted text (mojibake) in Vietnamese (e.g., characters like Ã, Ä).
  7. Strict Batch Processing:
  8. Process sources in small batches (3-5 items).
  9. Retrieve: Get the latest English summary from the source.
  10. Translate: Translate to Vietnamese using a stable LLM provider.
  11. Internal Validation: Verify that BOTH English and Vietnamese summaries are present and valid before writing the batch to disk.
  12. Atomic Write: Only write the batch to the master file if every item in that batch passed validation. This prevents "half-fixed" states and file corruption.
  13. Final Review: Do not mark the task as done after individual batches. Run the entire pipeline, then leave the task in blocked status for a final human audit of the full file.

Technical Implementation Details

LLM Translation (Local Providers)

Data Extraction

Support Files

Pitfalls & Guardrails