-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Copilot Chat: [Copilot Chat App] Azure Cognitive Search: kernel.Memory.SearchAsync producing no results for queries #2039
Comments
We are seeing this issue as well in the latest version of the repo. It used to work at least until 12th July for us. |
Hello @animeshj9, Thanks for reporting the issue!
If you can provide more information or samples, we will be able to assist you further. |
Hey @TaoChenOSU - Thanks for the information. We were able to root cause and have identified a couple of issues that were happening that caused our Copilot Chat to not get any data from CognitiveSearch memory. First, to preface - we are using the 0.16 release of SK (1) In the DocumentMemorySkill on Copilot Chat - While it says to filters out memories based DocumentMemoryMinRelevance in the promptOptions, its really filtering it out on the ReRanker score that's coming from CognitiveSearch. That helped us set the right config for MemoryMinRelevance and we were able to see some responses. (2) The function (ToMemoryRecordMetadata)[https://github.com/microsoft/semantic-kernel/blob/53a3a8466fdcafbdad304c55c4e4591dfdff6582/dotnet/src/Connectors/Connectors.Memory.AzureCognitiveSearch/AzureCognitiveSearchMemoryRecord.cs#L103C1-L104C1] - errors out if it encounters certain symbols / combinations in the documentation and error out with "the base64 string is not valid". For v0.16, we are writing our own Search function instead of using |
@vman - What is the error you are getting? or is it just not returning data when you call If not, let us know your error and we can try to see if we can root cause it. |
As an alternative to using Azure Cognitive Search's semantic search, consider using Azure Cognitive Search's vector search feature, available from SK version 0.17.230718.1-preview on (and using the Microsoft.SemanticKernel.Connectors.Memory.AzureSearch nuget as opposed to only the Microsoft.SemanticKernel.Connectors.Memory.AzureCognitiveSearch nuget) |
@glahaye - I am unable to find Microsoft.SemanticKernel.Connectors.Memory.AzureSearch nuget. Only returns Azure Cognitive Search: https://www.nuget.org/packages?q=Microsoft.SemanticKernel.Connectors.Memory.AzureSearch |
Hi @animeshj9 There's been a couple of changes and I think they might fix your problem. First, Copilot Chat has been renamed to Chat Copilot and moved to its own repo: Then, the Nuget package I mentioned to you has been retired and its functionality has now replaced the old code in Microsoft.SemanticKernel.Connectors.Memory.AzureCognitiveSearch. I have a PR open that modifies Chat Copilot to use that latest version of the Nuget and get the vector search experience: I estimate it will get merged on Monday and I am confident it will resolve your current problem. Because of that, I will go ahead and close this issue on this repo. If you do still experience problems after the merge of the PR, feel free to open a new issue in the new repo. |
Thank you very much @glahaye! I will check it out and let you know if it fixes my issues. |
Describe the bug
I'm trying to build out the Copilot Chat App as a RAG chat (without skills for now). Not sure if its an issue with Semantic Kernel or my cognitive search setup. Looking for some guidance.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
kernel.Memory.SearchAsync will return the right set of documents from the created index for all queries.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
Additional context
The text was updated successfully, but these errors were encountered: