District-Administration-Varanasi / court-judgement

1 stars 3 forks source link

AI Copilot UI Requirements and Flow #20

Open Grinzypino opened 1 month ago

Grinzypino commented 1 month ago

AI Copilot UI Requirements and Flow

Admin Panel

  1. Input Field for Document Types

    • An input field where the admin can specify the types of documents they will provide for training.
    • + and - buttons to increase or decrease the number of fields.
  2. Upload File Button

    • A button to upload files to the backend.
  3. Train Button

    • A button to send a request to the backend for creating a JSON Schema for each kind of input file the admin has uploaded.

User Side - QnA Page

  1. Document Type Dropdown

    • A dropdown menu where the user can select the type of document they want to generate.
  2. Generate Button

    • A button for generating questions, which sends a POST request to the backend API with the selected document type as a string.
  3. Display dynamic JSON Object of Questions

    • The JSON object of questions received in response is displayed to the user.
  4. Answer Form

    • A form-like structure where the user fills in answers for each question displayed below them.
  5. Fill Button

    • A button to send the answers in a set JSON format to the backend along with the questions.
  6. Repeat Steps 7-9

    • Steps 7-9 are repeated until all relevant answers are obtained/filled. When this happens, the UI receives an empty JSON object.
  7. Generate Draft Button

    • A button that appears to send a request to create a draft of the document.
  8. Edit Generated Draft

    • The generated draft appears to the user with added functionality to edit it if desired.
biratdatta commented 1 month ago

Questions:- image

-[ ] n no of input field can be made -[ ] What to use in the editor for generating a draft? JSON or rich-text editor -[ ] User FLOW, should the questions be pre-made or they need to be generated everytime there is a generate call @Grinzypino you can add other questions if I missed any