in demo-dotnet/DotNetVectorDemo/Configuration.cs [66:97]
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(AzureOpenAIEmbeddingDeployment))
{
AzureOpenAIEmbeddingDeployment = "text-embedding-3-small";
}
if (string.IsNullOrEmpty(AzureOpenAIEmbeddingModel))
{
AzureOpenAIEmbeddingModel = "text-embedding-3-small";
}
if (string.IsNullOrEmpty(AzureOpenAIEmbeddingDimensions))
{
AzureOpenAIEmbeddingDimensions = "1024";
}
}