@ruvector/rvf-node 0.3.2 → 0.4.0

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
@@ -13,6 +13,8 @@ export interface RvfQueryOptions {
13
13
  efSearch?: number;
14
14
  filter?: string;
15
15
  timeoutMs?: number;
16
+ /** Opt in to the RaBitQ two-stage path (L2, cosine, inner product). */
17
+ rabitq?: boolean;
16
18
  }
17
19
 
18
20
  export interface RvfSearchResult {
@@ -76,10 +78,18 @@ export class RvfDatabase {
76
78
  static open(path: string): RvfDatabase;
77
79
  static openReadonly(path: string): RvfDatabase;
78
80
  ingestBatch(vectors: Float32Array, ids: number[], metadata?: RvfMetadataEntry[]): RvfIngestResult;
81
+ /** `ingestBatch` on the libuv threadpool (write lock). Rejects on error. */
82
+ ingestBatchAsync(vectors: Float32Array, ids: number[], metadata?: RvfMetadataEntry[]): Promise<RvfIngestResult>;
79
83
  query(vector: Float32Array, k: number, options?: RvfQueryOptions): RvfSearchResult[];
84
+ /** `query` on the libuv threadpool (read lock; concurrent calls run in parallel). Rejects on error. */
85
+ queryAsync(vector: Float32Array, k: number, options?: RvfQueryOptions): Promise<RvfSearchResult[]>;
80
86
  delete(ids: number[]): RvfDeleteResult;
87
+ /** `delete` on the libuv threadpool (write lock). Rejects on error. */
88
+ deleteAsync(ids: number[]): Promise<RvfDeleteResult>;
81
89
  deleteByFilter(filterJson: string): RvfDeleteResult;
82
90
  compact(): RvfCompactionResult;
91
+ /** `compact` on the libuv threadpool (write lock); the event loop keeps running. */
92
+ compactAsync(): Promise<RvfCompactionResult>;
83
93
  status(): RvfStatus;
84
94
  close(): void;
85
95
  fileId(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruvector/rvf-node",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "RuVector Format Node.js native bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
Binary file
Binary file
Binary file
Binary file
Binary file