Find answers from the community

Updated 11 months ago

How to I specify the index type,

At a glance
The community member is asking how to specify the index type, quantization config, and other configurations when using the WeaviateVectorStore. They provide an example code snippet that connects to a Weaviate client and flushes the existing vector store before creating a new WeaviateVectorStore instance with the index name set to "LlamaIndex". In the comments, another community member suggests that the configurations may need to be done directly on the Weaviate client.
Useful resources
How to I specify the index type, quantization config etc in using WeaviateVectorStore?
Plain Text
    # Weaviate
    weaviate_client = weaviate.Client("http://localhost:8080")  # Connect with default parameters

    # First, flush the existing vector store to ensure a clean state
    flush_weaviate_vector_store(weaviate_client)
    
    vector_store = WeaviateVectorStore(
        weaviate_client=weaviate_client, index_name="LlamaIndex"
    )
G
1 comment
Add a reply
Sign up and join the conversation on Discord