You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.Net: Add hybrid search abstraction and azure ai search implementation (#10441)
### Motivation and Context
#9399
Adding the ADR, Keyword Hybrid Search abstractions and an implementation
with integration tests for Azure AI Search.
### Description
Adding the ADR, Keyword Hybrid Search abstractions and an implementation
with integration tests for Azure AI Search.
More implementations to follow.
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
/// Performs a hybrid search for records that match the given embedding and keywords, after applying the provided filters.
17
+
/// </summary>
18
+
/// <typeparam name="TVector">The type of the vector.</typeparam>
19
+
/// <param name="vector">The vector to search the store with.</param>
20
+
/// <param name="keywords">A collection of keywords to search the store with.</param>
21
+
/// <param name="options">The options that control the behavior of the search.</param>
22
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
23
+
/// <returns>The records found by the hybrid search, including their result scores.</returns>
varisMet=configis not null&&!string.IsNullOrWhiteSpace(config.ServiceUrl)&&!string.IsNullOrWhiteSpace(config.ApiKey);
19
+
20
+
returnValueTask.FromResult(isMet);
21
+
}
22
+
23
+
publicstringSkipReason
24
+
=>"Azure AI Search ServiceUrl or ApiKey was not specified in user secrets. Use the following command to set them: dotnet user-secrets set \"AzureAISearch:ServiceUrl\"\"your_service_url\" and dotnet user-secrets set \"AzureAISearch:ApiKey\"\"your_api_key\"";
0 commit comments