-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25a572b
commit f4eba6b
Showing
216 changed files
with
22,933 additions
and
16,233 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,8 @@ | ||
#!/usr/bin/env node | ||
import 'source-map-support/register'; | ||
import * as cdk from 'aws-cdk-lib'; | ||
import * as lambda from 'aws-cdk-lib/aws-lambda'; | ||
|
||
import { ChatBotStack } from '../lib/chatbot-stack'; | ||
import { ChatBotUIStack } from '../lib/chatbot-ui-stack'; | ||
import { ChatBotVpcStack } from '../lib/chatbot-vpc-stack'; | ||
import { AuroraSemanticSearchStack } from '../lib/aurora-semantic-search/aurora-semantic-search-stack'; | ||
|
||
const config = { | ||
deployUI: true, | ||
deploySemanticSearch: false, | ||
prefix: 'GenAI', | ||
maxParallelLLMQueries: 10, | ||
}; | ||
import { AwsGenaiLllmChatbotStack } from '../lib/aws-genai-llm-chatbot-stack'; | ||
|
||
const app = new cdk.App(); | ||
const chatBotVpcStack = new ChatBotVpcStack( | ||
app, | ||
`${config.prefix}-ChatBotVpcStack` | ||
); | ||
|
||
let semanticSearchApi: lambda.Function | null = null; | ||
if (config.deploySemanticSearch) { | ||
const semanticSearch = new AuroraSemanticSearchStack( | ||
app, | ||
`${config.prefix}-AuroraSemanticSearchStack`, | ||
{ | ||
vpc: chatBotVpcStack.vpc, | ||
} | ||
); | ||
|
||
semanticSearchApi = semanticSearch.semanticSearchApi; | ||
} | ||
|
||
const chatBotStack = new ChatBotStack(app, `${config.prefix}-ChatBotStack`, { | ||
prefix: config.prefix, | ||
vpc: chatBotVpcStack.vpc, | ||
semanticSearchApi, | ||
maxParallelLLMQueries: config.maxParallelLLMQueries, | ||
}); | ||
|
||
if (config.deployUI) { | ||
const chatBotUIStack = new ChatBotUIStack( | ||
app, | ||
`${config.prefix}-ChatBotUIStack`, | ||
{ | ||
prefix: config.prefix, | ||
} | ||
); | ||
chatBotUIStack.addDependency(chatBotStack); | ||
} | ||
new AwsGenaiLllmChatbotStack(app, 'AwsGenaiLllmChatbotStack'); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
chatbot-ui/src/common/chat-context/actions/add-message-action.ts
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
chatbot-ui/src/common/chat-context/actions/add-sessions-action.ts
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
chatbot-ui/src/common/chat-context/actions/set-chat-mode.ts
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
chatbot-ui/src/common/chat-context/actions/set-generation-state-action.ts
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
chatbot-ui/src/common/chat-context/actions/set-model-id-action.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.