@wildix/wim-knowledge-base-client 0.0.25 → 0.0.27

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.
@@ -1034,9 +1034,11 @@ const se_ProxyConfig = (input, context) => {
1034
1034
  };
1035
1035
  const se_SearchConfig = (input, context) => {
1036
1036
  return (0, smithy_client_1.take)(input, {
1037
+ 'extendMetadata': [],
1037
1038
  'searchStrategy': [],
1038
1039
  'threshold': smithy_client_1.serializeFloat,
1039
1040
  'topK': [],
1041
+ 'useQueryOptimization': [],
1040
1042
  });
1041
1043
  };
1042
1044
  const de_Document = (output, context) => {
@@ -1071,6 +1073,7 @@ const de_DataSourceItem = (output, context) => {
1071
1073
  'config': (_) => de_DataSourceConfig((0, core_1.awsExpectUnion)(_), context),
1072
1074
  'createdAt': smithy_client_1.expectString,
1073
1075
  'description': smithy_client_1.expectString,
1076
+ 'documentsCount': smithy_client_1.expectInt32,
1074
1077
  'enabled': smithy_client_1.expectBoolean,
1075
1078
  'id': smithy_client_1.expectString,
1076
1079
  'lastSyncErrorMessage': smithy_client_1.expectString,
@@ -978,9 +978,11 @@ const se_ProxyConfig = (input, context) => {
978
978
  };
979
979
  const se_SearchConfig = (input, context) => {
980
980
  return take(input, {
981
+ 'extendMetadata': [],
981
982
  'searchStrategy': [],
982
983
  'threshold': __serializeFloat,
983
984
  'topK': [],
985
+ 'useQueryOptimization': [],
984
986
  });
985
987
  };
986
988
  const de_Document = (output, context) => {
@@ -1015,6 +1017,7 @@ const de_DataSourceItem = (output, context) => {
1015
1017
  'config': (_) => de_DataSourceConfig(__expectUnion(_), context),
1016
1018
  'createdAt': __expectString,
1017
1019
  'description': __expectString,
1020
+ 'documentsCount': __expectInt32,
1018
1021
  'enabled': __expectBoolean,
1019
1022
  'id': __expectString,
1020
1023
  'lastSyncErrorMessage': __expectString,
@@ -147,6 +147,7 @@ declare const CreateDataSourceCommand_base: {
147
147
  * // syncSchedule: "STRING_VALUE",
148
148
  * // id: "STRING_VALUE", // required
149
149
  * // companyId: "STRING_VALUE", // required
150
+ * // documentsCount: Number("int"), // required
150
151
  * // createdAt: "STRING_VALUE", // required
151
152
  * // updatedAt: "STRING_VALUE", // required
152
153
  * // syncStatus: "idle" || "running" || "success" || "failed", // required
@@ -96,6 +96,7 @@ declare const GetDataSourceCommand_base: {
96
96
  * // syncSchedule: "STRING_VALUE",
97
97
  * // id: "STRING_VALUE", // required
98
98
  * // companyId: "STRING_VALUE", // required
99
+ * // documentsCount: Number("int"), // required
99
100
  * // createdAt: "STRING_VALUE", // required
100
101
  * // updatedAt: "STRING_VALUE", // required
101
102
  * // syncStatus: "idle" || "running" || "success" || "failed", // required
@@ -96,6 +96,7 @@ declare const ListDataSourcesCommand_base: {
96
96
  * // syncSchedule: "STRING_VALUE",
97
97
  * // id: "STRING_VALUE", // required
98
98
  * // companyId: "STRING_VALUE", // required
99
+ * // documentsCount: Number("int"), // required
99
100
  * // createdAt: "STRING_VALUE", // required
100
101
  * // updatedAt: "STRING_VALUE", // required
101
102
  * // syncStatus: "idle" || "running" || "success" || "failed", // required
@@ -42,6 +42,8 @@ declare const QueryKnowledgeBaseCommand_base: {
42
42
  * topK: Number("int"),
43
43
  * threshold: Number("double"),
44
44
  * searchStrategy: "bm25" || "vector" || "hybrid",
45
+ * useQueryOptimization: true || false,
46
+ * extendMetadata: true || false,
45
47
  * },
46
48
  * llmConfig: { // LlmConfig
47
49
  * provider: "STRING_VALUE",
@@ -42,6 +42,8 @@ declare const SearchKnowledgeBaseCommand_base: {
42
42
  * topK: Number("int"),
43
43
  * threshold: Number("double"),
44
44
  * searchStrategy: "bm25" || "vector" || "hybrid",
45
+ * useQueryOptimization: true || false,
46
+ * extendMetadata: true || false,
45
47
  * },
46
48
  * withMetadata: true || false,
47
49
  * };
@@ -148,6 +148,7 @@ declare const UpdateDataSourceCommand_base: {
148
148
  * // syncSchedule: "STRING_VALUE",
149
149
  * // id: "STRING_VALUE", // required
150
150
  * // companyId: "STRING_VALUE", // required
151
+ * // documentsCount: Number("int"), // required
151
152
  * // createdAt: "STRING_VALUE", // required
152
153
  * // updatedAt: "STRING_VALUE", // required
153
154
  * // syncStatus: "idle" || "running" || "success" || "failed", // required
@@ -417,6 +417,11 @@ export interface DataSourceItem {
417
417
  */
418
418
  id: string;
419
419
  companyId: string;
420
+ /**
421
+ * The number of documents in the data source. Example: 100
422
+ * @public
423
+ */
424
+ documentsCount: number;
420
425
  createdAt: string;
421
426
  updatedAt: string;
422
427
  syncStatus: SyncDataSourceStatus;
@@ -1264,6 +1269,16 @@ export interface SearchConfig {
1264
1269
  * @public
1265
1270
  */
1266
1271
  searchStrategy?: SearchStrategy | undefined;
1272
+ /**
1273
+ * Whether to use the query transform to improve the search results. Example: true. The query transform will use the query to improve the search results.
1274
+ * @public
1275
+ */
1276
+ useQueryOptimization?: boolean | undefined;
1277
+ /**
1278
+ * Whether to extend the metadata of the search results. Example: true. The metadata will be extended with the additional information.
1279
+ * @public
1280
+ */
1281
+ extendMetadata?: boolean | undefined;
1267
1282
  }
1268
1283
  /**
1269
1284
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wim-knowledge-base-client",
3
3
  "description": "@wildix/wim-knowledge-base-client client",
4
- "version": "0.0.25",
4
+ "version": "0.0.27",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",