Add configuration for maximum matches per query across data sources (#484)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-05-26 19:53:31 +02:00
1 parent c08881784d
commit 1e19c05c57
17 files changed
+115 -2

No files matched your search

@@ -30,6 +30,9 @@ public readonly record struct DataSourceLocalDirectory : IInternalDataSource
/// <inheritdoc />
public DataSourceSecurity SecurityPolicy { get; init; } = DataSourceSecurity.NOT_SPECIFIED;
/// <inheritdoc />
public ushort MaxMatches { get; init; } = 10;
/// <inheritdoc />
public Task<IReadOnlyList<IRetrievalContext>> RetrieveDataAsync(IContent lastPrompt, ChatThread thread, CancellationToken token = default)
{