Skip to content

Allow user to provide customized collection_name#2130

Closed
AICrafterZheng wants to merge 1 commit intomicrosoft:mainfrom
AICrafterZheng:users/dannyz/vector_store_custimized_collection
Closed

Allow user to provide customized collection_name#2130
AICrafterZheng wants to merge 1 commit intomicrosoft:mainfrom
AICrafterZheng:users/dannyz/vector_store_custimized_collection

Conversation

@AICrafterZheng
Copy link

@AICrafterZheng AICrafterZheng commented Nov 13, 2025

Description

By default, the index name in GraphRAG is constructed using below code:

return f"{container_name}-{embedding_name}".replace(".", "-")

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 #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).]

@AICrafterZheng AICrafterZheng requested a review from a team as a code owner November 13, 2025 01:16
@natoverse
Copy link
Collaborator

This is implemented as part of config updated in v3. See migration notebook for examples: https://github.com/microsoft/graphrag/blob/main/docs/examples_notebooks/index_migration_to_v3.ipynb

@natoverse natoverse closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants