test / _backend /cli /graphrag_builder.py
aiioe's picture
Automated build & deploy
e454383 verified
Raw History Blame Contribute Delete
567 Bytes
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