traqr-memory-mcp 0.2.3 → 0.2.5

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/setup.sql +7 -2
package/README.md CHANGED
@@ -118,7 +118,7 @@ Use `memory_audit` to check health, then `memory_store` to create your first mem
118
118
 
119
119
  On startup you should see:
120
120
  ```
121
- TraqrDB Memory MCP v0.1.3 | Schema v2 | DB: Supabase | Embeddings: openai/text-embedding-3-small | Ready
121
+ TraqrDB Memory MCP v0.2.3 | Schema v2 | DB: Supabase | Embeddings: openai/text-embedding-3-small | Ready
122
122
  ```
123
123
 
124
124
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "traqr-memory-mcp",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Memory-as-a-service MCP server for AI agents. 11 tools, Postgres + pgvector, multi-strategy retrieval. Works with Claude Code, Cursor, Codex, and any MCP client.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/setup.sql CHANGED
@@ -751,9 +751,14 @@ LANGUAGE plpgsql AS $$
751
751
  DECLARE
752
752
  tsquery_en tsquery;
753
753
  tsquery_simple tsquery;
754
+ or_query TEXT;
754
755
  BEGIN
755
- tsquery_en := plainto_tsquery('english', p_query_text);
756
- tsquery_simple := plainto_tsquery('simple', p_query_text);
756
+ -- Split query words into OR terms for better recall.
757
+ -- "engagement ring proposal" -> "engagement | ring | proposal"
758
+ -- ts_rank_cd naturally ranks docs with MORE matching terms higher.
759
+ or_query := regexp_replace(trim(p_query_text), '\s+', ' | ', 'g');
760
+ tsquery_en := to_tsquery('english', or_query);
761
+ tsquery_simple := to_tsquery('simple', or_query);
757
762
 
758
763
  RETURN QUERY
759
764
  SELECT