@arbidocs/client 0.3.51 → 0.3.52

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.d.cts CHANGED
@@ -2369,21 +2369,39 @@ interface components {
2369
2369
  ModelCitation: components['schemas']['ModelCitationConfig'];
2370
2370
  /**
2371
2371
  * @default {
2372
- * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
2373
- * "MAX_DISTINCT_DOCUMENTS": 200,
2374
- * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 400,
2375
- * "GROUP_SIZE": 10000,
2376
- * "SEARCH_MODE": "semantic",
2377
- * "HYBRID_PREFETCH_LIMIT": 500,
2378
- * "HYBRID_DENSE_WEIGHT": 0.7,
2379
- * "HYBRID_SPARSE_WEIGHT": 0.3
2372
+ * "agent": {
2373
+ * "GROUP_SIZE": 10000,
2374
+ * "HYBRID_DENSE_WEIGHT": 0.7,
2375
+ * "HYBRID_PREFETCH_LIMIT": 500,
2376
+ * "HYBRID_SPARSE_WEIGHT": 0.3,
2377
+ * "MAX_DISTINCT_DOCUMENTS": 200,
2378
+ * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 400,
2379
+ * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
2380
+ * "SEARCH_MODE": "semantic"
2381
+ * },
2382
+ * "smart_search": {
2383
+ * "GROUP_SIZE": 10000,
2384
+ * "HYBRID_DENSE_WEIGHT": 0.7,
2385
+ * "HYBRID_PREFETCH_LIMIT": 5000,
2386
+ * "HYBRID_SPARSE_WEIGHT": 0.3,
2387
+ * "MAX_DISTINCT_DOCUMENTS": 50000,
2388
+ * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 10000,
2389
+ * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
2390
+ * "SEARCH_MODE": "hybrid"
2391
+ * }
2380
2392
  * }
2381
2393
  */
2382
2394
  Retriever: components['schemas']['RetrieverConfig'];
2383
2395
  /**
2384
2396
  * @default {
2385
- * "MIN_SCORE": 0.01,
2386
- * "MAX_NUMB_OF_CHUNKS": 30,
2397
+ * "agent": {
2398
+ * "MAX_NUMB_OF_CHUNKS": 30,
2399
+ * "MIN_SCORE": 0.01
2400
+ * },
2401
+ * "smart_search": {
2402
+ * "MAX_NUMB_OF_CHUNKS": 10000,
2403
+ * "MIN_SCORE": 0.05
2404
+ * },
2387
2405
  * "MAX_CONCURRENT_REQUESTS": 256,
2388
2406
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
2389
2407
  * "API_TYPE": "local",
@@ -5251,20 +5269,21 @@ interface components {
5251
5269
  /** Users */
5252
5270
  users: components['schemas']['RemoveWorkspaceUserItem'][];
5253
5271
  };
5254
- /** RerankerConfig */
5272
+ /**
5273
+ * RerankerConfig
5274
+ * @description Wire/storage shape for reranker settings.
5275
+ *
5276
+ * Per-profile fields (``MIN_SCORE``, ``MAX_NUMB_OF_CHUNKS``) live under
5277
+ * ``agent`` / ``smart_search``. Deployment-level fields (``MAX_CONCURRENT_REQUESTS``,
5278
+ * ``MODEL_NAME``, ``API_TYPE``, ``RETRIEVAL_INSTRUCTION``) stay at the top.
5279
+ * A legacy flat dict is auto-lifted: per-profile fields go to both profiles,
5280
+ * deployment-level fields stay at the top.
5281
+ */
5255
5282
  RerankerConfig: {
5256
- /**
5257
- * Min Score
5258
- * @description Minimum reranker score for a chunk to be kept. With the Qwen3 strict fact-matching instruction, relevant chunks score 0.1+ and noise is typically < 0.005.
5259
- * @default 0.01
5260
- */
5261
- MIN_SCORE: number;
5262
- /**
5263
- * Max Numb Of Chunks
5264
- * @description Maximum number of chunks to return after reranking.
5265
- * @default 30
5266
- */
5267
- MAX_NUMB_OF_CHUNKS: number;
5283
+ /** @description Reranker settings used by the chat agent. */
5284
+ agent?: components['schemas']['RerankerProfileConfig'];
5285
+ /** @description Reranker settings used by the standalone Smart Search endpoint. */
5286
+ smart_search?: components['schemas']['RerankerProfileConfig'];
5268
5287
  /**
5269
5288
  * Max Concurrent Requests
5270
5289
  * @description Deployment-wide in-flight reranker requests — sized for ~5 replicas * ~50 concurrent each.
@@ -5291,6 +5310,24 @@ interface components {
5291
5310
  */
5292
5311
  RETRIEVAL_INSTRUCTION: string;
5293
5312
  };
