@digipair/skill-llm 0.113.1 → 0.114.1
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/README.md +7 -0
- package/{api_chain.esm.js → dist/api_chain.esm.js} +1 -1
- package/{few_shot.cjs.js → dist/few_shot.cjs.js} +1 -7
- package/{few_shot.esm.js → dist/few_shot.esm.js} +1 -7
- package/{index.cjs.js → dist/index.cjs.js} +0 -2
- package/{index.cjs2.js → dist/index.cjs2.js} +75108 -42045
- package/dist/index.esm.js +1 -0
- package/{index.esm2.js → dist/index.esm2.js} +119769 -88142
- package/{sequential_chain.cjs.js → dist/sequential_chain.cjs.js} +3 -4
- package/{sequential_chain.esm.js → dist/sequential_chain.esm.js} +4 -5
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/{libs/skill-llm → dist}/src/lib/skill-llm.d.ts +1 -0
- package/dist/src/lib/skill-llm.d.ts.map +1 -0
- package/{vector_db_qa.cjs.js → dist/vector_db_qa.cjs.js} +3 -10
- package/{vector_db_qa.esm.js → dist/vector_db_qa.esm.js} +1 -8
- package/package.json +28 -5
- package/chat.cjs.js +0 -2418
- package/chat.esm.js +0 -2413
- package/index.d.ts +0 -1
- package/index.esm.js +0 -1
- package/libs/skill-llm/src/index.d.ts +0 -1
- /package/{api_chain.cjs.js → dist/api_chain.cjs.js} +0 -0
- /package/{index.cjs.d.ts → dist/index.d.ts} +0 -0
- /package/{schema.fr.json → dist/schema.fr.json} +0 -0
- /package/{schema.json → dist/schema.json} +0 -0
package/README.md
ADDED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PromptTemplate, L as LLMChain,
|
|
1
|
+
import { P as PromptTemplate, L as LLMChain, b as BaseChain } from './index.esm2.js';
|
|
2
2
|
|
|
3
3
|
var API_URL_RAW_PROMPT_TEMPLATE = "You are given the below API Documentation:\n{api_docs}\nUsing this documentation, generate the full API url to call for answering the user question.\nYou should build the API url in order to get a response that is as short as possible, while still getting the necessary information to answer the question. Pay attention to deliberately exclude any unnecessary pieces of data in the API call.\n\nQuestion:{question}\nAPI url:";
|
|
4
4
|
var API_URL_PROMPT_TEMPLATE = /* #__PURE__ */ new PromptTemplate({
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index.cjs2.js');
|
|
4
|
-
var chat = require('./chat.cjs.js');
|
|
5
4
|
require('@digipair/engine');
|
|
6
5
|
|
|
7
6
|
function _array_like_to_array(arr, len) {
|
|
@@ -123,11 +122,6 @@ function ownKeys(object, enumerableOnly) {
|
|
|
123
122
|
var keys = Object.keys(object);
|
|
124
123
|
if (Object.getOwnPropertySymbols) {
|
|
125
124
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
126
|
-
if (enumerableOnly) {
|
|
127
|
-
symbols = symbols.filter(function(sym) {
|
|
128
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
125
|
keys.push.apply(keys, symbols);
|
|
132
126
|
}
|
|
133
127
|
return keys;
|
|
@@ -883,7 +877,7 @@ function _ts_generator(thisArg, body) {
|
|
|
883
877
|
}
|
|
884
878
|
]);
|
|
885
879
|
return FewShotChatMessagePromptTemplate;
|
|
886
|
-
}(
|
|
880
|
+
}(index.BaseChatPromptTemplate);
|
|
887
881
|
|
|
888
882
|
exports.FewShotChatMessagePromptTemplate = FewShotChatMessagePromptTemplate;
|
|
889
883
|
exports.FewShotPromptTemplate = FewShotPromptTemplate;
|
|
@@ -1,5 +1,4 @@
|
|
|
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';
|
|
1
|
+
import { c as checkValidTemplate, B as BaseStringPromptTemplate, a as BaseChatPromptTemplate, P as PromptTemplate, r as renderTemplate } from './index.esm2.js';
|
|
3
2
|
|
|
4
3
|
function _array_like_to_array(arr, len) {
|
|
5
4
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -120,11 +119,6 @@ function ownKeys(object, enumerableOnly) {
|
|
|
120
119
|
var keys = Object.keys(object);
|
|
121
120
|
if (Object.getOwnPropertySymbols) {
|
|
122
121
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
123
|
-
if (enumerableOnly) {
|
|
124
|
-
symbols = symbols.filter(function(sym) {
|
|
125
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
122
|
keys.push.apply(keys, symbols);
|
|
129
123
|
}
|
|
130
124
|
return keys;
|