@taladb/node 0.11.3 → 0.11.4

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/index.d.ts CHANGED
@@ -87,16 +87,13 @@ export declare class CollectionNode {
87
87
  *
88
88
  * - `metric` — optional: `"cosine"` (default), `"dot"`, or `"euclidean"`.
89
89
  * - `index_type` — optional: `"flat"` (default) or `"hnsw"`.
90
- * - `hnsw_m` — HNSW connectivity (only 32 is supported).
90
+ * - `hnsw_m` — HNSW connectivity (2–128).
91
91
  * - `hnsw_ef_construction` — build quality (default 200).
92
92
  */
93
93
  createVectorIndex(field: string, dimensions: number, metric?: string | undefined | null, indexType?: string | undefined | null, hnswM?: number | undefined | null, hnswEfConstruction?: number | undefined | null): void
94
94
  /** Drop a vector index (and its HNSW graph if present). */
95
95
  dropVectorIndex(field: string): void
96
- /**
97
- * Rebuild the HNSW graph for a vector index from the current flat data.
98
- * No-op when the feature is disabled or the index is flat-only.
99
- */
96
+ /** Promote a flat/legacy vector index or compact its persistent HNSW graph. */
100
97
  upgradeVectorIndex(field: string): void
101
98
  /**
102
99
  * Return the indexes on this collection as a JSON string
@@ -126,6 +123,9 @@ export declare class CollectionNode {
126
123
  * retriever did not return the document.
127
124
  */
128
125
  hybridSearch(textField: string, text: string, vectorField: string, vector: Array<number>, topK: number, filter?: JsonValue | undefined | null, options?: JsonValue | undefined | null): Array<JsonValue>
126
+ /** Internal command protocol for advanced vector search and index lifecycle. */
127
+ vectorCommand(request: JsonValue): JsonValue
128
+ vectorCommandAsync(request: JsonValue): Promise<any>
129
129
  /**
130
130
  * Find the `top_k` nearest documents to `query`.
131
131
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taladb/node",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "description": "TalaDB Node.js native module — document queries and vector search via napi-rs",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
Binary file
Binary file
Binary file