geekleteam / Hackathon_1_FAB_team_2

1 stars 2 forks source link

Hackathon_1_FAB_team_2 (ChatBot and Mermaidcode Generation)

Working Demo

Individual Demos from the team

Our 2 Repos for the phase_2:

https://github.com/geekleteam/Hackathon_1_FAB_team_2;

https://github.com/geekleteam/Hackathon_1_FAB_team_3

Converstational Bot

Chat LLM API:

This API is used to push user's chat with the bot to the database.

{
    "userID": "user123",
    "requestID": "request123",
    "user_input": "I want to implement and User registration application for my club",
    "modelParameters": {
        "temperature": 0.75,
        "max_tokens": 2000,
        "top_p": 0.9
    }
}

Response:

{
    "user_input": "I want to implement and User registration application for my club",
    "model_output": "What are the main components or features of the user registration application?",
    "wantsToDraw": false
}

Mermaid Code Generation

Mermaid Code Generation API:

{
    "userID": "user123",
    "requestID": "request123"
}

Response:

{
    "mermaid_code": "\ngraph TB\n\nsubgraph Database\n    style Database fill:#9370DB,stroke:#333,stroke-width:2px\n    DB[PostgreSQL Database]\nend\n\nsubgraph Server\n    style Server fill:#87CEEB,stroke:#333,stroke-width:2px\n    APP[User Registration Application Server]\nend\n\nsubgraph Authentication\n    style Authentication fill:#FFA07A,stroke:#333,stroke-width:2px\n    AUTH[Authentication Service]\n    MFA[Multi-Factor Authentication]\nend\n\nsubgraph User Profile\n    style \"User Profile\" fill:#90EE90,stroke:#333,stroke-width:2px\n    PROFILE[User Profile Management]\nend\n\nsubgraph Registration\n    style Registration fill:#FFD700,stroke:#333,stroke-width:2px\n    REG[Registration Workflow]\n    EMAIL[Email Verification]\n    CONSENT[Consent Management]\nend\n\nsubgraph Security\n    style Security fill:#FF6347,stroke:#333,stroke-width:2px\n    ENCRYPT[Data Encryption]\n    POLICY[Data Protection Policies]\n    COMPLIANCE[Regulatory Compliance]\nend\n\nsubgraph Cloud\n    style Cloud fill:#ADD8E6,stroke:#333,stroke-width:2px\n    AWS[AWS Cloud Services]\nend\n\nDB --> APP\nAPP --> AUTH\nAUTH --> MFA\nAPP --> PROFILE\nREG --> EMAIL\nREG --> CONSENT\nAPP --> ENCRYPT\nAPP --> POLICY\nAPP --> COMPLIANCE\nAPP --> AWS\n",
    "userID": "yash"
}