Skip to content

Commit a8e5204

Browse files
Merge branch 'release/4.6.0'
2 parents 271f7d1 + 3870072 commit a8e5204

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22
<PropertyGroup Label="Dependency Versions">
3-
<_ComponentHost>3.2.0</_ComponentHost>
3+
<_ComponentHost>3.2.1</_ComponentHost>
44
<_AutoFixture>4.11.0</_AutoFixture>
5-
<_CluedIn>4.4.0</_CluedIn>
5+
<_CluedIn>4.6.0</_CluedIn>
66
</PropertyGroup>
77
<PropertyGroup>
88
<Nullable>enable</Nullable>

docs/4.6.0-release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Features
2+
- Supports enricherv2
3+
- Convert multiline Prompt control to new prompt with vocabulary key selector

src/ExternalSearch.Providers.AzureOpenAI.Provider/AzureOpenAISearchProviderProvider.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ public AzureOpenAISearchProviderProvider([System.Diagnostics.CodeAnalysis.NotNul
3434
public Guide Guide { get; } = Constants.Guide;
3535
public new IntegrationType Type { get; } = Constants.IntegrationType;
3636
public IExternalSearchProvider ExternalSearchProvider { get; }
37+
public bool SupportsEnricherV2 => true;
38+
public Dictionary<string, object> ExtraInfo { get; } = new()
39+
{
40+
{ "autoMap", false },
41+
{ "useEnricherOriginEntityCode", true },
42+
{ "supportConfidenceScore", false }, // for UI
43+
{ "minConfidenceScore", 0 }, // for UI
44+
{ "maxConfidenceScore", 100 }, // for UI
45+
{ "origin", "azureOpenAI" },
46+
{ "originField", string.Empty },
47+
{ "nameKeyField", string.Empty },
48+
{ "vocabKeyPrefix", string.Empty },
49+
{ "autoSubmission", false },
50+
{ "dataSourceSetId", string.Empty },
51+
};
3752

3853
private static IProviderMetadata GetMetaData()
3954
{

src/ExternalSearch.Providers.AzureOpenAI/Constants.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,14 @@ public static class Constants
7676
new()
7777
{
7878
DisplayName = "Prompt",
79-
Type = "multiline",
79+
Type = "aiPromptEditor",
8080
IsRequired = true,
8181
Name = KeyName.Prompt,
82-
Help = "The instruction sent to Azure OpenAI for generating results. It requires at least one input (e.g., {Vocabulary:XXXX.YYYY}) and one output (e.g., {output:Vocabulary:PPPP.QQQQ}).",
82+
Help = "The instruction sent to Azure OpenAI to generate results. It requires at least one input and one output.",
83+
Options = new Dictionary<string, object>
84+
{
85+
{"supportsOutputVocabularyKey", true}
86+
}
8387
},
8488
};
8589

0 commit comments

Comments
 (0)