This web application is built using Spring Boot and integrates DeepSeek AI locally with the help of Ollama. The integration is facilitated through Spring AI, providing seamless communication between the application and the AI model.
- Local execution of DeepSeek AI
- Integration with Ollama for AI model management
- Spring AI support for enhanced interaction with the model
- RESTful API endpoints for AI-powered features
- Scalable and modular architecture
Ensure you have the following installed:
- Java 17 or later
- Spring Boot 3+
- Ollama installed and configured
- DeepSeek AI model set up locally
-
Clone the repository:
git clone https://github.com/Iamanajaz/deepseek_springboot cd deepseek_springboot -
Build the application:
./mvnw clean package
-
Run the application:
java -jar target/deepseek_springboot.jar
Modify the application properties to suit your setup:
spring.application.name=deepseek_springboot
spring.ai.ollama.chat.options.model=deepseek-r1:latest
management.endpoints.web.exposure.include=*
management.info.env.enabled=true
info.app.name=deepseek_springboot
info.app.description=DeepSeek AI chatbot project for Spring Boot
info.app.version=0.0.1-SNAPSHOTEnsure Ollama is running and DeepSeek AI is loaded before starting the application.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/chat | Send a message to AI |
| GET | /api/status | Check application status |
- Start the Ollama service
- Ensure the DeepSeek AI model is running
- Run the Spring Boot application
- Use the API to interact with AI capabilities
Feel free to fork this repository, create a feature branch, and submit a pull request.
This project is licensed under the MIT License.
For issues and contributions, open an issue on GitHub or reach out via email at amanajaz990@gmail.com