@rigstate/mcp 0.5.3 → 0.5.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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/tools/query-brain.ts +3 -3
package/package.json
CHANGED
package/src/tools/query-brain.ts
CHANGED
|
@@ -98,8 +98,8 @@ export async function queryBrain(
|
|
|
98
98
|
let memories: MemoryRecord[] = [];
|
|
99
99
|
|
|
100
100
|
// Use the hybrid search RPC
|
|
101
|
-
console.
|
|
102
|
-
console.
|
|
101
|
+
console.error(`Searching brain for "${query}" (limit: ${limit}, threshold: ${threshold})`);
|
|
102
|
+
console.error(`Embedding present: ${!!embedding}`);
|
|
103
103
|
|
|
104
104
|
const { data: searchResults, error: searchError } = await supabase
|
|
105
105
|
.rpc('hybrid_search_memories', {
|
|
@@ -132,7 +132,7 @@ export async function queryBrain(
|
|
|
132
132
|
}));
|
|
133
133
|
}
|
|
134
134
|
} else if (searchResults) {
|
|
135
|
-
console.
|
|
135
|
+
console.error(`Found ${searchResults.length} results from RPC`);
|
|
136
136
|
memories = searchResults.map((m: any) => ({
|
|
137
137
|
id: m.id,
|
|
138
138
|
content: m.content,
|