@wildix/wim-knowledge-base-client 0.0.43 → 0.0.44

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.
@@ -1197,12 +1197,14 @@ const de_SearchHistoryResults = (output, context) => {
1197
1197
  };
1198
1198
  const de_SearchKnowledgeBaseResult = (output, context) => {
1199
1199
  return (0, smithy_client_1.take)(output, {
1200
+ 'bm25Score': smithy_client_1.limitedParseDouble,
1200
1201
  'content': smithy_client_1.expectString,
1201
1202
  'dataSourceId': smithy_client_1.expectString,
1202
1203
  'dataSourceType': smithy_client_1.expectString,
1203
1204
  'documentId': smithy_client_1.expectString,
1204
1205
  'documentTitle': smithy_client_1.expectString,
1205
1206
  'documentUrl': smithy_client_1.expectString,
1207
+ 'knnScore': smithy_client_1.limitedParseDouble,
1206
1208
  'score': smithy_client_1.limitedParseDouble,
1207
1209
  });
1208
1210
  };
@@ -1137,12 +1137,14 @@ const de_SearchHistoryResults = (output, context) => {
1137
1137
  };
1138
1138
  const de_SearchKnowledgeBaseResult = (output, context) => {
1139
1139
  return take(output, {
1140
+ 'bm25Score': __limitedParseDouble,
1140
1141
  'content': __expectString,
1141
1142
  'dataSourceId': __expectString,
1142
1143
  'dataSourceType': __expectString,
1143
1144
  'documentId': __expectString,
1144
1145
  'documentTitle': __expectString,
1145
1146
  'documentUrl': __expectString,
1147
+ 'knnScore': __limitedParseDouble,
1146
1148
  'score': __limitedParseDouble,
1147
1149
  });
1148
1150
  };
@@ -61,6 +61,8 @@ declare const SearchKnowledgeBaseCommand_base: {
61
61
  * // dataSourceType: "files" || "confluence" || "gdrive" || "proxy", // required
62
62
  * // content: "STRING_VALUE", // required
63
63
  * // score: Number("double"), // required
64
+ * // knnScore: Number("double"), // required
65
+ * // bm25Score: Number("double"), // required
64
66
  * // },
65
67
  * // ],
66
68
  * // metadata: "DOCUMENT_VALUE",
@@ -1630,7 +1630,21 @@ export interface SearchKnowledgeBaseResult {
1630
1630
  dataSourceId: string;
1631
1631
  dataSourceType: DataSourceType;
1632
1632
  content: string;
1633
+ /**
1634
+ * The total score of the result, calculated from the semantic search score and the full-text search score.
1635
+ * @public
1636
+ */
1633
1637
  score: number;
1638
+ /**
1639
+ * The score of semantic search.
1640
+ * @public
1641
+ */
1642
+ knnScore: number;
1643
+ /**
1644
+ * The score of the result from the full-text search.
1645
+ * @public
1646
+ */
1647
+ bm25Score: number;
1634
1648
  }
1635
1649
  /**
1636
1650
  * @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.43",
4
+ "version": "0.0.44",
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",