@botpress/api 0.54.0 → 0.55.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/index.js CHANGED
@@ -292990,7 +292990,10 @@ var state = {
292990
292990
  "type": "object",
292991
292991
  "properties": {
292992
292992
  "transcribePages": {
292993
- "description": "(Team/Enterprise plan only, charged as AI Spend) For PDF files, set this option to `true` or pass an array with specific page numbers to use a vision-enabled LLM to transcribe each page of the PDF as standalone vectors and index them.\n\nThis feature is useful when a PDF file contains custom designs or layouts, or when your document has many infographics, which require visual processing in order to index the file effectively, as the default text-based indexing may not be enough to allow your bot to correctly understand the content in your PDFs.\n\nNotes:\n- This feature is only available in Team and Enterprise plans.\n- Enabling this feature will incurr in AI Spend cost to use a vision-enabled LLM to index the PDF pages.\n- This is limited to a maximum of 30 pages of the PDF. If the file has more pages then the rest of the pages will NOT be transcribed using this vision feature, and will be processed using the default text-based indexing instead. If you need to transcribe the entire file using vision, please split it into smaller files.\n- Pages that are vision-transcribed will not be processed by the default text-based indexing to avoid duplicate content in the index.\n- This feature is only available for PDF files. If the file isn't a PDF, this setting will be ignored and no AI Spend will be incurred."
292993
+ "description": "(Team/Enterprise plan only, charged as AI Spend) For PDF files, set this option to `true` or pass an array with specific page numbers to use a vision-enabled LLM to transcribe each page of the PDF as standalone vectors and index them.\n\nThis feature is useful when a PDF file contains custom designs or layouts, or when your document has many infographics, which require visual processing in order to index the file effectively, as the default text-based indexing may not be enough to allow your bot to correctly understand the content in your PDFs.\n\nNotes:\n- This feature is only available in Team and Enterprise plans.\n- Enabling this feature will incur in AI Spend cost to use a vision-enabled LLM to index the PDF pages.\n- This is limited to a maximum of 30 pages of the PDF. If the file has more pages then the rest of the pages will NOT be transcribed using this vision feature, and will be processed using the default text-based indexing instead. If you need to transcribe the entire file using vision, please split it into smaller files.\n- Pages that are vision-transcribed will not be processed by the default text-based indexing to avoid duplicate content in the index.\n- This feature is only available for PDF files. If the file isn't a PDF, this setting will be ignored and no AI Spend will be incurred."
292994
+ },
292995
+ "indexPages": {
292996
+ "description": "(Team/Enterprise plan only, charged as AI Spend) For PDF files, set this option to `true` or pass an array with specific page numbers to use a vision-enabled LLM to index each page of the PDF as a standalone image.\n\nEnabling this feature will allow Autonomous Nodes in your bot to answer visual or higher-level questions about the content in these pages that can usually not be answered correctly by the default text-based indexing or visual transcription.\n\nThis feature is useful when a PDF has:\n- Tables with complex layouts\n- Charts, diagrams or infographics\n- Photos or images that can be used to answer user queries\n\nNotes:\n- This feature is only available in Team and Enterprise plans.\n- Enabling this will incur in extra AI Spend cost and additional File Storage usage, in order to use a vision-enabled LLM to visually index the PDF pages and store them as standalone page images in the bot's file storage.\n- Enabling this may increase the overall AI Spend cost of your bot as your bot may pass one or more indexed page images to a vision-enabled LLM for answering user queries.\n- This is limited to the first 30 pages of the PDF. If the file has more pages then the rest of the pages will NOT be vision-indexed. If you need to visually index the entire file, please split it into smaller files.\n- This feature is only available for PDF files. If the file isn't a PDF, this setting will be ignored and no AI Spend will be incurred."
292994
292997
  }
292995
292998
  },
292996
292999
  "additionalProperties": false
@@ -293718,7 +293721,8 @@ var state = {
293718
293721
  "enum": [
293719
293722
  "chunk",
293720
293723
  "summary",
293721
- "consolidated"
293724
+ "consolidated",
293725
+ "image"
293722
293726
  ],
293723
293727
  "description": "The type of passage"
293724
293728
  },
@@ -293728,10 +293732,11 @@ var state = {
293728
293732
  "title",
293729
293733
  "subtitle",
293730
293734
  "paragraph",
293731
- "list",
293732
293735
  "blockquote",
293736
+ "list",
293733
293737
  "table",
293734
- "code"
293738
+ "code",
293739
+ "page"
293735
293740
  ],
293736
293741
  "description": "The subtype of passage, if available."
293737
293742
  },
