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:
co-authored by
Claude Opus 4.8
kartik-mem0
parent
f84aa1eb31
commit
4c41f6deeb
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user