stentor-models 1.57.127 → 1.57.128

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.
@@ -118,17 +118,37 @@ export interface KnowledgeBaseFAQ {
118
118
  */
119
119
  handlerId?: string;
120
120
  }
121
+ export interface KnowledgeBaseGenerated extends KnowledgeBaseDocument {
122
+ /**
123
+ * The generated text from the LLM
124
+ */
125
+ generated: string;
126
+ /**
127
+ * Optional, the source LLM of the generated answer.
128
+ */
129
+ llm?: string;
130
+ }
121
131
  export interface KnowledgeBaseResult {
122
132
  /**
123
- * A ML powered answer
133
+ * A list of ML powered answer found in specific documents.
134
+ *
135
+ * This corresponds with results such as the Kendra Suggested answer. They use some ML model to attempt to pinpoint exactly within
124
136
  */
125
137
  suggested?: KnowledgeBaseSuggested[];
126
138
  /**
127
139
  * List of FAQs that could match the query.
140
+ *
141
+ * The source of these answers are from a database of existing FAQs.
128
142
  */
129
143
  faqs?: KnowledgeBaseFAQ[];
130
144
  /**
131
145
  * A list of results based on perceived relevance.
146
+ *
147
+ * The source of this is a set corpus
132
148
  */
133
149
  documents?: KnowledgeBaseDocument[];
150
+ /**
151
+ * A list of generated answers from a large language model.
152
+ */
153
+ generated?: KnowledgeBaseGenerated[];
134
154
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.57.127",
7
+ "version": "1.57.128",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "2.0.1"
35
35
  },
36
- "gitHead": "24a6e291c5c165f964f987652b699689d5d1835c"
36
+ "gitHead": "8f7623e907bfcc10e20a3d689006a31262f57212"
37
37
  }