Skip to content

Commit 9060280

Browse files
committed
Merge branch 'refactor-schema' of https://github.com/ConnerWithAnE/STARR-LAB-ChatGPT-RadPaper-Analysis into refactor-schema
2 parents ba6d37d + 304b920 commit 9060280

File tree

3 files changed

+6
-29
lines changed

3 files changed

+6
-29
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ dist/
2020
build/
2121
out/
2222

23+
testfiles/
24+
2325
# Environment files
2426
.env
2527
.env.local

server/src/refined-prompts.data.ts

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -92,46 +92,25 @@ export const questions = {
9292
},
9393
},
9494
testingConditions: {
95-
prompt: `Describe the conditions under which radiation testing was conducted.:
95+
prompt: `Describe the type of radiation testing that was conducted.:
9696
- Type of testing performed (ONLY ONE OF [ TID, SEE, DD])
97-
- Facility name
98-
- Environmental conditions
99-
- Was the test conducted in a terrestrial setting? (Yes/No)
100-
- Was the test conducted in-flight? (Yes/No)
101-
97+
10298
There might be more than one test for the given part, if that is the case return a list of tests pertaining to the part
10399
104100
Return the response as a **valid JSON object** with the following structure:
105101
106102
{
107103
"testing_type": "TID | SEE | DD",
108-
"facility_name": "<string>",
109-
"environmental_conditions": "<string>",
110-
"terrestrial": <true | false>,
111-
"in_flight": <true | false>
104+
112105
}
113106
114107
Return only valid JSON with no extra text.`,
115108
schenma: {
116109
type: "object",
117110
properties: {
118111
testing_type: { type: "string", enum: ["TID", "SEE", "DD"] },
119-
max_fluence: { type: "number" },
120-
energy_levels: { type: "string" },
121-
facility_name: { type: "string" },
122-
environmental_conditions: { type: "string" },
123-
terrestrial: { type: "boolean" },
124-
in_flight: { type: "boolean" },
125112
},
126-
required: [
127-
"testing_type",
128-
"max_fluence",
129-
"energy_levels",
130-
"facility_name",
131-
"environmental_conditions",
132-
"terrestrial",
133-
"in_flight",
134-
],
113+
required: ["testing_type"],
135114
},
136115
},
137116
tidData: {

server/src/types.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ export type ai_part = {
102102

103103
export type PreliminaryTestData = {
104104
testing_type: "SEE" | "TID" | "DD" | null;
105-
facility_name: string;
106-
environmental_conditions: string;
107-
terrestrial: boolean;
108-
in_flight: boolean;
109105
tidData: TIDDataType[];
110106
seeData: SEEDataType[];
111107
ddData: DDDataType[];

0 commit comments

Comments
 (0)