Skip to content

Commit

Permalink
V2 Initial Commit (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigadsoleiman authored Aug 17, 2023
1 parent 25a572b commit f4eba6b
Show file tree
Hide file tree
Showing 216 changed files with 22,933 additions and 16,233 deletions.
426 changes: 190 additions & 236 deletions README.md

Large diffs are not rendered by default.

Binary file modified assets/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/kendra-rag-sample.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/modes/standard.gif
Binary file not shown.
Binary file removed assets/modes/streaming.gif
Binary file not shown.
Binary file modified assets/multimodel.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/opensearchvectorsearch-rag-sample.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/rag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sample.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/screenshots/service-quota.png
Binary file not shown.
Binary file removed assets/semantic/architecture.jpg
Binary file not shown.
File renamed without changes
49 changes: 2 additions & 47 deletions bin/aws-genai-llm-chatbot.ts
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');
23 changes: 0 additions & 23 deletions chatbot-ui/index.html

This file was deleted.

50 changes: 0 additions & 50 deletions chatbot-ui/package.json

This file was deleted.

Binary file removed chatbot-ui/public/favicon.ico
Binary file not shown.
8 changes: 0 additions & 8 deletions chatbot-ui/public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions chatbot-ui/public/robots.txt

This file was deleted.

60 changes: 0 additions & 60 deletions chatbot-ui/src/app.scss

This file was deleted.

17 changes: 0 additions & 17 deletions chatbot-ui/src/app.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions chatbot-ui/src/common/app-context.ts

This file was deleted.

40 changes: 0 additions & 40 deletions chatbot-ui/src/common/chat-context/actions/add-message-action.ts

This file was deleted.

42 changes: 0 additions & 42 deletions chatbot-ui/src/common/chat-context/actions/add-sessions-action.ts

This file was deleted.

22 changes: 0 additions & 22 deletions chatbot-ui/src/common/chat-context/actions/set-chat-mode.ts

This file was deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions chatbot-ui/src/common/chat-context/actions/set-model-id-action.ts

This file was deleted.

Loading

0 comments on commit f4eba6b

Please sign in to comment.