Skip to content
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

Fix memory extraction json format issue #1193

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

TaoChenOSU
Copy link
Contributor

Motivation and Context

Model hasn't been generating JSON consistently for memory extraction.

Description

Set the response format to JSON to force the model to output valid json for memory extraction.

Contribution Checklist

@TaoChenOSU TaoChenOSU self-assigned this Oct 24, 2024
@github-actions github-actions bot added the webapi Pull requests that update .net code label Oct 24, 2024
@alliscode alliscode added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit ee8df9c Oct 24, 2024
7 checks passed
@alliscode alliscode deleted the taochen/fix-memory-extraction-json-format-issue branch October 24, 2024 22:41
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.
-->
Model hasn't been generating JSON consistently for memory extraction. 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Set the response format to JSON to force the model to output valid json
for memory extraction.


### 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 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webapi Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants