in demo-dotnet/DotNetIntegratedVectorizationDemo/Configuration.cs [66:92]
public void Validate()
{
if (!Uri.TryCreate(ServiceEndpoint, UriKind.Absolute, out _))
{
throw new ArgumentException("Must specify service endpoint", nameof(ServiceEndpoint));
}
if (string.IsNullOrEmpty(IndexName))
{
throw new ArgumentException("Must specify index name", nameof(IndexName));
}
if (!Uri.TryCreate(AzureOpenAIEndpoint, UriKind.Absolute, out _))
{
throw new ArgumentException("Must specify Azure OpenAI endpoint", nameof(AzureOpenAIEndpoint));
}
if (string.IsNullOrEmpty(BlobConnectionString))
{
throw new ArgumentException("Must specify blob connection string", nameof(BlobConnectionString));
}
if (string.IsNullOrEmpty(BlobContainerName))
{
throw new ArgumentException("Must specify blob container name", nameof(BlobContainerName));
}
}