stentor-models 1.57.147 → 1.57.152
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
|
*/
|
|
@@ -10,5 +19,17 @@ export interface KnowledgeBaseService {
|
|
|
10
19
|
* @param query - Query to search within the knowledge base, typically a user's question.
|
|
11
20
|
* @return Knowledge Base result with either FAQs, suggested, or documents.
|
|
12
21
|
*/
|
|
13
|
-
query(query: string
|
|
22
|
+
query(query: string, options?: {
|
|
23
|
+
controller?: AbortController;
|
|
24
|
+
}): Promise<KnowledgeBaseResult>;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieval Augmented Generation Response
|
|
27
|
+
*
|
|
28
|
+
* @beta
|
|
29
|
+
* @param query
|
|
30
|
+
*/
|
|
31
|
+
rag?(query: string, options?: {
|
|
32
|
+
controller?: AbortController;
|
|
33
|
+
temperature?: number;
|
|
34
|
+
}): Promise<KnowledgeBaseServiceRAGResult>;
|
|
14
35
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.57.
|
|
7
|
+
"version": "1.57.152",
|
|
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": "
|
|
36
|
+
"gitHead": "0616b9c9df113625b6964a6846143fda5b0c4a82"
|
|
37
37
|
}
|