-
Notifications
You must be signed in to change notification settings - Fork 9
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
Release v0.10.0 #418
Merged
Release v0.10.0 #418
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description Benchmark data reduced in order to reduce total benchmarking time (was more than 20 hours before; and now 5 hours). # Checklist - [x] I have performed a self-review of the changes # To Consider - Add tests (if functionality is changed) - Update API reference / tutorials / guides - Update CONTRIBUTING.md (if devel workflow is changed) - Update `.ignore` files, scripts (such as `lint`), distribution manifest (if files are added/deleted) - Search for references to changed entities in the codebase --------- Co-authored-by: Roman Zlobin <RLKRo@proton.me>
# Description Remove support for 3.8; add support for 3.12. Also updated lock file with new package versions because I couldn't update the lock file without deleting the old one. # Checklist - [x] I have performed a self-review of the changes # To Consider - Add tests (if functionality is changed) - Update API reference / tutorials / guides - Update CONTRIBUTING.md (if devel workflow is changed) - Update `.ignore` files, scripts (such as `lint`), distribution manifest (if files are added/deleted) - Search for references to changed entities in the codebase
# Description Instead of reducing the number of dialog turns reduce the number of contexts. That way we can still stress-test the db with some absurd configs (such as 10000 dialog turns) and also test with actually long dialogs (500 turns for large-misc-long-dialog). # Checklist - [x] I have performed a self-review of the changes *List here tasks to complete in order to mark this PR as ready for review.* # To Consider - Add tests (if functionality is changed) - Update API reference / tutorials / guides - Update CONTRIBUTING.md (if devel workflow is changed) - Update `.ignore` files, scripts (such as `lint`), distribution manifest (if files are added/deleted) - Search for references to changed entities in the codebase
# Description Added flag `allow_partial_extraction` to the `GroupSlot` class constructor. If `True`, group slot only saves successfully extracted sub-slots. --------- Co-authored-by: Roman Zlobin <RLKRo@proton.me>
# Description ID string added to messenger interface constructor. This string is added to all the messages received via this interface. The first message origin is the origin of the context it is related to. --------- Co-authored-by: Roman Zlobin <RLKRo@proton.me>
This reverts commit 3b0b11e.
# Description Update dependency versions in lock file.
Set poetry version to 1.8.5. v2.0 release breaks workflows.
# Description Context storages are updated partially now instead of reading and writing whole data at once. # Checklist - [x] I have covered the code with tests - [x] I have added comments to my code to help others understand it - [x] I have updated the documentation to reflect the changes - [x] I have performed a self-review of the changes - [x] Consider extending `UpdateScheme` from `BaseModel` - [x] Decide how we want to use `clear` method. --------- Co-authored-by: Roman Zlobin <RLKRo@proton.me> Co-authored-by: = <=> Co-authored-by: pseusys <aleksandr.sergeev.ad@gmail.com>
# Description Added functionality for calling LLMs via langchain API for utilizing them in responses and conditions. # Checklist - [x] I have performed a self-review of the changes *List here tasks to complete in order to mark this PR as ready for review.* # To Consider - Add tests - Update API reference / tutorials / guides - Update CONTRIBUTING.md --------- Co-authored-by: askatasuna <andruha.chirkin@gmail.com> Co-authored-by: Roman Zlobin <RLKRo@proton.me>
# Description Added Sphinx Multiversioning utilising JamesIves/github-deploy-action's feature of saving commit history on gh-pages branch. You can see a working example here: https://zerglev.github.io/chatsky/master/index.html. Use the version switcher button in the top-right to switch between versions. (It's switched off right now, but it should work in this repo) Major changes: - Can build and deploy documentation for any pre-configured branch or tag. We can build docs for versions up to v0.8.0; versions before that are too different. (due to renaming 'DFF' -> 'Chatsky') - Has a version switcher button. (in top right corner) It only shows `master` (as 'latest'), `dev` and all tags like `v0.9.0` from a specified 'start_version'. - Documentation for different versions is saved in separate folders, and you can conveniently switch the folder to view the same file for a different version (if it exists) Minor details: - In case there is no version selected for docs, say, someone used an old link, like `https://deeppavlov.github.io/chatsky/index.html`, the website will redirect them to `master` by default. - In case someone makes a mistake and types `/latest/` within their docs link, it will redirect them to `/master/`. - All relevant links are version-dependent. # Checklist - [x] Made a working example with master and dev built separately - [x] Version switcher works correctly - [x] Using tags to create docs for different versions - [x] Pull Requests build docs correctly - [x] Deleting old builds before deploying new builds - [x] Made all relevant links version-dependent - [x] Redirects work now - [x] I have performed a self-review of the changes - [x] Receive a review and do the required changes # To Consider - We could redirect people to `chatsky` in case someone types `dialog_flow_framework`, it's very easy to do. - Testing Github Pages deployment from main Chatsky repo. - Testing documentation building from Chatsky repo. - SEO optimization (old links will show the wrong website, even though they will get redirected now) (just need to add a few lines into index.html if we want to do that) - Finding a better place/design for the version switcher button. (It's maybe okay now, actually) - Update CONTRIBUTING.md (if devel workflow is changed) - Update `.ignore` files, scripts (such as `lint`), distribution manifest (if files are added/deleted) Notes: - "git stash" and "git checkout" are used during the Github Workflow. I'm not sure if that poses a problem, but everything is returned to it's place in the end, and I don't really know how to do things otherwise. It might just be required. If other workflows just wait for this one, then there can't be a problem, I think. Or if they don't run at the same time. - We're always using old conf.py files, meaning the docs will be exactly the same way, they were before - all brand names, pictures, website designs might be outdated. --------- Co-authored-by: Roman Zlobin <RLKRo@proton.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears this PR is a release PR (change its base from master
if that is not the case).
Here's a release checklist:
- Update package version
- Update
poetry.lock
- Change PR merge option
- Update template repo
- Search for objects to be deprecated
- Test parts not covered with pytest:
- web_api tutorials
- Test integrations with external services (telegram; stats)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
Breaking Changes
Old Context storages are incompatible with the new ones.
See tutorial Context Storages: 8 for more info;
Context.labels
,Context.requests
,Context.responses
are now only lazily loaded (Partial context updates #93).Items from older turns can be loaded on demand.
Their
__getitem__
andget
methods are now async.Features
LLMResponse
andLLMCondition
classes that allow using LLMs (Feat/llm responses #376).See the new LLM Integration tutorials and LLM user guide for more info;
See tutorial Slots: 2 for more information;
Message.original_message
is replaced withMessage.origin
which stores boththe original message and the interface from which the message originated (Feat/origin_interface_id_for_message #398);
Context.current_turn_id
field which stores the number of the current turn (Partial context updates #93);Context.created_at
,Context.updated_at
timestamp fields (Partial context updates #93);Context.turns
property which allows iterating over requests/labels/responses by their turn ids (Partial context updates #93);Context.labels
,Context.requests
,Context.responses
now support slicing (Partial context updates #93).__getitem__
,__setitem__
and__delitem__
methods can now accept slices of turn ids in addition to single turn id.get
method can now accepts iterable of turn ids in addition to single turn id.Documentation
You can select preferred version via the drop-down menu in the top-right corner.
Developer changes
origin_interface
to store name of the interface that created it (Feat/origin_interface_id_for_message #398);docs_no_docker
for building documentation without docker (ef11ff9);Context.add_request
,Context.add_label
andContext.add_response
(Partial context updates #93).Use setters with
Context.current_turn_id
instead.