forked from dotnet/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCollectionModelBuildingOptions.cs
More file actions
36 lines (30 loc) · 1.46 KB
/
Copy pathCollectionModelBuildingOptions.cs
File metadata and controls
36 lines (30 loc) · 1.46 KB
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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
using Microsoft.Shared.DiagnosticIds;
namespace Microsoft.Extensions.VectorData.ProviderServices;
/// <summary>
/// Contains options affecting model building; passed to <see cref="CollectionModelBuilder"/>.
/// This is an internal support type meant for use by providers only and not by applications.
/// </summary>
[Experimental(DiagnosticIds.Experiments.VectorDataCollectionModel, UrlFormat = DiagnosticIds.UrlFormat)]
public sealed class CollectionModelBuildingOptions
{
/// <summary>
/// Gets a value indicating whether multiple vector properties are supported.
/// </summary>
public required bool SupportsMultipleVectors { get; init; }
/// <summary>
/// Gets a value indicating whether at least one vector property is required.
/// </summary>
public required bool RequiresAtLeastOneVector { get; init; }
/// <summary>
/// Gets a value indicating whether an external serializer will be used (for example, System.Text.Json).
/// </summary>
public bool UsesExternalSerializer { get; init; }
/// <summary>
/// Gets the special, reserved name for the key property of the database.
/// When set, the model builder manages the key storage name, and users cannot customize it.
/// </summary>
public string? ReservedKeyStorageName { get; init; }
}