File size: 567 Bytes
e454383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pathlib import Path
from typing import List


def build_graphrag(selected_files: List[Path], output_dir: Path) -> Path:
    """Placeholder GraphRAG build.



    For now it just writes a manifest enumerating selected files.

    Replace with actual GraphRAG pipeline integration.

    """
    output_dir.mkdir(parents=True, exist_ok=True)
    manifest = output_dir / "graphrag_manifest.txt"
    manifest.write_text(
        "GraphRAG Build\nFiles:\n" + "\n".join(str(p) for p in selected_files),
        encoding="utf-8"
    )
    return output_dir