Skip to content

Maintenance and memory fixes#365

Merged
crickman merged 7 commits intomainfrom
fix-memory-n-maintenance
Sep 19, 2023
Merged

Maintenance and memory fixes#365
crickman merged 7 commits intomainfrom
fix-memory-n-maintenance

Conversation

@crickman
Copy link
Copy Markdown
Contributor

@crickman crickman commented Sep 19, 2023

Motivation and Context

Testing the semantic-memory integration PR, discovered a couple issues:

  1. Stabilize maintenance state changes and controller result
  2. Addressed root-cause for connecter issue reported in: when use memory store qdrant , occurs 404 error #351 and Bug: The CopilotChatWebApi backend should invoke CreateCollectionAsync once at least for each chat session when use PostgresMemoryStore with local postgresql database as vectors MemoryStore #215

Description

  • Decouple exception handling for SearchAsync and SaveInformationAsync
  • Change from "ref" to "state" handling for BackendProbe
  • Refine handling of maintenance response

Contribution Checklist

@crickman crickman added bug Something isn't working webapp Pull requests that update Typescript code webapi Pull requests that update .net code PR: ready for review .NET Pull requests that update .net code memory Issues or questions related to memory labels Sep 19, 2023
@crickman crickman self-assigned this Sep 19, 2023
@crickman crickman linked an issue Sep 19, 2023 that may be closed by this pull request
@crickman crickman mentioned this pull request Sep 19, 2023
4 tasks
Comment thread webapi/Controllers/MaintenanceController.cs
Comment thread webapp/src/components/views/BackendProbe.tsx Outdated
alliscode
alliscode previously approved these changes Sep 19, 2023
Comment thread webapi/Skills/ChatSkills/SemanticChatMemoryExtractor.cs
Comment thread webapp/src/components/views/BackendProbe.tsx
Comment thread webapi/Skills/ChatSkills/SemanticChatMemoryExtractor.cs Outdated
Co-authored-by: Teresa Hoang <125500434+teresaqhoang@users.noreply.github.com>
@crickman crickman added this pull request to the merge queue Sep 19, 2023
Merged via the queue into main with commit 5e5b1d9 Sep 19, 2023
@crickman crickman deleted the fix-memory-n-maintenance branch September 19, 2023 17:46
crickman added a commit that referenced this pull request Sep 20, 2023
### Motivation and Context

Break-out memory migration work for ease of review

### Description

One-time migration of all chat memory (working and long-term).
Removes all memory sources from storage


![image](https://github.com/microsoft/chat-copilot/assets/66376200/b24aa63e-4fb7-49f3-b243-22843624aa5e)

Needs to be able to create two (x2) indexes.

To reset migration, just remove `chatmemory` and `global-documents`

Pushed targeted fixes in
#365

### Contribution Checklist

- [x] The code builds clean without any errors or warnings
- [x] 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
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
teamleader-dev pushed a commit to vlink-group/chat-copilot that referenced this pull request Oct 7, 2024
### 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.
-->

Testing [the semantic-memory integration
PR](microsoft#152), discovered a
couple issues:

1. Stabilize maintenance state changes and controller result
2. Addressed root-cause for connecter issue reported in:
microsoft#351 and
microsoft#215

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

- Decouple exception handling for `SearchAsync` and
`SaveInformationAsync`
- Change from "ref" to "state" handling for BackendProbe
- Refine handling of maintenance response

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] 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
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Teresa Hoang <125500434+teresaqhoang@users.noreply.github.com>
kb0039 pushed a commit to aaronba/chat-copilot that referenced this pull request Jan 8, 2025
### 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.
-->

Testing [the semantic-memory integration
PR](microsoft#152), discovered a
couple issues:

1. Stabilize maintenance state changes and controller result
2. Addressed root-cause for connecter issue reported in:
microsoft#351 and
microsoft#215

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

- Decouple exception handling for `SearchAsync` and
`SaveInformationAsync`
- Change from "ref" to "state" handling for BackendProbe
- Refine handling of maintenance response

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] 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
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Teresa Hoang <125500434+teresaqhoang@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working memory Issues or questions related to memory .NET Pull requests that update .net code webapi Pull requests that update .net code webapp Pull requests that update Typescript code

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

when use memory store qdrant , occurs 404 error

4 participants