Skip to content
Discussion options

You must be logged in to vote

I'd say you're on the right path. In the solution I work on, we deal with one Semantic Kernel instance per "Document Process" - or document type - each document type can have (different) assigned plugins and the embedding and chat models are user-selectable in the admin UI per document type.

We did previously register every SK instance in the DI container individually, but we no longer do this, as it requires a restart of the affected service each time a document type is added or its associated models are changed. Today, we use the factory pattern, where a SemanticKernelFactory (custom type) is registered in the kernel as a singleton. You can have a collection in the factory (for instance…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pedershk
Comment options

Answer selected by hexbit2
@hexbit2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
.NET Issue or Pull requests regarding .NET code python Pull requests for the Python Semantic Kernel triage
2 participants