@nguyentamdat/mempalace 1.0.1 → 1.0.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.
- package/package.json +3 -2
- package/src/searcher.ts +4 -4
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nguyentamdat/mempalace",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Give your AI a memory. No API key required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"mempalace": "./src/index.ts"
|
|
7
|
+
"mempalace": "./src/index.ts",
|
|
8
|
+
"mempalace-mcp": "./src/mcp-server.ts"
|
|
8
9
|
},
|
|
9
10
|
"scripts": {
|
|
10
11
|
"start": "bun run src/index.ts",
|
package/src/searcher.ts
CHANGED
|
@@ -69,8 +69,8 @@ export async function search({
|
|
|
69
69
|
|
|
70
70
|
try {
|
|
71
71
|
const kwargs = {
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
queryTexts: [query],
|
|
73
|
+
nResults: nResults,
|
|
74
74
|
include: ["documents", "metadatas", "distances"],
|
|
75
75
|
} as unknown as DrawerQueryParams;
|
|
76
76
|
|
|
@@ -141,8 +141,8 @@ export async function searchMemories({
|
|
|
141
141
|
|
|
142
142
|
try {
|
|
143
143
|
const kwargs = {
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
queryTexts: [query],
|
|
145
|
+
nResults: nResults,
|
|
146
146
|
include: ["documents", "metadatas", "distances"],
|
|
147
147
|
} as unknown as DrawerQueryParams;
|
|
148
148
|
|