-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
VectorSearchProfile.cs
50 lines (43 loc) · 2.95 KB
/
VectorSearchProfile.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.Search.Documents.Indexes.Models
{
/// <summary> Defines a combination of configurations to use with vector search. </summary>
public partial class VectorSearchProfile
{
/// <summary> Initializes a new instance of <see cref="VectorSearchProfile"/>. </summary>
/// <param name="name"> The name to associate with this particular vector search profile. </param>
/// <param name="algorithmConfigurationName"> The name of the vector search algorithm configuration that specifies the algorithm and optional parameters. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="algorithmConfigurationName"/> is null. </exception>
public VectorSearchProfile(string name, string algorithmConfigurationName)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(algorithmConfigurationName, nameof(algorithmConfigurationName));
Name = name;
AlgorithmConfigurationName = algorithmConfigurationName;
}
/// <summary> Initializes a new instance of <see cref="VectorSearchProfile"/>. </summary>
/// <param name="name"> The name to associate with this particular vector search profile. </param>
/// <param name="algorithmConfigurationName"> The name of the vector search algorithm configuration that specifies the algorithm and optional parameters. </param>
/// <param name="vectorizer"> The name of the kind of vectorization method being configured for use with vector search. </param>
/// <param name="compressionConfigurationName"> The name of the compression method configuration that specifies the compression method and optional parameters. </param>
internal VectorSearchProfile(string name, string algorithmConfigurationName, string vectorizer, string compressionConfigurationName)
{
Name = name;
AlgorithmConfigurationName = algorithmConfigurationName;
Vectorizer = vectorizer;
CompressionConfigurationName = compressionConfigurationName;
}
/// <summary> The name to associate with this particular vector search profile. </summary>
public string Name { get; set; }
/// <summary> The name of the vector search algorithm configuration that specifies the algorithm and optional parameters. </summary>
public string AlgorithmConfigurationName { get; set; }
/// <summary> The name of the kind of vectorization method being configured for use with vector search. </summary>
public string Vectorizer { get; set; }
/// <summary> The name of the compression method configuration that specifies the compression method and optional parameters. </summary>
public string CompressionConfigurationName { get; set; }
}
}