@dakera-ai/dakera 0.10.1 → 0.10.2
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.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -265,7 +265,7 @@ interface ClientOptions {
|
|
|
265
265
|
* - bge-small: BGE-small - Balanced performance (384 dimensions)
|
|
266
266
|
* - e5-small: E5-small - High quality (384 dimensions)
|
|
267
267
|
*/
|
|
268
|
-
type EmbeddingModel = 'minilm' | 'bge-small' | 'e5-small';
|
|
268
|
+
type EmbeddingModel = 'bge-large' | 'minilm' | 'bge-small' | 'e5-small';
|
|
269
269
|
/**
|
|
270
270
|
* Input for upserting a text document with automatic embedding.
|
|
271
271
|
*/
|
|
@@ -510,6 +510,8 @@ interface RecallRequest {
|
|
|
510
510
|
associated_memories_min_weight?: number;
|
|
511
511
|
/** CE-10: retrieval routing mode. Default: `"auto"` (server picks best strategy). */
|
|
512
512
|
routing?: RoutingMode;
|
|
513
|
+
/** CE-13: enable cross-encoder reranking. Default: `undefined` (server uses `true` for recall). Pass `false` to disable on latency-sensitive paths. */
|
|
514
|
+
rerank?: boolean;
|
|
513
515
|
}
|
|
514
516
|
/** Request to update importance */
|
|
515
517
|
interface UpdateImportanceRequest {
|
|
@@ -2355,6 +2357,7 @@ declare class DakeraClient {
|
|
|
2355
2357
|
since?: string;
|
|
2356
2358
|
until?: string;
|
|
2357
2359
|
routing?: RoutingMode;
|
|
2360
|
+
rerank?: boolean;
|
|
2358
2361
|
}): Promise<RecallResponse>;
|
|
2359
2362
|
/** Get a specific memory */
|
|
2360
2363
|
getMemory(agentId: string, memoryId: string): Promise<Memory>;
|
|
@@ -2402,6 +2405,7 @@ declare class DakeraClient {
|
|
|
2402
2405
|
memory_type?: string;
|
|
2403
2406
|
min_importance?: number;
|
|
2404
2407
|
routing?: RoutingMode;
|
|
2408
|
+
rerank?: boolean;
|
|
2405
2409
|
}): Promise<RecalledMemory[]>;
|
|
2406
2410
|
/** Update importance of memories */
|
|
2407
2411
|
updateImportance(agentId: string, request: UpdateImportanceRequest): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -265,7 +265,7 @@ interface ClientOptions {
|
|
|
265
265
|
* - bge-small: BGE-small - Balanced performance (384 dimensions)
|
|
266
266
|
* - e5-small: E5-small - High quality (384 dimensions)
|
|
267
267
|
*/
|
|
268
|
-
type EmbeddingModel = 'minilm' | 'bge-small' | 'e5-small';
|
|
268
|
+
type EmbeddingModel = 'bge-large' | 'minilm' | 'bge-small' | 'e5-small';
|
|
269
269
|
/**
|
|
270
270
|
* Input for upserting a text document with automatic embedding.
|
|
271
271
|
*/
|
|
@@ -510,6 +510,8 @@ interface RecallRequest {
|
|
|
510
510
|
associated_memories_min_weight?: number;
|
|
511
511
|
/** CE-10: retrieval routing mode. Default: `"auto"` (server picks best strategy). */
|
|
512
512
|
routing?: RoutingMode;
|
|
513
|
+
/** CE-13: enable cross-encoder reranking. Default: `undefined` (server uses `true` for recall). Pass `false` to disable on latency-sensitive paths. */
|
|
514
|
+
rerank?: boolean;
|
|
513
515
|
}
|
|
514
516
|
/** Request to update importance */
|
|
515
517
|
interface UpdateImportanceRequest {
|
|
@@ -2355,6 +2357,7 @@ declare class DakeraClient {
|
|
|
2355
2357
|
since?: string;
|
|
2356
2358
|
until?: string;
|
|
2357
2359
|
routing?: RoutingMode;
|
|
2360
|
+
rerank?: boolean;
|
|
2358
2361
|
}): Promise<RecallResponse>;
|
|
2359
2362
|
/** Get a specific memory */
|
|
2360
2363
|
getMemory(agentId: string, memoryId: string): Promise<Memory>;
|
|
@@ -2402,6 +2405,7 @@ declare class DakeraClient {
|
|
|
2402
2405
|
memory_type?: string;
|
|
2403
2406
|
min_importance?: number;
|
|
2404
2407
|
routing?: RoutingMode;
|
|
2408
|
+
rerank?: boolean;
|
|
2405
2409
|
}): Promise<RecalledMemory[]>;
|
|
2406
2410
|
/** Update importance of memories */
|
|
2407
2411
|
updateImportance(agentId: string, request: UpdateImportanceRequest): Promise<{
|
package/dist/index.js
CHANGED
|
@@ -1096,6 +1096,7 @@ var DakeraClient = class {
|
|
|
1096
1096
|
if (options?.since !== void 0) body["since"] = options.since;
|
|
1097
1097
|
if (options?.until !== void 0) body["until"] = options.until;
|
|
1098
1098
|
if (options?.routing !== void 0) body["routing"] = options.routing;
|
|
1099
|
+
if (options?.rerank !== void 0) body["rerank"] = options.rerank;
|
|
1099
1100
|
return this.request("POST", `/v1/agents/${agentId2}/memories/recall`, body);
|
|
1100
1101
|
}
|
|
1101
1102
|
/** Get a specific memory */
|
|
@@ -1153,6 +1154,7 @@ var DakeraClient = class {
|
|
|
1153
1154
|
if (options?.memory_type !== void 0) body["memory_type"] = options.memory_type;
|
|
1154
1155
|
if (options?.min_importance !== void 0) body["min_importance"] = options.min_importance;
|
|
1155
1156
|
if (options?.routing !== void 0) body["routing"] = options.routing;
|
|
1157
|
+
if (options?.rerank !== void 0) body["rerank"] = options.rerank;
|
|
1156
1158
|
const result = await this.request("POST", `/v1/agents/${agentId2}/memories/search`, body);
|
|
1157
1159
|
return result.memories ?? result;
|
|
1158
1160
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1056,6 +1056,7 @@ var DakeraClient = class {
|
|
|
1056
1056
|
if (options?.since !== void 0) body["since"] = options.since;
|
|
1057
1057
|
if (options?.until !== void 0) body["until"] = options.until;
|
|
1058
1058
|
if (options?.routing !== void 0) body["routing"] = options.routing;
|
|
1059
|
+
if (options?.rerank !== void 0) body["rerank"] = options.rerank;
|
|
1059
1060
|
return this.request("POST", `/v1/agents/${agentId2}/memories/recall`, body);
|
|
1060
1061
|
}
|
|
1061
1062
|
/** Get a specific memory */
|
|
@@ -1113,6 +1114,7 @@ var DakeraClient = class {
|
|
|
1113
1114
|
if (options?.memory_type !== void 0) body["memory_type"] = options.memory_type;
|
|
1114
1115
|
if (options?.min_importance !== void 0) body["min_importance"] = options.min_importance;
|
|
1115
1116
|
if (options?.routing !== void 0) body["routing"] = options.routing;
|
|
1117
|
+
if (options?.rerank !== void 0) body["rerank"] = options.rerank;
|
|
1116
1118
|
const result = await this.request("POST", `/v1/agents/${agentId2}/memories/search`, body);
|
|
1117
1119
|
return result.memories ?? result;
|
|
1118
1120
|
}
|