This is a sample Spring Boot application that demonstrates the capabilities of Generative AI using the Amazon Bedrock API. The application allows you to interact with various Amazon Bedrock foundation models through different playgrounds, including text, chat, and image playgrounds.
- Text Playground: Interact with Amazon Bedrock foundation models using text input and output.
- Chat Playground: Engage in conversational interactions with the foundation models.
- Image Playground: Generate and manipulate images using the foundation models' capabilities.
- Foundation Model List: View the available Amazon Bedrock foundation models and their characteristics.
- Java Development Kit (JDK) installed
- AWS account with appropriate permissions to access Amazon Bedrock
- AWS credentials configured (e.g., AWS CLI, environment variables, or credentials file)
-
Clone the repository: git clone https://github.com/your-repo/genai-springboot.git
-
Navigate to the project directory: cd genai-springboot
-
Build the project: ./mvnw clean package
-
Run the application: java -jar target/genai-springboot-0.0.1-SNAPSHOT.jar
-
Access the application in your web browser at
http://localhost:8080
.
The application uses the AWS SDK for Java to interact with Amazon Bedrock. You can configure the AWS credentials and region using environment variables or a credentials file.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project was inspired by and utilizes the following resources:
This project is licensed under the MIT License.