Skip to content

This Java Spring Boot service leverages TogetherAI's advanced models to convert image and text inputs into PlantUML diagrams

License

Notifications You must be signed in to change notification settings

extrawest/ai-diagram-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI diagram creator App

Maintenance Maintainer Ask Me Anything ! License GitHub release

This Java Spring Boot service leverages TogetherAI's advanced models to convert image and text inputs into PlantUML diagrams. It provides an API that accepts images and text descriptions as input, processes them through TogetherAI’s machine learning models, and outputs structured PlantUML code. The service facilitates quick and accurate diagram generation, particularly useful for transforming visual or textual information into clear and professional UML diagrams. This service is an ideal solution for teams needing automated, high-quality UML diagram generation from varied data inputs.

screen-capture.mp4

Key Features

  • Image to Diagram: Convert image into Plant diagram text using TogetherAI models.
  • Text to Diagram: Convert text (JSON) into Plant diagram text using TogetherAI models.
  • Real-time Diagram Generation: Outputs PlantUML-compatible code that can be rendered for visual representation, suitable for architectural, workflow, and data model diagrams.
  • REST API Architecture: Built with Spring Boot for scalable deployment, ensuring easy integration with other services and applications.

Tech Stack

  • Java 21
  • SpringBoot 3.3.3: Backend framework for building fast and scalable applications.
  • Together AI: Provides models for image/text to diagram.
  • Langgraph4j: A library for building stateful, multi-agents applications with LLMs, built for work with langchain4j.

How It Works

  1. Image to Diagram: Service is converting image into Plant diagram text using TogetherAI models.
  2. Text to Diagram: Service is converting text (JSON) into Plant diagram text using TogetherAI models.

Running On Local Machine (Linux):

  1. Set up the following environment variables.
    • export AI_API_KEY=your_api_key;
  2. Run the command: mvn exec:java -Dspring.profiles.active=local
  3. Open the following link in your browser: http://localhost:8208/api/swagger-ui/index.html#/

Contributing

Feel free to open issues or submit pull requests to improve the project. Contributions are welcome!

About

This Java Spring Boot service leverages TogetherAI's advanced models to convert image and text inputs into PlantUML diagrams

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages