stentor-models 1.57.170 → 1.57.172

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.
@@ -132,12 +132,21 @@ export interface KnowledgeBaseGenerated extends KnowledgeBaseDocument {
132
132
  *
133
133
  * This can be used to better describe the prompt used for generation so it can be understood what type of
134
134
  * information is in the generated response.
135
+ *
136
+ * Two standard values are "retrieval-augmented-generation" and "general-knowledge"
135
137
  */
136
138
  type?: string;
137
139
  /**
138
140
  * 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.
139
141
  */
140
142
  hasAnswer?: boolean;
143
+ /**
144
+ * Optional sources that the Generative AI used to generate the response. This is typically specific to type "retrieval-augmented-generation" where source material is used to generate the answer.
145
+ */
146
+ sources?: {
147
+ url?: string;
148
+ title?: string;
149
+ }[];
141
150
  }
142
151
  export interface KnowledgeBaseResult {
143
152
  /**
@@ -1,14 +1,5 @@
1
1
  /*! Copyright (c) 2021, XAPPmedia */
2
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
- }
12
3
  /**
13
4
  * A knowledge base that can be queried
14
5
  */
@@ -31,5 +22,5 @@ export interface KnowledgeBaseService {
31
22
  rag?(query: string, options?: {
32
23
  controller?: AbortController;
33
24
  temperature?: number;
34
- }): Promise<KnowledgeBaseServiceRAGResult>;
25
+ }): Promise<KnowledgeBaseGenerated>;
35
26
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.57.170",
7
+ "version": "1.57.172",
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": "5d62b3e7786a8b71305f0b43a08719292457d675"
36
+ "gitHead": "d025b795d9868cc934fa7fa80a46ab75f8f8cdbb"
37
37
  }