Description
client set with Azure openAI key
client = weaviate.Client(
url= WEAVIATE_DB_URL,  # Replace with your endpoint
auth_client_secret=weaviate.auth.AuthApiKey(api_key=WEAVIATE_API_KEY),  # Replace w/ your Weaviate instance API key
additional_headers = {
“X-Azure-Api-Key”: “…”
}
)
schema has the following:
    {
        'name': 'content',
        'dataType': ['text']
    },
],
'vectorizer': 'text2vec-openai',
'moduleConfig': {
    'tect2vec-openai': {
        "resourceName": "xxxx",
        "deploymentId": "text-embedding-ada-002",
        "baseURL": "https://xxxx.openai.azure.com/", # azure end point
        "vectorizeClassName" : False,
        "dimensions": 1536,  # Parameter only applicable for `v3` model family and newer
        "type": "text"
    }
},
}
printing the schema shows the following
   "preset": "en",
      "removals": null
    }
  },
  "moduleConfig": {
    "tect2vec-openai": {
      "baseURL": "https://sridiyer-ai-us-west-aiservices-1506555731.openai.azure.com/",
      "deploymentId": "text-embedding-ada-002",
      "dimensions": 1536,
      "resourceName": "xxxx",
      "type": "text",
      "vectorizeClassName": false
    },
    "text2vec-openai": {
      "baseURL": "https://api.openai.com",
      "model": "ada",
      "vectorizeClassName": true
    }
  },
baseURL for text2vec-openai takes the openaI url not the azure baseURL
Server Setup Information
weaviate cloud service (on your cloud)
- Weaviate Server Version:
- Deployment Method:
- Multi Node? Number of Running Nodes:
- Client Language and Version:
Any additional Information
how to make the client access Azure OpenAI not the real OpenAI. thanks
 
    
  
  
        
    
    
  
  
    
    