@digipair/skill-vespa 0.95.0 → 0.95.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
@@ -48904,16 +48904,17 @@ let VespaService = class VespaService {
48904
48904
  for (const document of documents){
48905
48905
  // eslint-disable-next-line no-control-regex
48906
48906
  const content = document.content.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, '');
48907
- await modelEmbeddings.embedQuery(content);
48908
48907
  const response = await fetch(`${baseUrl}/document/v1/${namespace}/${collection}/docid/${document.uuid}`, {
48909
48908
  signal,
48910
48909
  method: 'POST',
48911
- body: JSON.stringify(asynchronous ? _extends({}, document, {
48912
- content
48913
- }) : _extends({}, document, {
48914
- content,
48915
- content_embedding: await modelEmbeddings.embedQuery(content)
48916
- })),
48910
+ body: JSON.stringify({
48911
+ fields: asynchronous ? _extends({}, document, {
48912
+ content
48913
+ }) : _extends({}, document, {
48914
+ content,
48915
+ content_embedding: await modelEmbeddings.embedQuery(content)
48916
+ })
48917
+ }),
48917
48918
  headers: {
48918
48919
  'Content-Type': 'application/json'
48919
48920
  }
package/index.esm.js CHANGED
@@ -72686,14 +72686,14 @@ function indent(str, spaces) {
72686
72686
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
72687
72687
  // match is required
72688
72688
  if (!match) {
72689
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
72689
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
72690
72690
  v: nextMatch1
72691
72691
  };
72692
72692
  }
72693
72693
  var token = match.token, offset = match.offset;
72694
72694
  i1 += offset;
72695
72695
  if (token === " ") {
72696
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
72696
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
72697
72697
  }
72698
72698
  tokens1 = _to_consumable_array$1(tokens1).concat([
72699
72699
  token
@@ -72712,7 +72712,7 @@ function indent(str, spaces) {
72712
72712
  if (contextKeys.some(function(el) {
72713
72713
  return el.startsWith(name);
72714
72714
  })) {
72715
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
72715
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
72716
72716
  }
72717
72717
  if (dateTimeIdentifiers.some(function(el) {
72718
72718
  return el === name;
@@ -72731,9 +72731,9 @@ function indent(str, spaces) {
72731
72731
  if (dateTimeIdentifiers.some(function(el) {
72732
72732
  return el.startsWith(name);
72733
72733
  })) {
72734
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
72734
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
72735
72735
  }
72736
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
72736
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
72737
72737
  v: nextMatch1
72738
72738
  };
72739
72739
  };
@@ -76869,16 +76869,17 @@ let VespaService = class VespaService {
76869
76869
  for (const document of documents){
76870
76870
  // eslint-disable-next-line no-control-regex
76871
76871
  const content = document.content.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, '');
76872
- await modelEmbeddings.embedQuery(content);
76873
76872
  const response = await fetch(`${baseUrl}/document/v1/${namespace}/${collection}/docid/${document.uuid}`, {
76874
76873
  signal,
76875
76874
  method: 'POST',
76876
- body: JSON.stringify(asynchronous ? _extends({}, document, {
76877
- content
76878
- }) : _extends({}, document, {
76879
- content,
76880
- content_embedding: await modelEmbeddings.embedQuery(content)
76881
- })),
76875
+ body: JSON.stringify({
76876
+ fields: asynchronous ? _extends({}, document, {
76877
+ content
76878
+ }) : _extends({}, document, {
76879
+ content,
76880
+ content_embedding: await modelEmbeddings.embedQuery(content)
76881
+ })
76882
+ }),
76882
76883
  headers: {
76883
76884
  'Content-Type': 'application/json'
76884
76885
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-vespa",
3
- "version": "0.95.0",
3
+ "version": "0.95.1",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",