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

Python: improved chat history samples #10737

Conversation

eavanvalkenburg
Copy link
Member

@eavanvalkenburg eavanvalkenburg commented Feb 28, 2025

Motivation and Context

Improve the serialization sample
Added a more complex sample for using ChatHistory with a VectorStore to store in a backend.

Also improves the typing of the vectorstoremodel decorator

Description

Contribution Checklist

@eavanvalkenburg eavanvalkenburg requested a review from a team as a code owner February 28, 2025 14:59
@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Feb 28, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Feb 28, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
semantic_kernel/contents
   chat_history.py173697%102, 107, 262, 271, 282–283
TOTAL18981240687% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3172 5 💤 0 ❌ 0 🔥 1m 43s ⏱️

@eavanvalkenburg eavanvalkenburg force-pushed the improve_chat_history_serialization_samples branch from 19540e2 to 6e076df Compare March 3, 2025 10:06
@eavanvalkenburg eavanvalkenburg force-pushed the improve_chat_history_serialization_samples branch 3 times, most recently from d3e5260 to 148296c Compare March 3, 2025 15:50
@eavanvalkenburg eavanvalkenburg force-pushed the improve_chat_history_serialization_samples branch from e7fc7b6 to 9cc69a0 Compare March 3, 2025 20:27
@moonbox3 moonbox3 enabled auto-merge March 4, 2025 06:54
@moonbox3 moonbox3 added this pull request to the merge queue Mar 4, 2025
Merged via the queue into microsoft:main with commit 4eb4493 Mar 4, 2025
28 checks passed
rracanicci pushed a commit to rracanicci/semantic-kernel that referenced this pull request Mar 5, 2025
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel 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.
-->
Improve the serialization sample
Added a more complex sample for using ChatHistory with a VectorStore to
store in a backend.

Also improves the typing of the vectorstoremodel decorator

### Description

<!-- 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: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/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: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants