Skip to content

Conversation

AICrafterZheng
Copy link

Description

The collection name is constructed with f"{container_name}-{embedding_name}".replace(".", "-")
But embedding_name is picked from one of:
https://github.com/microsoft/graphrag/blob/1da138061501aa4f8065d2e8783193e2cbe920b1/graphrag/config/embeddings.py#L6C1-L14C1

So for text_unit_text_embedding scenario, a collection name like test_text_unit_text will be generated (test is the container_name from config yaml). But in some cases, a user needs a full customized name e.g. test.

Related Issues

[Reference any related issues or tasks that this pull request addresses.]

Proposed Changes

Don't generated the collection_name if users provide one.

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 July 31, 2025 18:00
@AICrafterZheng AICrafterZheng force-pushed the users/dannyz/vector_store_custimized_collection_support branch from 11a1ac3 to 32f8f78 Compare July 31, 2025 18:01
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.

1 participant