fix(vector-stores): index Valkey 'memory' field as TEXT not TAG (#5443)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
This commit is contained in:
Eldar Shlomi
2026-06-11 21:28:42 +05:30
committed by GitHub
co-authored by Claude Opus 4.8 kartik-mem0
parent f84aa1eb31
commit 4c41f6deeb
2 changed files with 43 additions and 2 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ DEFAULT_FIELDS = [
{"name": "agent_id", "type": "tag"},
{"name": "run_id", "type": "tag"},
{"name": "user_id", "type": "tag"},
{"name": "memory", "type": "tag"}, # Using TAG instead of TEXT for Valkey compatibility
{"name": "memory", "type": "text"}, # TEXT for full-text search over memory content (see #5006)
{"name": "metadata", "type": "tag"}, # Using TAG instead of TEXT for Valkey compatibility
{"name": "created_at", "type": "numeric"},
{"name": "updated_at", "type": "numeric"},
@@ -169,7 +169,7 @@ class ValkeyDB(VectorStoreBase):
"user_id",
"TAG",
"memory",
"TAG",
"TEXT",
"metadata",
"TAG",
"created_at",