@@ -293742,6 +293747,11 @@ var state = {
293742
293747
  "position": {
293743
293748
  "type": "integer",
293744
293749
  "description": "Position number of the passage in the file relative to the other passages, if available. Can be used to know the order of passages within a file."
293750
+ },
293751
+ "sourceUrl": {
293752
+ "type": "string",
293753
+ "format": "uri",
293754
+ "description": "The URL of the source file for the vector, if applicable (e.g. for image vectors)."
293745
293755
  }
293746
293756
  },
293747
293757
  "description": "The passage metadata."
@@ -293854,7 +293864,8 @@ var state = {
293854
293864
  "enum": [
293855
293865
  "chunk",
293856
293866
  "summary",
293857
- "consolidated"
293867
+ "consolidated",
293868
+ "image"
293858
293869
  ],
293859
293870
  "description": "The type of passage"
293860
293871
  },
@@ -293864,10 +293875,11 @@ var state = {
293864
293875
  "title",
293865
293876
  "subtitle",
293866
293877
  "paragraph",
293867
- "list",
293868
293878
  "blockquote",
293879
+ "list",
293869
293880
  "table",
293870
- "code"
293881
+ "code",
293882
+ "page"
293871
293883
  ],
293872
293884
  "description": "The subtype of passage, if available."
293873
293885
  },
@@ -293878,6 +293890,11 @@ var state = {
293878
293890
  "position": {
293879
293891
  "type": "integer",
293880
293892
  "description": "Position number of the passage in the file relative to the other passages, if available. Can be used to know the order of passages within a file."
293893
+ },
293894
+ "sourceUrl": {
293895
+ "type": "string",
293896
+ "format": "uri",
293897
+ "description": "The URL of the source file for the vector, if applicable (e.g. for image vectors)."
293881
293898
  }
293882
293899
  },
293883
293900
  "description": "The passage metadata."
@@ -295121,7 +295138,7 @@ var state = {
295121
295138
  "title": "Botpress API",
295122
295139
  "description": "API for Botpress Cloud",
295123
295140
  "server": "https://api.botpress.cloud",
295124
- "version": "0.54.0",
295141
+ "version": "0.55.0",
295125
295142
  "prefix": "v1"
295126
295143
  },
295127
295144
  "errors": [
@@ -9905,6 +9905,9 @@ export declare const state: {
9905
9905
  transcribePages: {
9906
9906
  description: string;
9907
9907
  };
9908
+ indexPages: {
9909
+ description: string;
9910
+ };
9908
9911
  };
9909
9912
  additionalProperties: false;
9910
9913
  };
@@ -10527,6 +10530,11 @@ export declare const state: {
10527
10530
  type: "integer";
10528
10531
  description: string;
10529
10532
  };
10533
+ sourceUrl: {
10534
+ type: "string";
10535
+ format: string;
10536
+ description: string;
10537
+ };
10530
10538
  };
10531
10539
  description: string;
10532
10540
  };
@@ -10637,6 +10645,11 @@ export declare const state: {
10637
10645
  type: "integer";
10638
10646
  description: string;
10639
10647
  };
10648
+ sourceUrl: {
10649
+ type: "string";
10650
+ format: string;
10651
+ description: string;
10652
+ };
10640
10653
  };
10641
10654
  description: string;
10642
10655
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.54.0",
3
+ "version": "0.55.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {