Fix ERI data source name handling during augmentation phase

This commit is contained in:
Thorsten Sommer 2025-09-25 19:19:48 +02:00
parent 606aa6fe64
commit 5d173b04b2
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
3 changed files with 7 additions and 6 deletions

View File

@ -103,7 +103,7 @@ public readonly record struct DataSourceERI_V1 : IERIDataSource
Links = eriContext.Links,
Category = eriContext.Type.ToRetrievalContentCategory(),
MatchedText = eriContext.MatchedContent,
DataSourceName = this.Name,
DataSourceName = eriContext.Name,
SurroundingContent = eriContext.SurroundingContent,
});
break;
@ -117,7 +117,7 @@ public readonly record struct DataSourceERI_V1 : IERIDataSource
Source = eriContext.MatchedContent,
Category = eriContext.Type.ToRetrievalContentCategory(),
SourceType = ContentImageSource.BASE64,
DataSourceName = this.Name,
DataSourceName = eriContext.Name,
});
break;

View File

@ -9,9 +9,9 @@ public interface IRetrievalContext
/// The name of the data source.
/// </summary>
/// <remarks>
/// Depending on the configuration, the AI is selecting the appropriate data source.
/// In order to inform the user about where the information is coming from, the data
/// source name is necessary.
/// This is not the name the user chooses but the name of the source where
/// the match was found. This could be a document or database name, a website
/// or a directory on a remote server, etc.
/// </remarks>
public string DataSourceName { get; init; }

View File

@ -1,2 +1,3 @@
# v0.9.52, build 227 (2025-09-xx xx:xx UTC)
- Improved developer experience by detecting development environments and disabling update prompts in those environments.
- Fixed an issue where external data sources using the ERI interface weren't using the correct source names during the augmentation phase.