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