@memorylayerai/vercel-ai 0.4.0 → 0.5.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/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +2 -2
- package/src/tools.ts +4 -4
package/dist/index.cjs
CHANGED
|
@@ -157,13 +157,13 @@ function searchTool(config) {
|
|
|
157
157
|
description: "Search memories in the MemoryLayer system to retrieve relevant information with advanced retrieval options",
|
|
158
158
|
parameters: import_zod.z.object({
|
|
159
159
|
query: import_zod.z.string().describe("The search query to find relevant memories"),
|
|
160
|
-
limit: import_zod.z.number().optional().describe("Maximum number of results to return (default: 10)"),
|
|
161
|
-
threshold: import_zod.z.number().optional().describe("Minimum relevance score threshold (0-1)"),
|
|
162
|
-
enableQueryRewriting: import_zod.z.boolean().optional().describe("Enable query rewriting for better results (default:
|
|
160
|
+
limit: import_zod.z.number().optional().describe("Maximum number of results to return (default: 10 - supermemory production default)"),
|
|
161
|
+
threshold: import_zod.z.number().optional().describe("Minimum relevance score threshold (0-1, default: 0.6 - supermemory production default for broad recall)"),
|
|
162
|
+
enableQueryRewriting: import_zod.z.boolean().optional().describe("Enable query rewriting for better results (default: false - adds ~400ms latency)"),
|
|
163
163
|
enableEntityExpansion: import_zod.z.boolean().optional().describe("Enable entity expansion search (default: false)"),
|
|
164
164
|
enableGraphConnectivity: import_zod.z.boolean().optional().describe("Enable graph connectivity search (default: false)"),
|
|
165
165
|
enableSemanticDedup: import_zod.z.boolean().optional().describe("Enable semantic deduplication (default: false)"),
|
|
166
|
-
rerankingStrategy: import_zod.z.enum(["none", "cross-encoder", "llm"]).optional().describe("Reranking strategy (default: none)")
|
|
166
|
+
rerankingStrategy: import_zod.z.enum(["none", "cross-encoder", "llm"]).optional().describe("Reranking strategy (default: none - adds latency)")
|
|
167
167
|
}),
|
|
168
168
|
execute: async ({
|
|
169
169
|
query,
|
package/dist/index.js
CHANGED
|
@@ -125,13 +125,13 @@ function searchTool(config) {
|
|
|
125
125
|
description: "Search memories in the MemoryLayer system to retrieve relevant information with advanced retrieval options",
|
|
126
126
|
parameters: z.object({
|
|
127
127
|
query: z.string().describe("The search query to find relevant memories"),
|
|
128
|
-
limit: z.number().optional().describe("Maximum number of results to return (default: 10)"),
|
|
129
|
-
threshold: z.number().optional().describe("Minimum relevance score threshold (0-1)"),
|
|
130
|
-
enableQueryRewriting: z.boolean().optional().describe("Enable query rewriting for better results (default:
|
|
128
|
+
limit: z.number().optional().describe("Maximum number of results to return (default: 10 - supermemory production default)"),
|
|
129
|
+
threshold: z.number().optional().describe("Minimum relevance score threshold (0-1, default: 0.6 - supermemory production default for broad recall)"),
|
|
130
|
+
enableQueryRewriting: z.boolean().optional().describe("Enable query rewriting for better results (default: false - adds ~400ms latency)"),
|
|
131
131
|
enableEntityExpansion: z.boolean().optional().describe("Enable entity expansion search (default: false)"),
|
|
132
132
|
enableGraphConnectivity: z.boolean().optional().describe("Enable graph connectivity search (default: false)"),
|
|
133
133
|
enableSemanticDedup: z.boolean().optional().describe("Enable semantic deduplication (default: false)"),
|
|
134
|
-
rerankingStrategy: z.enum(["none", "cross-encoder", "llm"]).optional().describe("Reranking strategy (default: none)")
|
|
134
|
+
rerankingStrategy: z.enum(["none", "cross-encoder", "llm"]).optional().describe("Reranking strategy (default: none - adds latency)")
|
|
135
135
|
}),
|
|
136
136
|
execute: async ({
|
|
137
137
|
query,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memorylayerai/vercel-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Vercel AI SDK integration for MemoryLayer",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"author": "MemoryLayer",
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@memorylayerai/sdk": "^0.
|
|
33
|
+
"@memorylayerai/sdk": "^0.5.0",
|
|
34
34
|
"ai": "^3.0.0",
|
|
35
35
|
"zod": "^3.22.4"
|
|
36
36
|
},
|
package/src/tools.ts
CHANGED
|
@@ -100,13 +100,13 @@ export function searchTool(config: MemoryToolConfig) {
|
|
|
100
100
|
description: 'Search memories in the MemoryLayer system to retrieve relevant information with advanced retrieval options',
|
|
101
101
|
parameters: z.object({
|
|
102
102
|
query: z.string().describe('The search query to find relevant memories'),
|
|
103
|
-
limit: z.number().optional().describe('Maximum number of results to return (default: 10)'),
|
|
104
|
-
threshold: z.number().optional().describe('Minimum relevance score threshold (0-1)'),
|
|
105
|
-
enableQueryRewriting: z.boolean().optional().describe('Enable query rewriting for better results (default:
|
|
103
|
+
limit: z.number().optional().describe('Maximum number of results to return (default: 10 - supermemory production default)'),
|
|
104
|
+
threshold: z.number().optional().describe('Minimum relevance score threshold (0-1, default: 0.6 - supermemory production default for broad recall)'),
|
|
105
|
+
enableQueryRewriting: z.boolean().optional().describe('Enable query rewriting for better results (default: false - adds ~400ms latency)'),
|
|
106
106
|
enableEntityExpansion: z.boolean().optional().describe('Enable entity expansion search (default: false)'),
|
|
107
107
|
enableGraphConnectivity: z.boolean().optional().describe('Enable graph connectivity search (default: false)'),
|
|
108
108
|
enableSemanticDedup: z.boolean().optional().describe('Enable semantic deduplication (default: false)'),
|
|
109
|
-
rerankingStrategy: z.enum(['none', 'cross-encoder', 'llm']).optional().describe('Reranking strategy (default: none)'),
|
|
109
|
+
rerankingStrategy: z.enum(['none', 'cross-encoder', 'llm']).optional().describe('Reranking strategy (default: none - adds latency)'),
|
|
110
110
|
}),
|
|
111
111
|
execute: async ({
|
|
112
112
|
query,
|