@digipair/skill-vespa 0.8.0 → 0.8.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/index.cjs.js CHANGED
@@ -58055,14 +58055,14 @@ function indent(str, spaces) {
58055
58055
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
58056
58056
  // match is required
58057
58057
  if (!match) {
58058
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
58058
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
58059
58059
  v: nextMatch1
58060
58060
  };
58061
58061
  }
58062
58062
  var token = match.token, offset = match.offset;
58063
58063
  i1 += offset;
58064
58064
  if (token === " ") {
58065
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
58065
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
58066
58066
  }
58067
58067
  tokens1 = _to_consumable_array$1(tokens1).concat([
58068
58068
  token
@@ -58081,7 +58081,7 @@ function indent(str, spaces) {
58081
58081
  if (contextKeys.some(function(el) {
58082
58082
  return el.startsWith(name);
58083
58083
  })) {
58084
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
58084
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
58085
58085
  }
58086
58086
  if (dateTimeIdentifiers.some(function(el) {
58087
58087
  return el === name;
@@ -58100,9 +58100,9 @@ function indent(str, spaces) {
58100
58100
  if (dateTimeIdentifiers.some(function(el) {
58101
58101
  return el.startsWith(name);
58102
58102
  })) {
58103
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
58103
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
58104
58104
  }
58105
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
58105
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
58106
58106
  v: nextMatch1
58107
58107
  };
58108
58108
  };
@@ -62119,9 +62119,8 @@ let VespaService = class VespaService {
62119
62119
  return results;
62120
62120
  }
62121
62121
  async find(params, _pinsSettingsList, context) {
62122
- var _context_private;
62123
- var _context_private_VESPA_SERVER;
62124
- const { baseUrl = (_context_private_VESPA_SERVER = (_context_private = context.private) == null ? void 0 : _context_private.VESPA_SERVER) != null ? _context_private_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', limit = 100, orderby = '', query } = params;
62122
+ var _context_privates_VESPA_SERVER;
62123
+ const { baseUrl = (_context_privates_VESPA_SERVER = context.privates.VESPA_SERVER) != null ? _context_privates_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', limit = 100, orderby = '', query } = params;
62125
62124
  if (orderby !== '' && !/^([a-zA-Z0-9_-]+)(,\s*[a-zA-Z0-9_-]+)*(\s+(asc|desc))?$/.test(orderby)) {
62126
62125
  throw new Error('vespa:find - Invalid orderby parameter');
62127
62126
  }
@@ -62132,9 +62131,8 @@ let VespaService = class VespaService {
62132
62131
  return results;
62133
62132
  }
62134
62133
  async search(params, _pinsSettingsList, context) {
62135
- var _context_private;
62136
- var _context_private_VESPA_SERVER;
62137
- const { embeddings = context.privates.MODEL_EMBEDDINGS, baseUrl = (_context_private_VESPA_SERVER = (_context_private = context.private) == null ? void 0 : _context_private.VESPA_SERVER) != null ? _context_private_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', limit = 100, orderby = '', targetHits = 50, language = 'fr', filter = 'true', query } = params;
62134
+ var _context_privates_VESPA_SERVER;
62135
+ const { embeddings = context.privates.MODEL_EMBEDDINGS, baseUrl = (_context_privates_VESPA_SERVER = context.privates.VESPA_SERVER) != null ? _context_privates_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', limit = 100, orderby = '', targetHits = 50, language = 'fr', filter = 'true', query } = params;
62138
62136
  if (orderby !== '' && !/^([a-zA-Z0-9_-]+)(,\s*[a-zA-Z0-9_-]+)*(\s+(asc|desc))?$/.test(orderby)) {
62139
62137
  throw new Error('vespa:find - Invalid orderby parameter');
62140
62138
  }
@@ -62170,9 +62168,8 @@ let VespaService = class VespaService {
62170
62168
  return await this.pushDocuments(modelEmbeddings, baseUrl, collection, results);
62171
62169
  }
62172
62170
  async remove(params, _pinsSettingsList, context) {
62173
- var _context_private;
62174
- var _context_private_VESPA_SERVER;
62175
- const { baseUrl = (_context_private_VESPA_SERVER = (_context_private = context.private) == null ? void 0 : _context_private.VESPA_SERVER) != null ? _context_private_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', selection } = params;
62171
+ var _context_privates_VESPA_SERVER;
62172
+ const { baseUrl = (_context_privates_VESPA_SERVER = context.privates.VESPA_SERVER) != null ? _context_privates_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', selection } = params;
62176
62173
  const response = await fetch(`${baseUrl}/document/v1/Digipair_default/${collection}/docid?selection=${encodeURI(selection)}&cluster=Digipair_default`, {
62177
62174
  method: 'DELETE',
62178
62175
  headers: {
package/index.esm.js CHANGED
@@ -62097,9 +62097,8 @@ let VespaService = class VespaService {
62097
62097
  return results;
62098
62098
  }
62099
62099
  async find(params, _pinsSettingsList, context) {
62100
- var _context_private;
62101
- var _context_private_VESPA_SERVER;
62102
- const { baseUrl = (_context_private_VESPA_SERVER = (_context_private = context.private) == null ? void 0 : _context_private.VESPA_SERVER) != null ? _context_private_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', limit = 100, orderby = '', query } = params;
62100
+ var _context_privates_VESPA_SERVER;
62101
+ const { baseUrl = (_context_privates_VESPA_SERVER = context.privates.VESPA_SERVER) != null ? _context_privates_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', limit = 100, orderby = '', query } = params;
62103
62102
  if (orderby !== '' && !/^([a-zA-Z0-9_-]+)(,\s*[a-zA-Z0-9_-]+)*(\s+(asc|desc))?$/.test(orderby)) {
62104
62103
  throw new Error('vespa:find - Invalid orderby parameter');
62105
62104
  }
@@ -62110,9 +62109,8 @@ let VespaService = class VespaService {
62110
62109
  return results;
62111
62110
  }
62112
62111
  async search(params, _pinsSettingsList, context) {
62113
- var _context_private;
62114
- var _context_private_VESPA_SERVER;
62115
- const { embeddings = context.privates.MODEL_EMBEDDINGS, baseUrl = (_context_private_VESPA_SERVER = (_context_private = context.private) == null ? void 0 : _context_private.VESPA_SERVER) != null ? _context_private_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', limit = 100, orderby = '', targetHits = 50, language = 'fr', filter = 'true', query } = params;
62112
+ var _context_privates_VESPA_SERVER;
62113
+ const { embeddings = context.privates.MODEL_EMBEDDINGS, baseUrl = (_context_privates_VESPA_SERVER = context.privates.VESPA_SERVER) != null ? _context_privates_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', limit = 100, orderby = '', targetHits = 50, language = 'fr', filter = 'true', query } = params;
62116
62114
  if (orderby !== '' && !/^([a-zA-Z0-9_-]+)(,\s*[a-zA-Z0-9_-]+)*(\s+(asc|desc))?$/.test(orderby)) {
62117
62115
  throw new Error('vespa:find - Invalid orderby parameter');
62118
62116
  }
@@ -62148,9 +62146,8 @@ let VespaService = class VespaService {
62148
62146
  return await this.pushDocuments(modelEmbeddings, baseUrl, collection, results);
62149
62147
  }
62150
62148
  async remove(params, _pinsSettingsList, context) {
62151
- var _context_private;
62152
- var _context_private_VESPA_SERVER;
62153
- const { baseUrl = (_context_private_VESPA_SERVER = (_context_private = context.private) == null ? void 0 : _context_private.VESPA_SERVER) != null ? _context_private_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', selection } = params;
62149
+ var _context_privates_VESPA_SERVER;
62150
+ const { baseUrl = (_context_privates_VESPA_SERVER = context.privates.VESPA_SERVER) != null ? _context_privates_VESPA_SERVER : VESPA_SERVER, collection = 'knowledge', selection } = params;
62154
62151
  const response = await fetch(`${baseUrl}/document/v1/Digipair_default/${collection}/docid?selection=${encodeURI(selection)}&cluster=Digipair_default`, {
62155
62152
  method: 'DELETE',
62156
62153
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-vespa",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"