← Back to context

Comment by stephantul

3 days ago

Just out of interest: why is every python file prefixed with an underscore? I’ve never seen it before. Is it to avoid collisions with package imports? e.g. “types”

It is to mark the package as private (in the sense that for normal usage you shouldn't need it). We are still writing the documentation on how to customize every little bit of the graph construction and querying pipeline, once that is ready we will expose the right tools (and files) for all of that :) For now just go with `from fast_graphrag import GraphRAG` and you should be good to go :)

It’s the standard practice of noting internal/implementation details. Users should stick with the public api exported in __init__.

  • Interesting, thanks! I’ve seen it for importable stuff but never for modules.

    I guess I’m getting old