@naturali/cli 0.127.2 → 0.127.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +26 -5
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
14
14
  };
15
15
  //#endregion
16
16
  //#region package.json
17
- var version = "0.127.2";
17
+ var version = "0.127.3";
18
18
  //#endregion
19
19
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
20
20
  const serializeFormDataPair = (data, key, value) => {
@@ -3045,7 +3045,7 @@ var Knowledge = class {
3045
3045
  /**
3046
3046
  * Search knowledge
3047
3047
  *
3048
- * Searches across documents and memory entries using semantic search, file paths, document IDs, memory IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_ids` must be provided.
3048
+ * Searches across documents and memory entries using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_ids` must be provided.
3049
3049
  */
3050
3050
  static searchKnowledge(options) {
3051
3051
  return (options.client ?? client).post({
@@ -12274,7 +12274,7 @@ const routes = {
12274
12274
  "search-knowledge": {
12275
12275
  serviceClass: "Knowledge",
12276
12276
  operationId: "searchKnowledge",
12277
- description: "Searches across documents and memory entries using semantic search, file paths, document IDs, memory IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_ids` must be provided.",
12277
+ description: "Searches across documents and memory entries using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_ids` must be provided.",
12278
12278
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/knowledge",
12279
12279
  httpMethod: "post",
12280
12280
  pathParams: ["project_id"],
@@ -12289,14 +12289,35 @@ const routes = {
12289
12289
  },
12290
12290
  {
12291
12291
  "name": "query",
12292
- "description": "Semantic search query text",
12292
+ "description": "Search query text. Runs a vector query and a full-text query over each store and fuses the rankings; the full-text channel matches exact tokens and phrases, the vector channel everything else.",
12293
12293
  "required": false,
12294
12294
  "type": "string",
12295
12295
  "in": "body"
12296
12296
  },
12297
+ {
12298
+ "name": "min_similarity",
12299
+ "description": "Minimum raw cosine `similarity_score` a **vector** candidate must reach to take part in ranking, applied before fusion. Only applies when `query` is provided. Lexical candidates are deliberately exempt: a result that literally contains the searched token is the evidence, and dropping it for a low cosine is the failure hybrid search exists to prevent. Not a floor on `score`, whose fused value encodes rank position rather than similarity.",
12300
+ "required": false,
12301
+ "type": "number",
12302
+ "in": "body"
12303
+ },
12297
12304
  {
12298
12305
  "name": "min_score",
12299
- "description": "Minimum `score` a result must reach to be returned. Filters on the implementation-defined `score`, not on `similarity_score`, so the cutoff follows the ranking. Only applies when `query` is provided. Because the scale behind `score` is not part of the contract, treat a tuned value as tied to the deployment rather than portable.",
12306
+ "description": "Deprecated alias for `min_similarity`, with identical behavior. While ranking was single-signal `score` equaled `similarity_score`, so this has only ever filtered cosine and an existing value keeps returning the same results. `min_similarity` wins when both are sent. Removed in v2.",
12307
+ "required": false,
12308
+ "type": "number",
12309
+ "in": "body"
12310
+ },
12311
+ {
12312
+ "name": "rrf_k",
12313
+ "description": "The `k` in the reciprocal rank fusion term `1 / (k + rank)`, which sets how steeply a result's contribution decays with its position in each ranked list. A smaller value weights the very top of each list more heavily. Defaults to the deployment's `KNOWLEDGE_RRF_K`, itself 60 by default. Only applies when `query` is provided.",
12314
+ "required": false,
12315
+ "type": "integer",
12316
+ "in": "body"
12317
+ },
12318
+ {
12319
+ "name": "recency_half_life_days",
12320
+ "description": "Half-life, in days, of a recency decay applied to **memory** results after fusion: a result's `score` is multiplied by `2 ^ (-age_in_days / recency_half_life_days)`, where age is measured from its `updated_at`. Document results are never decayed. `0` — the default, and the default of the deployment's `KNOWLEDGE_RECENCY_HALF_LIFE_DAYS` — disables the blend entirely; it is a switch, not a lower bound, and sending `0` turns off a deployment-wide decay for this one request. Accepts fractions (`0.5` is twelve hours). How many ranks a given half-life costs depends on `rrf_k`. Only applies when `query` is provided.",
12300
12321
  "required": false,
12301
12322
  "type": "number",
12302
12323
  "in": "body"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.127.2",
3
+ "version": "0.127.3",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,7 +30,7 @@
30
30
  "tsx": "^4.23.1",
31
31
  "typescript": "~6.0.3",
32
32
  "vitest": "^4.1.10",
33
- "@naturali/sdk": "0.127.2"
33
+ "@naturali/sdk": "0.127.3"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",