-
Would it make sense for methods SearchAsync and AskAsync in the MemoryPlugin class (SemanticKernelPlugin) to return a KernelSearchResults object instead of a string? I think this would allow for Semantic Kernel to provide citation information with the search results. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
hi @malv007 the response includes sources, there are examples and docs in the repo showing what the service returns. |
Beta Was this translation helpful? Give feedback.
-
I tried what I was proposing and it didn't work :( The citations get generated in Kernel Memory, but then Semantic Kernel isn't able to interpret them. Right now we are using our Kernel Memory as a Plugin in Semantic Kernel. I have gone through all the examples, but I couldn't find one that passes the citations to Semantic Kernel, in particular to the AzureOpenAIChatCompletionService (IChatCompletionService). I would like for the citations generated in Kernel Memory to be passed to the context in the IChatCompletionService, but I am not sure this is possible.
Is there a way this can be achieved? Is there a better approach for this? |
Beta Was this translation helpful? Give feedback.
-
In case it helps anybody else, we managed to get this to work with help from the Semantic Kernel team: |
Beta Was this translation helpful? Give feedback.
In case it helps anybody else, we managed to get this to work with help from the Semantic Kernel team:
microsoft/semantic-kernel#9612