Skip to content

Commit eba22be

Browse files
authored
Upgrade to version v3.0.0
### Added - Feedback collection mechanism for LLM chat responses with positive/negative feedback, feedback categories and reason. - Support for Bedrock Converse APIs for improved model support. - Support for all Amazon Bedrock models through the use of model IDs or inference profiles. - Use case details API to retrieve deployment information. - Bedrock token usage, stop reason and feedback metrics in CloudWatch dashboard. - Friendly names and descriptions on model selection UI. - Streaming support for Agent UseCases. ### Changed - Chat UI with a New/Refreshed look and enhanced error handling. - Python runtime from 3.12 to Python 3.13. - Use Case ID to expect a full 36-character UUID. - Prompt step for Bedrock model provider to require system prompt without {input} and {history} placeholders as a result of switching to Converse APIs. {context} placeholder is still required for RAG use cases. ### Fixed - Bug where documents returned from Bedrock knowledge bases without a title were not properly di
2 parents 61f987a + a14c57e commit eba22be

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

source/ui-chat/src/models/api/response.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ export interface ChatErrorResponse extends ChatResponse {
2323
}
2424

2525
export const isChatSuccessResponse = (response: ChatResponse): response is ChatSuccessResponse => {
26-
return (response as ChatSuccessResponse).data !== undefined;
26+
const message = response as ChatSuccessResponse;
27+
return (
28+
message &&
29+
typeof message === 'object' &&
30+
('data' in message || 'sourceDocument' in message || 'rephrased_query' in message)
31+
);
2732
};
2833

2934
export const isErrorResponse = (response: ChatResponse): response is ChatErrorResponse => {

source/ui-deployment/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const DEFAULT_ADDITIONAL_KENDRA_STORAGE_CAPACITY = 0;
3737
export const DEFAULT_SCORE_THRESHOLD = 0.0;
3838

3939
//prompt wizard step default values
40-
export const DEFAULT_REPHRASE_QUESTION_STATE = true;
40+
export const DEFAULT_REPHRASE_QUESTION_STATE = false;
4141
export const DEFAULT_CHAT_HISTORY_LENGTH = 20;
4242
export const DEFAULT_DISAMBIGUATION_PROMPT_ENABLED = true;
4343

0 commit comments

Comments
 (0)