stentor-models 1.57.144 → 1.57.150

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.
@@ -128,7 +128,7 @@ export interface KnowledgeBaseGenerated extends KnowledgeBaseDocument {
128
128
  */
129
129
  llm?: string;
130
130
  /**
131
- * Generated AI will still return an response even if it didn't have an answer.
131
+ * Generated AI will still return an response even if it didn't have an answer. True if it has the answer to the user's query.
132
132
  */
133
133
  hasAnswer?: boolean;
134
134
  }
@@ -1,5 +1,14 @@
1
1
  /*! Copyright (c) 2021, XAPPmedia */
2
- import { KnowledgeBaseResult } from "../Request";
2
+ import { KnowledgeBaseGenerated, KnowledgeBaseResult } from "../Request";
3
+ export interface KnowledgeBaseServiceRAGResult extends KnowledgeBaseGenerated {
4
+ /**
5
+ * Source material used to generate the response
6
+ */
7
+ sources?: {
8
+ url: string;
9
+ title?: string;
10
+ }[];
11
+ }
3
12
  /**
4
13
  * A knowledge base that can be queried
5
14
  */
@@ -11,4 +20,11 @@ export interface KnowledgeBaseService {
11
20
  * @return Knowledge Base result with either FAQs, suggested, or documents.
12
21
  */
13
22
  query(query: string): Promise<KnowledgeBaseResult>;
23
+ /**
24
+ * Retrieval Augmented Generation Response
25
+ *
26
+ * @beta
27
+ * @param query
28
+ */
29
+ rag?(query: string): Promise<KnowledgeBaseServiceRAGResult>;
14
30
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.57.144",
7
+ "version": "1.57.150",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -17,7 +17,7 @@
17
17
  "node": "^12 || ^14 || ^16 || ^18"
18
18
  },
19
19
  "devDependencies": {
20
- "@microsoft/api-extractor": "7.34.9",
20
+ "@microsoft/api-extractor": "7.35.0",
21
21
  "@rollup/plugin-typescript": "11.1.1",
22
22
  "@xapp/config": "0.2.3",
23
23
  "rollup": "3.23.0",
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "2.0.1"
35
35
  },
36
- "gitHead": "f091ec7e87725a86c2fb840faadb03bf4c059d8c"
36
+ "gitHead": "c1194698d3e9997fe2391a2adc3d2694a6aebceb"
37
37
  }