chore: import upstream snapshot with attribution
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user