Skip to content

ashrafulislambd/Diagra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diagra Backend

This is the backend for Diagra, a tool to generate diagrams and flowchart from natural language prompts. This is written using CrewAI, llama3, Django and Django REST Framework. (The frontend project is available at https://github.com/ashrafulislambd/Diagra-frontend)

Requirements

Make sure you have installed latest version of Python and Pip on your computer

Usage

Clone this into your local folder by running the following command,

git clone https://github.com/ashrafulislambd/Diagra.git

After that change into the directory and run the following commands to start your application

cd Diagra
pip install -r requirements.txt

The above command is required only the first time you run. From each of the next time you only run the following command,

python manage.py runserver

This will start the server on http://127.0.0.1:8000

API Endpoints

GET /article/?topic=<topic_name>

It will generate a graphviz dot diagram on topic_name and return like this,

Response:

{
    "output": "digraph {... diagram ...}"
}

Team Members

Special Thanks To

  • Python and it's awsome community
  • CrewAI
  • LangChain
  • Llama3
  • Graphviz
  • All the people who helped testing, developing and improving the project.
  • All the team members.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages