BotSharp/src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/KnowledgeRetrievalModel.cs

14 lines
535 B
C#
Raw Normal View History

using BotSharp.Abstraction.Knowledges.Enums;
2023-06-18 18:15:00 +00:00
namespace BotSharp.Abstraction.Knowledges.Models;
public class KnowledgeRetrievalModel
{
public string Collection { get; set; } = KnowledgeCollectionName.BotSharp;
public string Text { get; set; } = string.Empty;
public IEnumerable<string>? Fields { get; set; } = new List<string> { KnowledgePayloadName.Text, KnowledgePayloadName.Answer };
public int? Limit { get; set; } = 5;
public float? Confidence { get; set; } = 0.5f;
public bool WithVector { get; set; }
2023-06-18 18:15:00 +00:00
}