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.
Fixes #
🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request introduces several improvements and bug fixes to the codebase. The primary focus is on enhancing the functionality of the LangChain integration, which includes updates to various chains, chat models, and tools. Additionally, there are modifications to the source code for the online lambda function, the model ETL process, and the chatbot user interface.
Type of change
File Stats Summary
File number involved in this PR: 19, unfold to see the details:
The file changes summary is as follows:
GLM4Chat9BConversationSummaryChain
andNovaProConversationSummaryChain
, which inherit fromClaude2ConversationSummaryChain
and set different model IDs.ChatGPT4oChatChain
andNovaProChatChain
, which extend existing chat chain classes and specify different language model types.NovaProRAGLLMChain
that extendsClaude2RagLLMChain
and sets themodel_id
toLLMModelType.NOVA_PRO
.Internlm2Chat20BHydeChain
andNovaProHydeChain
, which extend existing classes and specify model IDs for LLM models.Claude35SonnetToolCallingChain
andNovaProToolCallingChain
, which inherit fromClaude2ToolCallingChain
and specify different model IDs.NovaPro
that inherits fromClaude2
. It sets themodel_id
toLLMModelType.NOVA_PRO
and disablesenable_auto_tool_choice
andenable_prefill
. Additionally, there is a commented-outcreate_model
method that sets up the AWS Bedrock inference profile for the NovaPro model.llm_stream_helper
for processing LLM output and extracting references and associated documents/figures.🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request introduces improvements and bug fixes to the language model integration and the user interface components of the chatbot application. The changes include updates to the LangChain integration, which handles the conversation flow, query rewriting, and response generation. Additionally, modifications have been made to the front-end components responsible for displaying messages in the chatbot interface.
Type of change
File Stats Summary
File number involved in this PR: 19, unfold to see the details:
The file changes summary is as follows:
NovaProRAGLLMChain
that extendsClaude2RagLLMChain
and sets themodel_id
toLLMModelType.NOVA_PRO
.ChatGPT4oChatChain
andNovaProChatChain
, which extend existing chat chain classes for different language models, likely ChatGPT-4 and Anthropic's Nova Pro.figure
variable assignment, adds addb_additional_kwargs
dictionary to the context message, and conditionally assigns a truncated reference figure toddb_additional_kwargs["figure"]
if available.🤖 AI-Generated PR Description (Powered by Amazon Bedrock)
Description
This pull request includes several updates and improvements to the codebase, primarily focused on enhancing the functionality of the LangChain integration and the chatbot interface. The changes span multiple files and directories, addressing various aspects of the project.
Key updates include:
Modifications to the LangChain integration, specifically the chains, chat models, and tools. These changes aim to improve the overall performance, efficiency, and functionality of the language model integration.
Updates to the chatbot interface components, such as Message.css and Message.tsx. These modifications likely enhance the user experience and visual representation of the chatbot.
Changes to utility files like constant.py, prompt_utils.py, and response_utils.py, which may involve improvements to constant definitions, prompt handling, and response formatting.
Modifications to the sm_predictor.py file, which could potentially impact the model prediction functionality.
Updates to the const.ts file in the portal directory, suggesting changes to constant values or configurations used throughout the application.
Type of change
File Stats Summary
File number involved in this PR: 20, unfold to see the details:
The file changes summary is as follows:
CohereCommandRPlusToolCallingChain
andNovaProToolCallingChain
, which inherit fromClaude2ToolCallingChain
and specify different language model types.Internlm2Chat20BHydeChain
andNovaProHydeChain
, which inherit from existing classes and define specific model types.NovaProRAGLLMChain
that extendsClaude2RagLLMChain
and sets themodel_id
attribute toLLMModelType.NOVA_PRO
.ChatGPT4oChatChain
andNovaProChatChain
, for utilizing the ChatGPT 4.0 and Nova Pro language models, respectively.