graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

Index API

Open dworthen opened this issue 1 year ago • 1 comments

Description

This PR pulls out the core library logic from the CLI layer into a dedicated API layer, useful for programmatic use cases. The CLI now calls out to the API layer.

Checklist

  • [x] I have tested these changes locally.
  • [x] I have reviewed the code changes.
  • [ ] I have updated the documentation (if necessary).
  • [ ] I have added appropriate unit tests (if applicable).

Additional Notes

[Add any additional notes or context that may be helpful for the reviewer(s).]

dworthen avatar Aug 16 '24 16:08 dworthen

Would it be possible to import API module into a custom python script to use it directly? If yes, could you please provide a simple example of how to do this?

(asking as barely a python expert, but interested in embedding graphrag as part of my custom python webserver)

gmile avatar Aug 19 '24 16:08 gmile

Is there a demo that can run this index API?

caster-Q avatar Aug 22 '24 06:08 caster-Q