Citations from a Plugin #9612
-
We have several Plugins that provide information and functionality to our IChatCompletionService (AzureOpenAIChatCompletionService). We would like for some of these Plugins to provide citation information to the IChatCompletionService, basically be able to retrieve the citation information from the context by doing something like this
Is this even possible? We have tried for the Plugin functions to return a KernelSearchResults enumeration, but that didn't work. What are the options for getting citations in the IChatCompletionService? The only example we have seen is the one that uses the AzureChatDataSource property. Is implementing our own ChatDataSource the only option for getting Citations in the IChatCompletionService? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hi @malv007, thanks for your question! Just to clarify, what would be the purpose of this citation information in Let me know if this is something you are looking for. I will be happy to assist further. Thanks! |
Beta Was this translation helpful? Give feedback.
@malv007 Thanks for providing more information, it's really helpful!
I think that's fine to integrate Kernel Memory with Semantic Kernel via Plugin. Just want to mention, that it's not really important which integration is used via Plugin, as chat completion service can work with any kind of Plugin output.
For example, imagine you are working with following data model:
And you have a plugin which returns some data using that model: