MCPcopy Index your code
hub / github.com/aws-samples/aws-genai-llm-chatbot

github.com/aws-samples/aws-genai-llm-chatbot @v5.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v5.0.0 ↗ · + Follow
1,469 symbols 4,834 edges 400 files 21 documented · 1% updated 8d agov5.0.0 · 2025-01-23★ 1,400
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Building RAG use cases with GenAI Chatbot on AWS

Release Notes GitHub star chart License: MIT

Deploy with GitHub Codespaces

Full Documentation

sample

🚀 NEW! Support for new Amazon Nova Models 🚀

Deploy this chatbot to use the recently announced Amazon Nova models!

These powerful models can understand and generate images and videos.

Deploy this chatbot to experiment with: - Amazon Nova Micro - Amazon Nova Lite - Amazon Nova Pro - Amazon Nova Canvas - Amazon Nova Reels

Make sure to request access to the new models here

Read more about the new models here


This solution provides ready-to-use code so you can start experimenting with a variety of Large Language Models and Multimodal Language Models, settings and prompts in your own AWS account.

Supported model providers:

Additional Resources

Resource Description
Secure Messenger GenAI Chatbot A messenger built on Wickr that can interface with this chatbot to provide Q&A service in tightly regulated environments (i.e. HIPAA).
Project Lakechain A powerful cloud-native, AI-powered, document (docs, images, audios, videos) processing framework built on top of the AWS CDK.
AWS Generative AI CDK Constructs Open-source library extension of the AWS Cloud Development Kit (AWS CDK) aimed to help developers build generative AI solutions using pattern-based definitions for their architecture.
Artifacts and Tools for Bedrock An innovative chat-based user interface with support for tools and artifacts. It can create graphs and diagrams, analyze data, write games, create web pages, generate files, and much more.

Roadmap

Roadmap is available through the GitHub Project

Authors

Contributors

contributors

License

This library is licensed under the MIT-0 License. See the LICENSE file.

Although this repository is released under the MIT-0 license, its front-end and SQL implementation use the following third party projects: - psycopg2-binary - jackspeak - package-json-from-dist - path-scurry

These projects' licensing includes the LGPL v3 and BlueOak-1.0.0 licenses.

Legal Disclaimer

You should consider doing your own independent assessment before using the content in this sample for production purposes. This may include (amongst other things) testing, securing, and optimizing the content provided in this sample, based on your specific quality control practices and standards.

Extension points exported contracts — how you extend this code

AwsGenAILLMChatbotStackProps (Interface)
(no doc)
lib/aws-genai-llm-chatbot-stack.ts
LangChainInterfaceProps (Interface)
(no doc)
lib/model-interfaces/langchain/index.ts
LayerProps (Interface)
(no doc)
lib/layer/index.ts
RealtimeResolversProps (Interface)
(no doc)
lib/chatbot-api/appsync-ws.ts
ImageRepositoryMappingProps (Interface)
(no doc)
lib/sagemaker-model/image-repository-mapping.ts
SharedProps (Interface)
(no doc)
lib/shared/index.ts
RagEnginesProps (Interface)
(no doc)
lib/rag-engines/index.ts
ModelsProps (Interface)
(no doc)
lib/models/index.ts

Core symbols most depended-on inside this repo

getByPath
called by 62
integtests/user_interface/react_app/pages/dom.py
getErrorMessage
called by 57
lib/user-interface/react-app/src/common/utils.ts
onChange
called by 53
lib/user-interface/react-app/src/components/navigation-panel.tsx
format
called by 34
lib/model-interfaces/langchain/functions/request-handler/adapters/bedrock/base.py
get_workspace
called by 27
integtests/clients/appsync_client.py
register
called by 24
lib/shared/layers/python-sdk/python/genai_core/registry/index.py
useOnFollow
called by 21
lib/user-interface/react-app/src/common/hooks/use-on-follow.ts
get_adapter
called by 19
lib/shared/layers/python-sdk/python/genai_core/registry/index.py

Shape

Function 700
Method 358
Class 230
Interface 122
Route 42
Enum 17

Languages

Python55%
TypeScript45%

Modules by API surface

tests/chatbot-api/functions/api-handler/routes/documents_test.py36 symbols
lib/chatbot-api/functions/api-handler/routes/documents.py36 symbols
integtests/clients/appsync_client.py35 symbols
lib/model-interfaces/langchain/functions/request-handler/adapters/base/base.py27 symbols
lib/chatbot-api/functions/api-handler/routes/workspaces.py24 symbols
lib/shared/layers/python-sdk/python/genai_core/documents.py23 symbols
tests/chatbot-api/functions/api-handler/routes/workspaces_test.py19 symbols
lib/model-interfaces/langchain/functions/request-handler/adapters/bedrock/base.py19 symbols
lib/user-interface/react-app/src/components/chatbot/types.ts18 symbols
lib/user-interface/react-app/src/common/api-client/api-client.ts17 symbols
lib/shared/layers/python-sdk/python/genai_core/types.py16 symbols
integtests/conftest.py16 symbols

For agents

$ claude mcp add aws-genai-llm-chatbot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page