Find answers from the community

Updated 8 months ago

Hi, I am working with the Weaviate

Hi, I am working with the Weaviate integration. Can you please tell me how to delete an index from the store?

If I am not mistaken, WeaviateVectoreStore creates a Weaviate class in the background (https://github.com/run-llama/llama_index/blob/7b52057b717451a801c583fae7efe4c4ad167455/llama-index-legacy/llama_index/legacy/vector_stores/weaviate_utils.py#L90). If that is true, then we can delete an index like this right?

weaviate_client.schema.delete_class(index_name)

Source: https://weaviate.io/developers/weaviate/manage-data/collections#delete-a-collection

If yes, then can we add it as a delete_index in the WeaviateVectoreStore class on llamaindex? (I can create a prequest)

The redis integration has a function like that here for example: (https://github.com/run-llama/llama_index/blob/7b52057b717451a801c583fae7efe4c4ad167455/llama-index-legacy/llama_index/legacy/vector_stores/redis.py#L219)

(should I have asked this in #🔌integrations instead?)
ps: I just discovered LlamaIndex and Weaviate today 😅 . I'm still trying to wrap all the concepts. So please correct me if I am wrong. But it is very intuitive so far. Thanks for keeping it open source!
L
L
2 comments
Yea that functionality could definitely be added to the vector store class
Thanks! I will send a PR!
Add a reply
Sign up and join the conversation on Discord