Allow user to provide customized collection_name
Description
By default, the index name in GraphRAG is constructed using below code: https://github.com/microsoft/graphrag/blob/fdb7e3835badc483f50605db476d8636aeea7156/graphrag/config/embeddings.py#L48
However, in some cases, users may want to connect GraphRAG to an existing embedding index rather than having GraphRAG generate a new one automatically. This PR adds support for specifying a custom index name, enabling seamless integration with existing embedding stores.
Note: this is a reopened pr. Please see details in the closed pr https://github.com/microsoft/graphrag/pull/2016
Related Issues
[Reference any related issues or tasks that this pull request addresses.]
Proposed Changes
[List the specific changes made in this pull request.]
Checklist
- [ ] I have tested these changes locally.
- [ ] 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).]