Skip to content

Commit

Permalink
.Net: Bump Azure.Search.Documents from 11.5.0-beta.4 to 11.5.0-beta.5…
Browse files Browse the repository at this point in the history
… in /dotnet (#3106)

Bumps
[Azure.Search.Documents](https://github.com/Azure/azure-sdk-for-net)
from 11.5.0-beta.4 to 11.5.0-beta.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Azure/azure-sdk-for-net/releases">Azure.Search.Documents's
releases</a>.</em></p>
<blockquote>
<h2>Azure.Search.Documents_11.5.0-beta.5</h2>
<h2>11.5.0-beta.5 (2023-10-09)</h2>
<h3>Features Added</h3>
<ul>
<li>Added support for <code>VectorSearch.Vectorizers</code>, which
contains configuration options for vectorizing text vector queries, and
<code>VectorSearch.Profiles</code>, which define combinations of
configurations to use with vector search.</li>
<li>Added the <code>VectorSearchAlgorithmConfiguration</code> base type,
containing configuration options specific to the algorithm used during
indexing and/or querying. Derived classes include
<code>ExhaustiveKnnVectorSearchAlgorithmConfiguration</code> and
<code>HnswVectorSearchAlgorithmConfiguration</code>.</li>
<li>Added the <code>SearchOptions.VectorQueries</code> base type, which
is used for the query parameters for vector and hybrid search queries.
Derived classes include <code>VectorizableTextQuery</code> and
<code>RawVectorQuery</code>. With <code>RawVectorQuery</code>, users can
pass raw vector values for vector search, while
<code>VectorizableTextQuery</code> allows the passing of text values to
be vectorized for vector search.</li>
<li>Added <code>SearchOptions.VectorFilterMode</code>, determining
whether filters are applied before or after vector search is
executed.</li>
<li>Added <code>SearchOptions.SemanticQuery</code>, which enables the
setting of a dedicated search query for semantic reranking, semantic
captions, and semantic answers.</li>
<li>Added support for <code>AzureOpenAIEmbeddingSkill</code>, which
enables the generation of vector embeddings for given text inputs using
the Azure Open AI service.</li>
<li>Added <code>SearchIndexStatistics.VectorIndexSize</code>, which
reports the amount of memory consumed by vectors in the index.</li>
<li>Added <code>KnowledgeStore.Parameters</code>, which defines a
dictionary of knowledge store-specific configuration properties.</li>
<li>Added <code>SearchIndexerSkillset.IndexProjections</code>, which
specifies additional projections to secondary search indexes.</li>
</ul>
<h3>Breaking Changes</h3>
<ul>
<li>In <code>SearchOptions</code>, the
<code>IList&lt;SearchQueryVector&gt; Vectors</code> property has been
removed in favor of the abstract base type
<code>IList&lt;VectorQuery&gt; VectorQueries</code>.</li>
<li>In <code>SearchField</code>, the
<code>vectorSearchConfiguration</code> property has been removed in
favor of the new <code>VectorSearchProfile</code> property.</li>
<li>In <code>VectorSearch</code>, <code>AlgorithmConfigurations</code>
has been renamed to <code>Algorithms</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/d9948ec7486522c984de37228e1d6e33209c01b6"><code>d9948ec</code></a>
[WebPubSubClient] Parsing message returns IList (<a
href="https://redirect.github.com/Azure/azure-sdk-for-net/issues/39137">#39137</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/ff337a1ce38c57f770d28a36198d90ad7be27f80"><code>ff337a1</code></a>
Update Generator Version 3.0.0-beta.20231008.2 (<a
href="https://redirect.github.com/Azure/azure-sdk-for-net/issues/39148">#39148</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/debd13fc64421b8cd69804ba6d588cb9b999ea75"><code>debd13f</code></a>
Update AutoRest C# version to 3.0.0-beta.20231008.1 (<a
href="https://redirect.github.com/Azure/azure-sdk-for-net/issues/39143">#39143</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/495c70d15bc9e8b23aae3e16d79da22616289078"><code>495c70d</code></a>
use directive to set api-version as client for Resources_GetById (<a
href="https://redirect.github.com/Azure/azure-sdk-for-net/issues/39141">#39141</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/98b399f9187013d9f7a7ad8ca6f7bee996f19da1"><code>98b399f</code></a>
fix pageable operation issue in purview administration library (<a
href="https://redirect.github.com/Azure/azure-sdk-for-net/issues/39009">#39009</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/8ae2ca593e875c356046c74aa61e360f5e2a2017"><code>8ae2ca5</code></a>
Increment package version after release of
Azure.ResourceManager.ContainerSer...</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/4e63f115016901fcbd7be090d604f4b16a3c0908"><code>4e63f11</code></a>
Release Azure.ResourceManager.ContainerServiceFleet (<a
href="https://redirect.github.com/Azure/azure-sdk-for-net/issues/39106">#39106</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/7cb32da479914e7e411cb4e9d0bb879731289a52"><code>7cb32da</code></a>
[Storage][DataMovement] Update checkpointer to read/write to job file -
Part ...</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/138c985df599da2adb13c3a4b29b35c31af94190"><code>138c985</code></a>
Update ChangeLog file (<a
href="https://redirect.github.com/Azure/azure-sdk-for-net/issues/39125">#39125</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-net/commit/d9169db9e16dbec4be43bcc8d8c193de1e6020a6"><code>d9169db</code></a>
Adding CorrelationId to TranscriptionMetadata (<a
href="https://redirect.github.com/Azure/azure-sdk-for-net/issues/39130">#39130</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/Azure/azure-sdk-for-net/compare/Azure.Search.Documents_11.5.0-beta.4...Azure.Search.Documents_11.5.0-beta.5">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Azure.Search.Documents&package-manager=nuget&previous-version=11.5.0-beta.4&new-version=11.5.0-beta.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and dmytrostruk authored Oct 10, 2023
1 parent dd70084 commit 7c5b64b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dotnet/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageVersion Include="Azure.AI.OpenAI" Version="1.0.0-beta.8" />
<PackageVersion Include="Azure.Identity" Version="1.10.1" />
<PackageVersion Include="Azure.Search.Documents" Version="11.5.0-beta.4" />
<PackageVersion Include="Azure.Search.Documents" Version="11.5.0-beta.5" />
<PackageVersion Include="Microsoft.ApplicationInsights.WorkerService" Version="2.21.0" />
<PackageVersion Include="Microsoft.Azure.Kusto.Data" Version="11.3.4" />
<PackageVersion Include="Microsoft.Bcl.HashCode" Version="[1.1.0, )" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,16 @@ public async IAsyncEnumerable<MemoryRecord> GetBatchAsync(

var client = this.GetSearchClient(normalizedIndexName);

SearchQueryVector vectorQuery = new()
RawVectorQuery vectorQuery = new()
{
KNearestNeighborsCount = limit,
Fields = { AzureCognitiveSearchMemoryRecord.EmbeddingField },
Value = MemoryMarshal.TryGetArray(embedding, out var array) && array.Count == embedding.Length ? array.Array! : embedding.ToArray(),
Vector = MemoryMarshal.TryGetArray(embedding, out var array) && array.Count == embedding.Length ? array.Array! : embedding.ToArray(),
};

SearchOptions options = new()
{
Vectors = { vectorQuery }
VectorQueries = { vectorQuery }
};

Response<SearchResults<AzureCognitiveSearchMemoryRecord>>? searchResult = null;
Expand Down Expand Up @@ -275,7 +275,9 @@ private Task<Response<SearchIndex>> CreateIndexAsync(
throw new SKException("Invalid embedding size: the value must be greater than zero.");
}

var configName = "searchConfig";
const string ProfileName = "searchProfile";
const string AlgorithmName = "searchAlgorithm";

var newIndex = new SearchIndex(indexName)
{
Fields = new List<SearchField>
Expand All @@ -285,7 +287,7 @@ private Task<Response<SearchIndex>> CreateIndexAsync(
{
IsSearchable = true,
VectorSearchDimensions = embeddingSize,
VectorSearchConfiguration = configName
VectorSearchProfile = ProfileName
},
new SearchField(AzureCognitiveSearchMemoryRecord.TextField, SearchFieldDataType.String) { IsFilterable = true, IsFacetable = true },
new SimpleField(AzureCognitiveSearchMemoryRecord.DescriptionField, SearchFieldDataType.String) { IsFilterable = true, IsFacetable = true },
Expand All @@ -295,13 +297,14 @@ private Task<Response<SearchIndex>> CreateIndexAsync(
},
VectorSearch = new VectorSearch
{
AlgorithmConfigurations =
Algorithms =
{
new HnswVectorSearchAlgorithmConfiguration(configName)
new HnswVectorSearchAlgorithmConfiguration(AlgorithmName)
{
Parameters = new HnswParameters { Metric = VectorSearchAlgorithmMetric.Cosine }
}
}
},
Profiles = { new VectorSearchProfile(ProfileName, AlgorithmName) }
}
};

Expand Down

0 comments on commit 7c5b64b

Please sign in to comment.