How to use Python V4 Api with Azure?

Hi @c-lara !!

Sorry for the delay here! :grimacing:

Azure Open Ai will require some different parameters (deploymentId, resource_name and base_url) when compared with “Vanilla” Open Ai

For that reason, in Weaviate python v4 client, we now have wvc.Configure.Vectorizer.text2vec_azure_openai

For defining it, you can do as follow:

client.collections.create(
    name="Collection Name",
    vectorizer_config=wvc.Configure.Vectorizer.text2vec_azure_openai(
        resource_name="",
        deployment_id="",
        vectorize_class_name=False,
        base_url="",
    )
)

As our Python V4 client is still in beta, we are yet to produce all the docs.

Let me know if this helps :slight_smile:

1 Like