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

Improved sliding window - trim old context #12

Merged
merged 9 commits into from Sep 7, 2023

Conversation

conceptd3v
Copy link
Collaborator

and also trim 'current' context if it exceeds the limit (rare but possible bug)

Copy link
Collaborator

@khalp khalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! added nitpicky suggestions, feel free to reject

Comment on lines +303 to +304
// ONLY show date/time when embeddings are empty, as it triggers the SessionsByTime function (I THINK)
// ALWAYS add the date and time to every prompt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// ONLY show date/time when embeddings are empty, as it triggers the SessionsByTime function (I THINK)
// ALWAYS add the date and time to every prompt
// ONLY show date/time when embeddings are empty, as it triggers the SessionsByTime function

hoping the "i think" has been resolved 😜

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 not sure!

role = completionMessage.role,
content = completionMessage.content
userContent = completionMessage.content
?: "", // required to not be empty in this case
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this still true with the custom chat message class? or can we remove the null check now

conceptdev and others added 5 commits September 6, 2023 12:57
Co-authored-by: Kristen Halper <khalper@microsoft.com>
Co-authored-by: Kristen Halper <khalper@microsoft.com>
Co-authored-by: Kristen Halper <khalper@microsoft.com>
@conceptdev conceptdev marked this pull request as ready for review September 7, 2023 16:23
@conceptdev conceptdev merged commit 8ba3579 into main Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants