Files
microsoft--semantic-kernel/dotnet/samples/Demos/VectorStoreRAG/Options/RagConfig.cs
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

38 lines
921 B
C#

// Copyright (c) Microsoft. All rights reserved.
using System.ComponentModel.DataAnnotations;
namespace VectorStoreRAG.Options;
/// <summary>
/// Contains settings to control the RAG experience.
/// </summary>
internal sealed class RagConfig
{
public const string ConfigSectionName = "Rag";
[Required]
public string AIChatService { get; set; } = string.Empty;
[Required]
public string AIEmbeddingService { get; set; } = string.Empty;
[Required]
public bool BuildCollection { get; set; } = true;
[Required]
public string CollectionName { get; set; } = string.Empty;
[Required]
public int DataLoadingBatchSize { get; set; } = 2;
[Required]
public int DataLoadingBetweenBatchDelayInMilliseconds { get; set; } = 0;
[Required]
public string[]? PdfFilePaths { get; set; }
[Required]
public string VectorStoreType { get; set; } = string.Empty;
}