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

View File

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

View File

@ -1,2 +1,3 @@
# v0.9.52, build 227 (2025-09-xx xx:xx UTC) # 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. - 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.