这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@self-programming-bio-robot
Copy link

@self-programming-bio-robot self-programming-bio-robot commented Jan 3, 2024

Hello everyone!
Firstly, I apologize for the extensive size of this pull request. These changes were initially developed for my own purposes.

I'm excited to share this new pull request that introduces a significant enhancement to our workspace functionality. This update is in response to the feature request for allowing users to create, manage, and navigate separate chat sessions within each workspace. Here's what this PR accomplishes:

Key Additions:

  • Database Schema Update: Added a new thread model to our database schema to support separate chat sessions.

  • Data Migration: Developed a migration script that seamlessly integrates existing data into the new schema without any loss of information.

  • API Enhancements: Implemented a set of APIs to handle operations like retrieving, creating, updating, and deleting chat threads.

  • UI Integration: Introduced a new UI block in the sidebar for thread management. This includes functionalities like creating new threads, renaming them. I've made sure to align these changes with the existing chat paths.

Notes for Reviewers:

  • Frontend Implementation: As my expertise primarily lies in backend development, I've done my best with the frontend integration. However, I am not a frontend specialist, so I would greatly appreciate any suggestions or improvements in this area.
  • Adherence to Code Style: I've made an effort to follow the repository's coding style and standards. Please let me know if there are any discrepancies or areas for improvement.

Testing and Feedback:

I've thoroughly tested these changes to ensure functionality and reliability. However, additional testing and feedback are always welcome. If you encounter any issues or have suggestions for further improvement, please feel free to share.

Thank you for taking the time to review this PR. I look forward to your valuable inputs and collaboration in refining this feature.

P.S. Should you decide to migrate to a different provider, such as PostgreSQL, please exercise caution with the migration script. I've crafted a specific block for migrating legacy data. Feel free to copy this block into your migration scripts.

@timothycarambat timothycarambat self-assigned this Jan 3, 2024
# Conflicts:
#	server/models/threadChats.js
@nitchevcasseus
Copy link

What's the update on this? 😭 Desperately need it.

@rpol
Copy link

rpol commented Jan 18, 2024

It is a must for any LLM Chat!

@colakang
Copy link

colakang commented Feb 8, 2024

Any updates on this pull requests?

@Anubis-Labs
Copy link

This is epic!!!! Thank for making this. Extremely grateful!

@timothycarambat
Copy link
Member

Due to merge conflicts and automatic compatibility with existing AnythingLLM versions, this feature is being moved to #699.

@self-programming-bio-robot Ping me if in Discord & would like a contributor badge. While we couldn't use the existing version of this PR, you did accomplish this feature and were the catalyst for its execution into master 👍

@nitchevcasseus @rpol @colakang @ThomasEwing04 Please follow the preceding issue. Should be merged tomorrow, at worst Monday next week - promise

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.

6 participants