https://github.com/build-on-aws/amazon-bedrock-apprunner-chatterdox-webapp
Use Amazon Bedrock and LangChain to build an application to chat with web pages - deploy the Go web app with AWS CDK and start asking questions!
https://github.com/build-on-aws/amazon-bedrock-apprunner-chatterdox-webapp
amazon-bedrock generative-ai golang
Last synced: about 2 months ago
JSON representation
Use Amazon Bedrock and LangChain to build an application to chat with web pages - deploy the Go web app with AWS CDK and start asking questions!
- Host: GitHub
- URL: https://github.com/build-on-aws/amazon-bedrock-apprunner-chatterdox-webapp
- Owner: build-on-aws
- License: mit-0
- Created: 2023-11-12T05:54:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T23:50:58.000Z (over 1 year ago)
- Last Synced: 2024-12-17T17:40:49.394Z (6 months ago)
- Topics: amazon-bedrock, generative-ai, golang
- Language: HTML
- Homepage: https://community.aws/posts/amazon-bedrock-apprunner-chatterdox-webapp
- Size: 421 KB
- Stars: 7
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Use Amazon Bedrock and LangChain to build an application to chat with web pages
Conversational interaction with large language model (LLM) based solutions (for example, a chatbot) is quite common. Although production grade LLMs are trained using a huge corpus of data, their knowledge base is inherently limited to the information present in the training data, and they may not possess real-time or the most up-to-date knowledge.
This web application in this repo can be deployed to [AWS App Runner](https://docs.aws.amazon.com/apprunner/latest/dg/what-is-apprunner.html?sc_channel=el&sc_campaign=genaiwave&sc_content=amazon-bedrock-apprunner-chatterdox-webapp&sc_geo=mult&sc_country=mult&sc_outcome=acq) using AWS CDK. You can then use it to ask questions based on the content of a link/URL of your choice.

The application is written in Go, but the concepts apply to any other language you might choose. It uses `langchaingo` as the framework to interact with the [Anthropic Claude (v2) model on Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-bedrock.html#models-supported?sc_channel=el&sc_campaign=genaiwave&sc_content=amazon-bedrock-apprunner-chatterdox-webapp&sc_geo=mult&sc_country=mult&sc_outcome=acq). The web app uses the [Go embed package](https://pkg.go.dev/embed) to serve the static file for the frontend part (HTML, JavaScript and CSS) from directly within the binary.

## Security
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
## License
This library is licensed under the MIT-0 License. See the LICENSE file.