@digipair/skill-llm 0.94.0-4 → 0.95.0
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.
- package/{dist/api_chain.cjs.js → api_chain.cjs.js} +1 -0
- package/{dist/api_chain.esm.js → api_chain.esm.js} +1 -1
- package/chat.cjs.js +2418 -0
- package/chat.esm.js +2413 -0
- package/{dist/few_shot.cjs.js → few_shot.cjs.js} +8 -1
- package/{dist/few_shot.esm.js → few_shot.esm.js} +7 -1
- package/{dist/index.cjs.js → index.cjs.js} +3 -0
- package/index.cjs2.js +58513 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/{dist/index.esm2.js → index.esm2.js} +72711 -102633
- package/libs/skill-llm/src/index.d.ts +1 -0
- package/{dist → libs/skill-llm}/src/lib/skill-llm.d.ts +0 -1
- package/package.json +5 -21
- package/{dist/sequential_chain.cjs.js → sequential_chain.cjs.js} +3 -1
- package/{dist/sequential_chain.esm.js → sequential_chain.esm.js} +3 -2
- package/{dist/vector_db_qa.cjs.js → vector_db_qa.cjs.js} +11 -3
- package/{dist/vector_db_qa.esm.js → vector_db_qa.esm.js} +8 -1
- package/README.md +0 -7
- package/dist/index.cjs2.js +0 -116395
- package/dist/index.esm.js +0 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/lib/skill-llm.d.ts.map +0 -1
- package/dist/src/lib/skill-llm.spec.d.ts +0 -2
- package/dist/src/lib/skill-llm.spec.d.ts.map +0 -1
- /package/{dist/index.d.ts → index.cjs.d.ts} +0 -0
- /package/{dist/schema.fr.json → schema.fr.json} +0 -0
- /package/{dist/schema.json → schema.json} +0 -0
@@ -1,6 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
var index = require('./index.cjs2.js');
|
4
|
+
var chat = require('./chat.cjs.js');
|
5
|
+
require('@digipair/engine');
|
4
6
|
|
5
7
|
function _array_like_to_array(arr, len) {
|
6
8
|
if (len == null || len > arr.length) len = arr.length;
|
@@ -121,6 +123,11 @@ function ownKeys(object, enumerableOnly) {
|
|
121
123
|
var keys = Object.keys(object);
|
122
124
|
if (Object.getOwnPropertySymbols) {
|
123
125
|
var symbols = Object.getOwnPropertySymbols(object);
|
126
|
+
if (enumerableOnly) {
|
127
|
+
symbols = symbols.filter(function(sym) {
|
128
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
129
|
+
});
|
130
|
+
}
|
124
131
|
keys.push.apply(keys, symbols);
|
125
132
|
}
|
126
133
|
return keys;
|
@@ -876,7 +883,7 @@ function _ts_generator(thisArg, body) {
|
|
876
883
|
}
|
877
884
|
]);
|
878
885
|
return FewShotChatMessagePromptTemplate;
|
879
|
-
}(
|
886
|
+
}(chat.BaseChatPromptTemplate);
|
880
887
|
|
881
888
|
exports.FewShotChatMessagePromptTemplate = FewShotChatMessagePromptTemplate;
|
882
889
|
exports.FewShotPromptTemplate = FewShotPromptTemplate;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { c as checkValidTemplate, B as BaseStringPromptTemplate,
|
1
|
+
import { c as checkValidTemplate, B as BaseStringPromptTemplate, P as PromptTemplate, r as renderTemplate } from './index.esm2.js';
|
2
|
+
import { B as BaseChatPromptTemplate } from './chat.esm.js';
|
2
3
|
|
3
4
|
function _array_like_to_array(arr, len) {
|
4
5
|
if (len == null || len > arr.length) len = arr.length;
|
@@ -119,6 +120,11 @@ function ownKeys(object, enumerableOnly) {
|
|
119
120
|
var keys = Object.keys(object);
|
120
121
|
if (Object.getOwnPropertySymbols) {
|
121
122
|
var symbols = Object.getOwnPropertySymbols(object);
|
123
|
+
if (enumerableOnly) {
|
124
|
+
symbols = symbols.filter(function(sym) {
|
125
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
126
|
+
});
|
127
|
+
}
|
122
128
|
keys.push.apply(keys, symbols);
|
123
129
|
}
|
124
130
|
return keys;
|