chore: import upstream snapshot with attribution
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:21:23 +08:00
commit b957a53def
5423 changed files with 863745 additions and 0 deletions
@@ -0,0 +1,37 @@
// 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;
}