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

V3: The Beginning #1169

Merged
merged 38 commits into from
Dec 26, 2024
Merged

V3: The Beginning #1169

merged 38 commits into from
Dec 26, 2024

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Dec 25, 2024

Description

  • This PR will merge all changes from the v3-dev branch into main, and serve as the first commit of v3. 🎉

    • Rapid summary of changes: In v3, all responsibility for managing the chat is now delegated to Jupyter Chat, a new project built with Jupyter AI components and a custom chat backend. By using Jupyter Chat, Jupyter AI now supports multiple chats, and automatically saves them as files on disk. This migration has already allowed us to greatly simplify our codebase, and will provide a fantastic foundation to build new features for users in v3. ❤️
    • For more details, please see the full PR history of v3-dev using this link.
  • This PR will be published as the first v3 pre-release (v3.0.0a0) the day after Christmas. 🎅

    • This pre-release just intends to establish feature parity with v2, and is being published quickly for contributors & stakeholders to encourage open collaboration & feedback. I'll open a GitHub issue milestone to track v3 issues discovered by users after installing this pre-release. 🤗
    • Please note that we will absolutely build more features & fix more issues on top of this before the v3.0.0 official release. This is just the first pre-release of many more to come. 💪
  • After this PR is merged, main will track v3, as v3 will be the latest major version. This follows standard convention on managing open-source repositories.

  • The existing main branch is now tracked separately on 2.x.

Demo

Screen.Recording.2024-12-24.at.4.08.04.PM.mov

Note that /generate is not shown in the demo, but I have verified this to work locally.

meeseeksmachine and others added 30 commits October 23, 2024 11:05
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…o developer documentation (#1073)

Co-authored-by: Alan Meeson <[email protected]>
…reply gracefully in chat (#1110)

Co-authored-by: Sanjiv Das <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Very first version of the AI working in jupyterlab_collaborative_chat

* Allows both collaborative and regular chat to work with AI

* handle the help message in the chat too

* Autocompletion (#2)

* Fix handler methods' parameters

* Add slash commands (autocompletion) to the chat input

* Stream messages (#3)

* Allow for stream messages

* update jupyter collaborative chat dependency

* AI settings (#4)

* Add a menu option to open the AI settings

* Remove the input option from the setting widget

* pre-commit

* linting

* Homogeneize typing for optional arguments

* Fix import

* Showing that the bot is writing (answering) (#5)

* Show that the bot is writing (answering)

* Update jupyter chat dependency

* Some typing

* Update extension to jupyterlab_chat (0.6.0) (#8)

* Fix linting

* Remove try/except to import jupyterlab_chat (not optional anymore), and fix typing

* linter

* Python unit tests

* Fix typing

* lint

* Fix lint and mypy all together

* Fix web_app settings accessor

* Fix jupyter_collaboration version

Co-authored-by: david qiu <[email protected]>

* Remove unecessary try/except

* Dedicate one set of chat handlers per room (#9)

* create new set of chat handlers per room

* make YChat an instance attribute on BaseChatHandler

* revert changes to chat handlers

* pre-commit

* use room_id local var

Co-authored-by: Nicolas Brichet <[email protected]>

---------

Co-authored-by: Nicolas Brichet <[email protected]>

---------

Co-authored-by: david qiu <[email protected]>
Co-authored-by: david qiu <[email protected]>
…-Region Inference on Amazon Bedrock (#1143)

Co-authored-by: Sanjiv Das <[email protected]>
* remove /export

* remove /clear

* remove /fix
* fix check release by bumping to impossible version

* fix types

* Update Playwright Snapshots

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dlqqq and others added 7 commits December 11, 2024 13:00
* dedicate a separate LangChain history object per chat

* pre-commit

* fix mypy
* First pass to remove the front end chat

* Remove code-toolbar by using a simplified markdown renderer in settings

* Remove chat-message-menu (should be ported in jupyter-chat)

* Remove chat handler

* Follow up 'Remove chat-message-menu (should be ported in jupyter-chat)' commit

* Clean package.json

* Remove UI tests

* Remove the generative AI menu

* Remove unused components

* run yarn dedupe

---------

Co-authored-by: David L. Qiu <[email protected]>
* upgrade to jupyterlab-chat 0.7.0

* pre-commit

* upgrade to @jupyter/chat ^0.7.0 in frontend
* remove v2 llm memory, implement ReplyStream

* remove v2 websockets & REST handlers

* remove unused v2 data models

* fix slash command autocomplete

* fix unit tests

* remove unused _learned context provider

* fix mypy

* pre-commit

* fix optional k arg in YChatHistory

* bump jupyter chat to 0.7.1 to fix Python 3.9 tests

* revert accidentally breaking /learn
@dlqqq dlqqq added the enhancement New feature or request label Dec 25, 2024
@dlqqq dlqqq merged commit 899af0a into main Dec 26, 2024
20 checks passed
@dlqqq dlqqq deleted the v3-dev branch December 26, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants