Hi @Nik,
I’m not totally sure what your question is referring to but maybe my code below helps you somewhat?
azure_openai_key = YOUR_KEY
weaviate_client = weaviate.WeaviateClient(
connection_params=ConnectionParams.from_params(
http_host="weaviate",
http_port="8080",
http_secure=False,
grpc_host="weaviate",
grpc_port="50051",
grpc_secure=False,
),
auth_client_secret=weaviate.auth.AuthApiKey(weaviate_secret_key),
additional_headers={
"X-Azure-Api-Key": azure_openai_key,
},
)
vectorizer_config = wvcc.Configure.Vectorizer.text2vec_azure_openai(
resource_name="NAME-GIVEN-BY-YOUR-COMPANY",
deployment_id="text-embedding-ada-002",
base_url="https://NAME-GIVEN-BY-YOUR-COMPANY.openai.azure.com/",
)
generative_config = wvcc.Configure.Generative.azure_openai(
resource_name="NAME-GIVEN-BY-YOUR-COMPANY",
deployment_id="text-embedding-ada-002",
base_url="https://NAME-GIVEN-BY-YOUR-COMPANY.openai.azure.com/",
top_p=0.95,
max_tokens=800
)
Cheers!