graphrag
graphrag copied to clipboard
Added the "overwrite" parameter, which eliminates the need to rebuild the vector store each time.
Description
Add the "overwrite" parameter so that the vector store does not need to be rebuilt every time a query is made.
code example:
description_embedding_store = LanceDBVectorStore(
collection_name="entity_description_embeddings")
description_embedding_store.connect(db_uri=LANCEDB_URI)
entity_description_embeddings = dfs.store_entity_semantic_embeddings(
entities=[],
vectorstore=description_embedding_store,
overwrite=False
)
Related Issues
fix #1048
Proposed Changes
Function adds the "overwrite" parameter.
Checklist
- [x] I have tested these changes locally.
- [x] I have reviewed the code changes.
- [ ] I have updated the documentation (if necessary).
- [x] I have added appropriate unit tests (if applicable).