GenAi personal assistant using Spring Boot and Ollama
- Install required environments
- Clone repository
git clone https://github.com/sachi097/springboot-genai-personal-assitant.git
- Update environment files
- add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in application.yaml
- Build and run
mvn clean
mvn -f pom.xml clean package -DskipTests
java -jar ./target/*.jar
- Test with curl
curl -XPOST -H "Content-type: application/json" -d '{
"messages": [
{
"userId": "sachinTestId2",
"content": "hello",
"timestamp": 1728265388553,
"role": "user"
}
]
}' 'http://localhost:8081/api/chat/getChatResponse'
You can run the project directly by opening the project in IntelliJ IDEA