-
Notifications
You must be signed in to change notification settings - Fork 705
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
Documents uploaded with global scope not searched by CoPilot memory #421
Comments
@TaoChenOSU can you help take a look at this? we should be seeing the same results no matter where how the document was uploaded. |
I believe ISemanticMemoryExtensions clss sets filter with chatid and since the globally uploaded doc is not associated with this chatid, the filter leaves them out. If the memory has a chatid=Guid.Empty then that also should be included as it would seem global. public static async Task SearchMemoryAsync(
} |
Changing the code in chat-copilot\webapi\Skills\ChatSkills\SemanticMemoryRetriever.cs fixed it for me. async Task SearchMemoryAsync(string memoryName) |
That worked for me - Thanks! |
Hello @arvashis, Thanks for reporting the bug! The solution provided above is an ideal solution. We are working to fix this bug properly. |
### Motivation and Context <!-- Thank you for your contribution to the chat-copilot repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> 1. Issue reported by the community: #421 2. Citation was accidentally removed by a previous PR. ### Description 1. Fix the issue. 2. Add back citations. <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [Contribution Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
Describe the bug
Any documents uploaded with global scope via the console app ImportDocument in not included in documentmemory search. If the document is uploaded in the context of a chat via the UI then everything works fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Documents uploaded with Global scope are used by the copilot to respond to the query in any chat thread.
Platform
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: