mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 18:47:21 +00:00
Fixed Semantic Search with external data sources (ERI servers) (#1090)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
0f5b041729
commit
f6e48e95f3
30 files changed
+1370
-141
No files matched your search
@@ -1445,9 +1445,22 @@ public abstract class BaseProvider : IProvider, ISecretId
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
/// <remarks>
|
||||
/// The ID and whether the provider is self-hosted come along, because the data source checks
|
||||
/// trust a provider by them: Semantic Search decides with these settings which data sources
|
||||
/// it offers, while the classic RAG process asks this provider itself. Without them, a
|
||||
/// self-hosted provider, or one the organization trusts, could search a data source which asks
|
||||
/// for such a provider in one process but not in the other.<br/><br/>
|
||||
/// With the ID, the settings also know what the provider's own model list reported, e.g., the
|
||||
/// context window of a self-hosted model, see ProviderExtensions.GetAutomaticModelProfile. So
|
||||
/// the tools of a request and the way images are passed on see the model as the configured
|
||||
/// provider does.
|
||||
/// </remarks>
|
||||
public AIStudio.Settings.Provider CreateSettingsProvider(Model chatModel) => new()
|
||||
{
|
||||
Id = this.ConfiguredProviderId,
|
||||
UsedLLMProvider = this.Provider,
|
||||
IsSelfHosted = this.Provider is LLMProviders.SELF_HOSTED,
|
||||
Model = chatModel,
|
||||
InstanceName = this.InstanceName,
|
||||
CapabilityOverrides = this.CapabilityOverrides,
|
||||
|
||||
Reference in new issue
Block a user