You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,19 @@ npm run start:dev
50
50
51
51
This will start a development server with the `ts-node` and `nodemon` packages. This allows for easy development via cold-reloading. `ts-node` allows for running the typescript code without the need for compliation while `nodemon` monitors for changes to any `.ts` or `.js` files.
52
52
53
+
## Testing
54
+
55
+
Tests are stored in the `test/` directory and end with `*.test.ts`. Testing is done using jest.js and is setup with npm.
56
+
57
+
To run the current tests run this command from the main top of the project directory
58
+
```sh
59
+
npm test
60
+
```
61
+
or
62
+
```sh
63
+
npm run test
64
+
```
65
+
53
66
#### React (Front End)
54
67
55
68
Simply run the below command in the `web` directory
"You are a radiation effects reasearcher. Use your knowledge to give very concise and numerical answers to the questions. Please do not give citations.",
22
28
model: this.model,
23
-
messages: [{role: "user",content: "Say this is a test"}],
24
-
stream: true,
29
+
tools: [{type: "file_search"}],
30
+
temperature: 0.1,
31
+
};
32
+
33
+
// Perhaps this should be pulled out to another function
"What are all of the author's names, in the format (J. Doe) in a list like this ['J. Doe', 'R. Austin']",
5
+
"What is the Part No. or name if that is not available",
6
+
'What is the type of part (eg, switching regulator), if there are multiple part numbers listed, list them all and seperate them with a "¶"',
7
+
"Who is the manufacturer",
8
+
'What is the type of testing location: Respond to this question with "Terrestrial" for a terrestial testing location, or "Flight" for a flight testing location',
9
+
'What type of testing was done: Respond to this question with "TID" for Total Ionizing Dose testing, "SEE" for heavy ion, proton, laser, or neutron testing, or "OTHER" if you are not completely 100% sure',
10
+
];
11
+
12
+
exportconstprompt=`Please answer the following questions, as concisely as possible, and with a heavy emphasis on numbers instead of words.\n
13
+
Use standard text and do not provide citations for each of your answers.
14
+
Answer each question, and separate the answers with a "ø" character as a delimiter.
15
+
If you are unable to answer the question accurately, provide the answer N/A.\n`;
16
+
17
+
exportconstOther_targeted_questions=[
18
+
"What type was the radiation source",
19
+
"Were there any failures, if so, when?",
20
+
];
21
+
22
+
exportconstTID_targeted_questions=[
23
+
"What type was the radiation source",
24
+
"What was the total dose",
25
+
"Were there any failures, if so, when?",
26
+
];
27
+
28
+
exportconstSEE_targeted_questions=[
29
+
"What type was the radiation source",
30
+
"What the energy of the source",
31
+
"Were there any failures, if so, when?",
32
+
];
33
+
34
+
exportconsttargeted_prompt=`Please answer the following questions, as concisely as possible, and with a heavy emphasis on numbers instead of words.
35
+
Use standard text and do not provide citations for each of your answers.
36
+
Answer each question, and separate the answers with a "ø" character as a delimiter.
37
+
If you are unable to answer the question accurately, provide the answer N/A.\n`;
38
+
39
+
exportconstsort_questions=`There are five types of papers:
40
+
The first are \"Laboratory Capabilities/Facility Equipment/Simulator\", which detail the capacities of a location, or university for use in research.
41
+
The second are \"Testing Methods\", which detail specific methods of testing, without any devices being tested in the paper.
42
+
The third are \"Phenomenons/Theory Papers_Sorted\", which detail theories or phenomenons that occur on a wide variety of devices, without doing specific testing on a device.
43
+
The fourth are \"Compendiums\", which are collections of concise but detailed data on a large variety of devices. The devices must have their part numbers listed to be in this category.
44
+
The fifth are \"Single/Multiple Device Testing\", which are papers that test one or more devices with one or more types of radiation. The device must have a part number to be in this category.
45
+
In the same order, respond with \"LAB\", \"TST\", \"PHE\", \"CMP\", or \"SMD\", for the category that the paper best fits.`;
46
+
47
+
exportconstsort_prompts=`Please answer the following question, as concisely as possible, with a single word answer as outlined in the question.
48
+
Classify this paper into one of the following categories: """ + questions + """
49
+
Use standard text and do not provide citations for each of your answer.
50
+
Answer the question with the keyword for one of the 5 papers.
51
+
If you are unable to answer the question accurately, provide the answer N/A.`;
0 commit comments