What are Quality Tests?
Quality tests in Galtea are designed to evaluate the quality, accuracy, and correctness of your product’s outputs. These tests typically consist of questions or prompts paired with ideal answers, allowing Galtea to assess how well your product’s responses match the expected standard.Creating Quality Tests
You can create quality tests in Galtea through two methods:- Generate from Knowledge Base
- Upload Your Own Test
1
Prepare your knowledge base file
Create a file containing all the information that the Product should know and adhere to
2
Configure the test
Select Quality as the test type and Generated as the test origin
The test creation process can be done via the SDK or the Galtea dashboard
3
Generate the test
Galtea will process the Knowledge Base and generate a Test File containing Test Cases for you
Example Quality Tests and File Format
Here are examples of the content and its creation-document structure:Basic Knowledge Questions
Basic Knowledge Questions
- Table View
- Raw CSV
# | Instance ID | Input | Expected Output | Tag | Source |
---|---|---|---|---|---|
0 | 0 | What is the Capital of France? | Paris | original | |
1 | 1 | What is the largest planet in our solar system? | Jupiter | original | |
… |
Technical Product Specifications
Technical Product Specifications
- Table View
- Raw CSV
# | Instance ID | Input | Expected Output | Tag | Source |
---|---|---|---|---|---|
0 | 0 | ¿Cuál es el sistema operativo del Samsung Galaxy A8 EE? | El sistema operativo del Samsung Galaxy A8 EE es Android 8.1. | original | Noviembre 2018Catálogo dispositivos móviles Samsung Galaxy A8 EE… |
1 | 1 | ¿Cuántos megapíxeles tiene la cámara principal del Huawei P20? | La cámara principal del Huawei P20 tiene 20 MP + 12 MP. | original | Huawei P20 Sistema Operativo : Android 8.1 + EMUI 8.1 Pantalla : 5.8” Full View Resolución Full HD… |
Compliance and Regulations
Compliance and Regulations
- Table View
- Raw CSV
# | Instance ID | Input | Expected Output | Tag | Source |
---|---|---|---|---|---|
0 | 0 | What are three key provisions of the GDPR? | The GDPR provides several key rights to data subjects, including: the right to access, the right to be forgotten, and the right to data portability. | original | GDPR Guidelines Document (2018): The General Data Protection Regulation (GDPR) is a regulation in EU law on data protection and privacy in the European Union and the European Economic Area… |
1 | 1 | What does CCPA stand for and who does it protect? | CCPA stands for California Consumer Privacy Act. It protects California residents’ rights regarding their personal information collected by businesses. | original | The California Consumer Privacy Act (CCPA) is a state statute intended to enhance privacy rights and consumer protection for residents of California, United States… |
This structure is the required by Galtea in order to automatically generate the test cases for your test. If that format is not provided, you can still manually create the test cases.
For automatic processing, the file format must be
CSV
.The extent of the examples provided above are short extractions. In the actual CSV files they can be much longer and the amount of test cases (rows) can be much higher.
Structure of Quality Tests
Quality tests have a specific structure designed to facilitate effective evaluation:A unique identifier for the test instance.
The question or prompt that the product is expected to respond to.
Example: “What are three key provisions of the GDPR related to data subject rights?”
The expected answer to the question, serving as a benchmark for evaluation.
Example: “The GDPR provides several key rights to data subjects, including: the right to access, the right to be forgotten, the right to rectification, the right to restrict processing, the right to data portability, and the right to object to processing.”
A categorization tag for the test instance. Example: “original”
The source text used to generate the test case, which can be a section of a document, a webpage, or any other relevant material. This field is particularly useful for tracing the origin of the information used in the test case.Example: “GDPR Guidelines Document (2018): The General Data Protection Regulation (GDPR) is a regulation in EU law on data protection and privacy in the European Union and the European Economic Area…”