stentor-models 1.58.79 → 1.58.85

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.
@@ -172,3 +172,11 @@ export interface KnowledgeBaseResult {
172
172
  */
173
173
  generated?: KnowledgeBaseGenerated[];
174
174
  }
175
+ export interface KnowledgeBaseFAQResult {
176
+ /**
177
+ * List of FAQs that could match the query.
178
+ *
179
+ * The source of these answers are from a database of existing FAQs.
180
+ */
181
+ faqs: KnowledgeBaseFAQ[];
182
+ }
@@ -1,5 +1,5 @@
1
1
  /*! Copyright (c) 2021, XAPPmedia */
2
- import { KnowledgeBaseGenerated, KnowledgeBaseResult } from "../Request";
2
+ import { KnowledgeBaseFAQResult, KnowledgeBaseGenerated, KnowledgeBaseResult } from "../Request";
3
3
  /**
4
4
  * Filters for searching.
5
5
  *
@@ -22,6 +22,15 @@ export interface KnowledgeBaseService {
22
22
  [key: KnowledgeBaseServiceFilters]: string;
23
23
  };
24
24
  }): Promise<KnowledgeBaseResult>;
25
+ /**
26
+ * Search for matching FAQs
27
+ *
28
+ * @param query
29
+ * @param options
30
+ */
31
+ faq?(query: string, options?: {
32
+ controller?: AbortController;
33
+ }): Promise<KnowledgeBaseFAQResult>;
25
34
  /**
26
35
  * Retrieval Augmented Generation Response
27
36
  *
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.58.79",
7
+ "version": "1.58.85",
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": "8611bf79555aa69adb3cd7865bd6f35a3056f26a"
36
+ "gitHead": "f519eb2d732a7ddd4774c95eeba02723e94edacb"
37
37
  }