mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-11 09:13:47 +00:00
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using AIStudio.Provider;
|
|||
|
|
|
||
|
|
namespace AIStudio.Settings;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// A data source whose content AI Studio embeds and indexes itself.
|
||
|
|
/// </summary>
|
||
|
|
/// <remarks>
|
||
|
|
/// The embedding signature, the chunking and the embedding provider are worked out from these
|
||
|
|
/// members alone. That is why the indexer serves every data source implementing this interface,
|
||
|
|
/// whether it is stored in DataSources or not.
|
||
|
|
/// </remarks>
|
||
|
|
public interface IIndexedDataSource : IDataSourceBase
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Which provider confidence level is required by this data source?
|
||
|
|
/// </summary>
|
||
|
|
public ConfidenceLevel ConfidenceLevel { get; init; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// The unique identifier of the embedding provider used by this data source.
|
||
|
|
/// </summary>
|
||
|
|
public string EmbeddingId { get; init; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Optional maximum number of tokens per embedding chunk for this data source.
|
||
|
|
/// A value of 0 means the embedding provider's setting is used.
|
||
|
|
/// </summary>
|
||
|
|
public int MaxChunkTokenLength { get; init; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Optional number of tokens to overlap between consecutive chunks.
|
||
|
|
/// </summary>
|
||
|
|
public int ChunkOverlapTokenLength { get; init; }
|
||
|
|
}
|