Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: ADR for Text Search Abstractions #8307

Conversation

markwallace-microsoft
Copy link
Member

Motivation and Context

Closes #5799

Description

Contribution Checklist

@markwallace-microsoft markwallace-microsoft requested a review from a team as a code owner August 21, 2024 09:24
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel.core documentation labels Aug 21, 2024
@github-actions github-actions bot changed the title ADR for Text Search Service Abstraction .Net: ADR for Text Search Service Abstraction Aug 21, 2024
@markwallace-microsoft markwallace-microsoft changed the title .Net: ADR for Text Search Service Abstraction .Net: ADR for Text Search Abstractions Aug 21, 2024
@markwallace-microsoft markwallace-microsoft merged commit d7287bb into microsoft:feature-vector-search Aug 22, 2024
10 checks passed
markwallace-microsoft added a commit that referenced this pull request Aug 27, 2024
…nelFunctions (#8335)

### Motivation and Context

Follow up PR to #8307

### Description

There are two main use cases we need to support:

1. Enable Prompt Engineers to easily insert grounding information in
prompts i.e. support for Retrieval-Augmented Generation scenarios.
2. Enable Developers to register search plugins which can be called by
the LLM to retrieve additional data it needs to respond to a user ask
i.e. support for Function Calling scenarios.

What both of these scenarios have in common is that we need to generate
a `KernelPlugin` from a search service and register it for use with the
`Kernel`.

This PR includes `TextSearchExtensions` class which adds extension
methods to create `KernelPlugin`s and `KernelFunction`s from an
`ITextSearch` instance.



### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation kernel.core .NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants