Chainlit / cookbook

Chainlit's cookbook repo
https://github.com/Chainlit/chainlit
726 stars 270 forks source link

Sequential chain #31

Closed krishvsoni closed 8 months ago

krishvsoni commented 11 months ago

Title: Enhancements to Sequential Chain for Beginner-Friendly Usage

Description:

I've made several enhancements to the Sequential Chain in this pull request to make it more beginner-friendly and robust. The key improvements include:

  1. Improved Usability: I've streamlined the interface and added comments for clarity, making it easier for beginners to understand and use the Sequential Chain.

  2. Additional Examples: I've included more comprehensive usage examples in the code, helping beginners grasp the full potential of the Sequential Chain.

  3. Detailed Documentation: I've added detailed documentation within the code to explain each step and parameter, making it easier for newcomers to navigate.

These changes aim to provide a smoother learning experience for those new to Langchain and its Sequential Chain feature.

Please review the enhancements and consider merging them into the repository to benefit beginners and improve the overall usability of the Sequential Chain.

Thank you for your consideration.

krishvsoni commented 11 months ago

This commit adds a new function called modify_message_history to the codebase. This function can be used to modify the message history in any way you want. For example, you could use it to add or remove messages, modify the content of messages, or change the order of messages.

This function is needed because it gives you more control over the message history. For example, you could use it to: