Schemas

Prev Next

Schemas determine the classification of information.

To add a schema:

  1. Click Schemas in the navigation pane.
    Image
  2. Click New Schema.
    Image
  3. Enter the details:
    • Schema Details
      Name – A name to identify the schema.
      Format – The format for this schema:

      • Schema – The schema is general.
      • Keywords – The schema is based on keywords.
      • Summary – The schema will be used for creating summaries, such as for meetings.
      • FAQ – The schema will be used for FAQs.

      Type – Use an LLM or Regex when the rules will not be static.

    • Settings & Status
      Global Schema – Slide on if you want the schema to be run on every dataset.
      Schema Enabled or Schema Disabled – The current status of the schema.

    • Schema Definition
      Schema – Enter the instruction about how to perform classification in one of the following formats:

      • Text
      • JSON
      • YAML
  4. Click Save Changes.

Image

Example Schema Definitions

The followin schema definitions are examples in JSON format.

Schema

{
        "doctor_name": {
                "type": "string",
                "description": "Full name of the doctor who authored or signed the report"
        },
        "examination_date": {
                "type": "string",
                "format": "date",
                "description": "Date when the medical examination was conducted or reported, in ISO 8601 format (YYYY-MM-DD)"
        },
        "examination_type": {
                "type": "string",
                "description": "Type or name of the medical examination (e.g., Blood Test, MRI Scan, Kidney Function Test)"
        },
        "short_summary": {
                "type": "string",
                "description": "A concise textual summary of the examination findings and context"
        }
}

Keywords

{
        "keywords": {
                "type": "array",
                "items": {
                        "type": "string"
                },
                "description": "extract keywords from file."
        }
}

Summary

{
        "shortsummary": {
                "type": "string",
                "description": "A one-line summary of the document"
        }
}

FAQ

{
        "faq": {
                "type": "array",
                "items": {
                        "type": "object",
                        "properties": {
                                "question": {
                                        "type": "string",
                                        "description": "A key question that this document answers"
                                },
                                "answer": {
                                        "type": "string",
                                        "description": "The answer to this question based on the document content"
                                }
                        },
                        "required": [
                                "question",
                                "answer"
                        ]
                },
                "description": "Extract 3-5 frequently asked questions and their answers from this document"
        }
}

Editing a Schema

To edit a schema:

  1. Click Schemas in the navigation pane.
    Image
  2. Click the schema to edit.
    Image
  3. Make the changes as required.
  4. Click Save Changes.