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

Refactor the injection method of the SemanticKernel component. #213

Merged
merged 5 commits into from
Nov 20, 2023

Conversation

xbotter
Copy link
Contributor

@xbotter xbotter commented Nov 20, 2023

Changes:

  1. Change the injection of Semantic Kernel's components from IKernel to using IServiceCollection .
  2. Added mapping for the TextEmbedding and mapping for the MemoryStore.

Breaking Changes:

  1. move ITextEmbedding.GetVector -> ITextEmbedding.GetVectorAsync
  2. move ITextEmbedding.GetVectors -> ITextEmbedding.GetVectorsAsync

- Update ITextEmbedding interface to use async methods for getting vectors
- Update KnowledgeService to use async methods for getting vectors
- Update TextEmbeddingProvider and fastTextEmbeddingProvider to use async methods for getting vectors
- Update IntentClassifier to use async methods for getting vectors
- Update SemanticKernelTextEmbeddingProvider to use async methods for getting vectors
@xbotter xbotter marked this pull request as ready for review November 20, 2023 14:06
@Oceania2018 Oceania2018 merged commit 4c1af4c into SciSharp:master Nov 20, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants