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

13 lines
455 B
C#
Raw Normal View History

using BotSharp.Abstraction.Knowledges.Enums;
2023-06-18 18:15:00 +00:00
namespace BotSharp.Abstraction.Knowledges.Models;
2024-08-15 03:46:01 +00:00
public class KnowledgeSearchOptions
2023-06-18 18:15:00 +00:00
{
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
}