5313
+ /**
5314
+ * RerankerProfileConfig
5315
+ * @description Per-profile reranker settings.
5316
+ */
5317
+ RerankerProfileConfig: {
5318
+ /**
5319
+ * Min Score
5320
+ * @description Minimum reranker score for a chunk to be kept. With the Qwen3 strict fact-matching instruction, relevant chunks score 0.1+ and noise is typically < 0.005.
5321
+ * @default 0.01
5322
+ */
5323
+ MIN_SCORE: number;
5324
+ /**
5325
+ * Max Numb Of Chunks
5326
+ * @description Maximum number of chunks to return after reranking.
5327
+ * @default 30
5328
+ */
5329
+ MAX_NUMB_OF_CHUNKS: number;
5330
+ };
5294
5331
  /**
5295
5332
  * ResponseCompleteMessage
5296
5333
  * @description Background response finished — frontend can reload the conversation.
@@ -5898,8 +5935,26 @@ interface components {
5898
5935
  */
5899
5936
  doc_ext_ids: string[];
5900
5937
  };
5901
- /** RetrieverConfig */
5938
+ /**
5939
+ * RetrieverConfig
5940
+ * @description Wire/storage shape for retriever settings.
5941
+ *
5942
+ * Two profiles: ``agent`` (used by the chat agent's retrieval tool) and
5943
+ * ``smart_search`` (used by the standalone Smart Search endpoint).
5944
+ * A legacy flat dict (no ``agent``/``smart_search`` keys) is auto-lifted
5945
+ * into both profiles so older stored configs keep working.
5946
+ */
5902
5947
  RetrieverConfig: {
5948
+ /** @description Retrieval settings used by the chat agent. */
5949
+ agent?: components['schemas']['RetrieverProfileConfig'];
5950
+ /** @description Retrieval settings used by the standalone Smart Search endpoint. */
5951
+ smart_search?: components['schemas']['RetrieverProfileConfig'];
5952
+ };
5953
+ /**
5954
+ * RetrieverProfileConfig
5955
+ * @description Per-profile retriever settings. Used as the runtime config inside the Retriever instrument.
5956
+ */
5957
+ RetrieverProfileConfig: {
5903
5958
  /**
5904
5959
  * Min Retrieval Sim Score
5905
5960
  * @description Minimum similarity score for retrieval of a chunk.
@@ -7146,6 +7201,8 @@ interface components {
7146
7201
  * @description User settings update request - allows partial updates.
7147
7202
  */
7148
7203
  UserSettingsUpdate: {
7204
+ /** Last Config */
7205
+ last_config?: string | null;
7149
7206
  /** Pinned Workspaces */
7150
7207
  pinned_workspaces?: string[] | null;
7151
7208
  /** Pinned Templates */
package/dist/index.d.ts CHANGED
@@ -2369,21 +2369,39 @@ interface components {
2369
2369
  ModelCitation: components['schemas']['ModelCitationConfig'];
2370
2370
  /**
2371
2371
  * @default {
2372
- * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
2373
- * "MAX_DISTINCT_DOCUMENTS": 200,
2374
- * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 400,
2375
- * "GROUP_SIZE": 10000,
2376
- * "SEARCH_MODE": "semantic",
2377
- * "HYBRID_PREFETCH_LIMIT": 500,
2378
- * "HYBRID_DENSE_WEIGHT": 0.7,
2379
- * "HYBRID_SPARSE_WEIGHT": 0.3
2372
+ * "agent": {
2373
+ * "GROUP_SIZE": 10000,
2374
+ * "HYBRID_DENSE_WEIGHT": 0.7,
2375
+ * "HYBRID_PREFETCH_LIMIT": 500,
2376
+ * "HYBRID_SPARSE_WEIGHT": 0.3,
2377
+ * "MAX_DISTINCT_DOCUMENTS": 200,
2378
+ * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 400,
2379
+ * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
2380
+ * "SEARCH_MODE": "semantic"
2381
+ * },
2382
+ * "smart_search": {
2383
+ * "GROUP_SIZE": 10000,
2384
+ * "HYBRID_DENSE_WEIGHT": 0.7,
2385
+ * "HYBRID_PREFETCH_LIMIT": 5000,
2386
+ * "HYBRID_SPARSE_WEIGHT": 0.3,
2387
+ * "MAX_DISTINCT_DOCUMENTS": 50000,
2388
+ * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 10000,
2389
+ * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
2390
+ * "SEARCH_MODE": "hybrid"
2391
+ * }
2380
2392
  * }
2381
2393
  */
2382
2394
  Retriever: components['schemas']['RetrieverConfig'];
2383
2395
  /**
2384
2396
  * @default {
2385
- * "MIN_SCORE": 0.01,
2386
- * "MAX_NUMB_OF_CHUNKS": 30,
2397
+ * "agent": {
2398
+ * "MAX_NUMB_OF_CHUNKS": 30,
2399
+ * "MIN_SCORE": 0.01
2400
+ * },
2401
+ * "smart_search": {
2402
+ * "MAX_NUMB_OF_CHUNKS": 10000,
2403
+ * "MIN_SCORE": 0.05
2404
+ * },
2387
2405
  * "MAX_CONCURRENT_REQUESTS": 256,
2388
2406
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
2389
2407
  * "API_TYPE": "local",
@@ -5251,20 +5269,21 @@ interface components {
5251
5269
  /** Users */
5252
5270
  users: components['schemas']['RemoveWorkspaceUserItem'][];
5253
5271
  };
5254
- /** RerankerConfig */
5272
+ /**
5273
+ * RerankerConfig
5274
+ * @description Wire/storage shape for reranker settings.
5275
+ *
5276
+ * Per-profile fields (``MIN_SCORE``, ``MAX_NUMB_OF_CHUNKS``) live under
5277
+ * ``agent`` / ``smart_search``. Deployment-level fields (``MAX_CONCURRENT_REQUESTS``,
5278
+ * ``MODEL_NAME``, ``API_TYPE``, ``RETRIEVAL_INSTRUCTION``) stay at the top.
5279
+ * A legacy flat dict is auto-lifted: per-profile fields go to both profiles,
5280
+ * deployment-level fields stay at the top.
5281
+ */
5255
5282
  RerankerConfig: {
5256
- /**
5257
- * Min Score
5258
- * @description Minimum reranker score for a chunk to be kept. With the Qwen3 strict fact-matching instruction, relevant chunks score 0.1+ and noise is typically < 0.005.
5259
- * @default 0.01
5260
- */
5261
- MIN_SCORE: number;
5262
- /**
5263
- * Max Numb Of Chunks
5264
- * @description Maximum number of chunks to return after reranking.
5265
- * @default 30
5266
- */
5267
- MAX_NUMB_OF_CHUNKS: number;
5283
+ /** @description Reranker settings used by the chat agent. */
5284
+ agent?: components['schemas']['RerankerProfileConfig'];
5285
+ /** @description Reranker settings used by the standalone Smart Search endpoint. */
5286
+ smart_search?: components['schemas']['RerankerProfileConfig'];
5268
5287
  /**
5269
5288
  * Max Concurrent Requests
5270
5289
  * @description Deployment-wide in-flight reranker requests — sized for ~5 replicas * ~50 concurrent each.
@@ -5291,6 +5310,24 @@ interface components {
5291
5310
  */
5292
5311
  RETRIEVAL_INSTRUCTION: string;
5293
5312
  };
5313
+ /**
5314
+ * RerankerProfileConfig
5315
+ * @description Per-profile reranker settings.
5316
+ */
5317
+ RerankerProfileConfig: {
5318
+ /**
5319
+ * Min Score
5320
+ * @description Minimum reranker score for a chunk to be kept. With the Qwen3 strict fact-matching instruction, relevant chunks score 0.1+ and noise is typically < 0.005.
5321
+ * @default 0.01
5322
+ */
5323
+ MIN_SCORE: number;
5324
+ /**
5325
+ * Max Numb Of Chunks
5326
+ * @description Maximum number of chunks to return after reranking.
5327
+ * @default 30
5328
+ */
5329
+ MAX_NUMB_OF_CHUNKS: number;
5330
+ };
5294
5331
  /**
5295
5332
  * ResponseCompleteMessage
5296
5333
  * @description Background response finished — frontend can reload the conversation.
@@ -5898,8 +5935,26 @@ interface components {
5898
5935
  */
5899
5936
  doc_ext_ids: string[];
5900
5937
  };
5901
- /** RetrieverConfig */
5938
+ /**
5939
+ * RetrieverConfig
5940
+ * @description Wire/storage shape for retriever settings.
5941
+ *
5942
+ * Two profiles: ``agent`` (used by the chat agent's retrieval tool) and
5943
+ * ``smart_search`` (used by the standalone Smart Search endpoint).
5944
+ * A legacy flat dict (no ``agent``/``smart_search`` keys) is auto-lifted
5945
+ * into both profiles so older stored configs keep working.
5946
+ */
5902
5947
  RetrieverConfig: {
5948
+ /** @description Retrieval settings used by the chat agent. */
5949
+ agent?: components['schemas']['RetrieverProfileConfig'];
5950
+ /** @description Retrieval settings used by the standalone Smart Search endpoint. */
5951
+ smart_search?: components['schemas']['RetrieverProfileConfig'];
5952
+ };
5953
+ /**
5954
+ * RetrieverProfileConfig
5955
+ * @description Per-profile retriever settings. Used as the runtime config inside the Retriever instrument.
5956
+ */
5957
+ RetrieverProfileConfig: {
5903
5958
  /**
5904
5959
  * Min Retrieval Sim Score
5905
5960
  * @description Minimum similarity score for retrieval of a chunk.
@@ -7146,6 +7201,8 @@ interface components {
7146
7201
  * @description User settings update request - allows partial updates.
7147
7202
  */
7148
7203
  UserSettingsUpdate: {
7204
+ /** Last Config */
7205
+ last_config?: string | null;
7149
7206
  /** Pinned Workspaces */
7150
7207
  pinned_workspaces?: string[] | null;
7151
7208
  /** Pinned Templates */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.51",
3
+ "version": "0.3.52",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",