forked from dotnet/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataPropertyModel.cs
More file actions
36 lines (31 loc) · 1.26 KB
/
Copy pathDataPropertyModel.cs
File metadata and controls
36 lines (31 loc) · 1.26 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;
using System.Diagnostics.CodeAnalysis;
using Microsoft.Shared.DiagnosticIds;
namespace Microsoft.Extensions.VectorData.ProviderServices;
/// <summary>
/// Represents a data property on a vector store record.
/// This is an internal support type meant for use by providers only and not by applications.
/// </summary>
[Experimental(DiagnosticIds.Experiments.VectorDataPropertyModel, UrlFormat = DiagnosticIds.UrlFormat)]
public class DataPropertyModel(string modelName, Type type) : PropertyModel(modelName, type)
{
/// <summary>
/// Gets or sets a value indicating whether this data property is indexed.
/// </summary>
/// <value>
/// The default is <see langword="false" />.
/// </value>
public bool IsIndexed { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this data property is indexed for full-text search.
/// </summary>
/// <value>
/// The default is <see langword="false" />.
/// </value>
public bool IsFullTextIndexed { get; set; }
/// <inheritdoc/>
public override string ToString()
=> $"{ModelName} (Data, {Type.Name})";
}