@wildix/wim-knowledge-base-client 0.0.49 → 0.0.50

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchThresholdValue = exports.SyncLogLevel = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DownloadDocumentType = exports.DocumentStatus = exports.DataSourceType = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.SearchThresholdValue = exports.SearchStrategy = exports.SyncLogLevel = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DownloadDocumentType = exports.DocumentStatus = exports.DataSourceType = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const KnowledgeBaseServiceException_1 = require("./KnowledgeBaseServiceException");
5
5
  class ValidationException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
6
6
  name = "ValidationException";
@@ -131,6 +131,11 @@ exports.SyncLogLevel = {
131
131
  INFO: "info",
132
132
  WARN: "warn",
133
133
  };
134
+ exports.SearchStrategy = {
135
+ BM25: "bm25",
136
+ HYBRID: "hybrid",
137
+ VECTOR: "vector",
138
+ };
134
139
  exports.SearchThresholdValue = {
135
140
  HIGH: "high",
136
141
  LOW: "low",
@@ -503,6 +503,7 @@ const se_SearchKnowledgeBaseCommand = async (input, context) => {
503
503
  'externalSessionId': [],
504
504
  'query': [],
505
505
  'searchLimit': [],
506
+ 'searchStrategy': [],
506
507
  'searchThreshold': [],
507
508
  'searchUser': [],
508
509
  'useQueryOptimization': [],
@@ -122,6 +122,11 @@ export const SyncLogLevel = {
122
122
  INFO: "info",
123
123
  WARN: "warn",
124
124
  };
125
+ export const SearchStrategy = {
126
+ BM25: "bm25",
127
+ HYBRID: "hybrid",
128
+ VECTOR: "vector",
129
+ };
125
130
  export const SearchThresholdValue = {
126
131
  HIGH: "high",
127
132
  LOW: "low",
@@ -473,6 +473,7 @@ export const se_SearchKnowledgeBaseCommand = async (input, context) => {
473
473
  'externalSessionId': [],
474
474
  'query': [],
475
475
  'searchLimit': [],
476
+ 'searchStrategy': [],
476
477
  'searchThreshold': [],
477
478
  'searchUser': [],
478
479
  'useQueryOptimization': [],
@@ -38,6 +38,7 @@ declare const SearchKnowledgeBaseCommand_base: {
38
38
  * companyId: "STRING_VALUE",
39
39
  * knowledgeBaseId: "STRING_VALUE", // required
40
40
  * query: "STRING_VALUE", // required
41
+ * searchStrategy: "bm25" || "vector" || "hybrid",
41
42
  * searchLimit: Number("int"),
42
43
  * searchThreshold: "low" || "medium" || "high",
43
44
  * useQueryOptimization: true || false,
@@ -1490,6 +1490,19 @@ export interface ListSearchQueriesHistoryInput {
1490
1490
  export interface ListSearchQueriesHistoryOutput {
1491
1491
  results: (__DocumentType)[];
1492
1492
  }
1493
+ /**
1494
+ * @public
1495
+ * @enum
1496
+ */
1497
+ export declare const SearchStrategy: {
1498
+ readonly BM25: "bm25";
1499
+ readonly HYBRID: "hybrid";
1500
+ readonly VECTOR: "vector";
1501
+ };
1502
+ /**
1503
+ * @public
1504
+ */
1505
+ export type SearchStrategy = typeof SearchStrategy[keyof typeof SearchStrategy];
1493
1506
  /**
1494
1507
  * @public
1495
1508
  * @enum
@@ -1522,6 +1535,11 @@ export interface SearchKnowledgeBaseInput {
1522
1535
  * @public
1523
1536
  */
1524
1537
  query: string;
1538
+ /**
1539
+ * Search algorithm strategy: 'bm25' (full-text keyword search), 'vector' (semantic similarity search using embeddings), 'hybrid' (combines both methods for best results). Defaults to 'hybrid' if not specified
1540
+ * @public
1541
+ */
1542
+ searchStrategy?: SearchStrategy | undefined;
1525
1543
  /**
1526
1544
  * Maximum number of search results to return. Controls the size of the result set. Valid range: 1-50. Defaults to 10 if not specified. Higher values return more results but may include less relevant matches
1527
1545
  * @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.49",
4
+ "version": "0.0.50",
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",