mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-10-08 21:40:21 +00:00
Fix ERI data source name handling during augmentation phase
This commit is contained in:
parent
606aa6fe64
commit
5d173b04b2
@ -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;
|
||||||
|
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user