Skip to content

Conversation

@hirokiterashima
Copy link
Member

Changes

  • Add new /api/chatbot endpoint for CRUD operations for a chatbot
  • Add new /api/aws-bedrock/chat endpoint for sending chat messages to AWSBedrock
  • Add service and DAO layer classes for Chatbot

Test prep

  1. Test with feat(Student): Persistent Chatbot WISE-Client#2252
  2. Add properties to application-dockerdev.properties
aws.bedrock.api.key=
aws.bedrock.runtime.endpoint=
  1. Create database schema
create table chatbot_chats (
    id bigint not null auto_increment,
    runId bigint not null,
    workgroupId bigint not null,
    title varchar(255),
    createdAt datetime not null,
    lastUpdated datetime not null,
    isDeleted bit not null default 0,
    index chatbotChatsRunIdIndex (runId),
    index chatbotChatsWorkgroupIdIndex (workgroupId),
    constraint chatbotChatsRunIdFK foreign key (runId) references runs (id),
    constraint chatbotChatsWorkgroupIdFK foreign key (workgroupId) references workgroups (id),
    primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

create table chatbot_messages (
    id bigint not null auto_increment,
    chatId bigint not null,
    role varchar(20) not null,
    content text not null,
    timestamp datetime,
    nodeId varchar(30) not null,
    index chatbotMessagesChatIdIndex (chatId),
    constraint chatbotMessagesChatIdFK foreign key (chatId) references chatbot_chats (id) on delete cascade,
    primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1. Follow testing instructions on feat(Student): Persistent Chatbot WISE-Client#2252

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.

2 participants