only_ever_generator 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap/app.js +6 -5
- package/dist/card_gen/generate_cards.js +1 -0
- package/dist/constants/source_data.js +534 -941
- package/dist/gap_fill/calculate_gap_fill.js +0 -4
- package/dist/index.js +1 -1
- package/dist/typology_gen/generate_typology.js +1 -0
- package/dist/utils/parse_openai_response.js +2 -0
- package/package.json +1 -1
- package/src/bootstrap/app.ts +8 -6
- package/src/card_gen/generate_cards.ts +1 -0
- package/src/constants/source_data.ts +534 -941
- package/src/gap_fill/calculate_gap_fill.ts +0 -4
- package/src/index.ts +1 -1
- package/src/typology_gen/generate_typology.ts +2 -0
- package/src/utils/parse_openai_response.ts +1 -0
package/dist/bootstrap/app.js
CHANGED
|
@@ -57,7 +57,10 @@ class OnlyEverGenerator {
|
|
|
57
57
|
else if (elem == "generate_card") {
|
|
58
58
|
/// for cards gen to occur, there must be presence of source taxonomy
|
|
59
59
|
if (this.shouldTheCardBeGeneratedAfterTypologyResponse()) {
|
|
60
|
-
this.cardgenResponse = yield this.generateCard(this.promptForCardGen, JSON.stringify(
|
|
60
|
+
this.cardgenResponse = yield this.generateCard(this.promptForCardGen, "Here are the facts and concepts on which cards needs to be generate, refrain from generating missing facts , concepts similar to available below : " + JSON.stringify({
|
|
61
|
+
"facts": this.typologyResponse.facts,
|
|
62
|
+
"concepts": this.typologyResponse.concepts
|
|
63
|
+
}), false);
|
|
61
64
|
responseToReturn.push(this.cardgenResponse);
|
|
62
65
|
/// check if gap fill is required ie coverage determination
|
|
63
66
|
if (this.cardgenResponse.status_code == 200) {
|
|
@@ -85,10 +88,8 @@ class OnlyEverGenerator {
|
|
|
85
88
|
let response;
|
|
86
89
|
if (gapFill.remainingConcepts.length !== 0 ||
|
|
87
90
|
gapFill.remainingFacts.length !== 0) {
|
|
88
|
-
response = yield this.generateCard(this.promptForCardGen +
|
|
89
|
-
"
|
|
90
|
-
JSON.stringify(gapFill) +
|
|
91
|
-
"Exclude generating cards with content in the following", JSON.stringify(cardGenData.cards_data), true);
|
|
91
|
+
response = yield this.generateCard(this.promptForCardGen, "Only Generate Cards For the missing concepts and facts given below \n" +
|
|
92
|
+
JSON.stringify(gapFill) + "\n The cards already generated are below, refrain for generating cards similar to these " + JSON.stringify(cardGenData.cards_data), true);
|
|
92
93
|
}
|
|
93
94
|
return response;
|
|
94
95
|
});
|