namespace AIStudio.Tools.RAG;
///
/// The retrieval context for text data.
///
public sealed class RetrievalTextContext : IRetrievalContext
{
#region Implementation of IRetrievalContext
///
public required string DataSourceName { get; init; }
///
public required RetrievalContentCategory Category { get; init; }
///
public required RetrievalContentType Type { get; init; }
///
public required string Path { get; init; }
///
public IReadOnlyList Links { get; init; } = [];
#endregion
///
/// The text content.
///
///
/// Should contain the matched text and some small context around it.
///
public required string MatchedText { get; set; }
///
/// The surrounding content of the matched text.
///
///
/// Might give the user some context about the matched text.
/// For example, one sentence or paragraph before and after the matched text.
///
public IReadOnlyList SurroundingContent { get; set; } = [];
}