only_ever_generator 0.3.6 → 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.
@@ -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(this.typologyResponse), false);
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
- "Generate cards only suitable for the given remaining concepts and facts" +
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
  });