nvidia-nat-redis 1.3.0a20250910__py3-none-any.whl → 1.3.0a20250922__py3-none-any.whl
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.
- nat/plugins/redis/redis_editor.py +5 -10
- nat/plugins/redis/schema.py +2 -1
- {nvidia_nat_redis-1.3.0a20250910.dist-info → nvidia_nat_redis-1.3.0a20250922.dist-info}/METADATA +2 -2
- {nvidia_nat_redis-1.3.0a20250910.dist-info → nvidia_nat_redis-1.3.0a20250922.dist-info}/RECORD +7 -7
- {nvidia_nat_redis-1.3.0a20250910.dist-info → nvidia_nat_redis-1.3.0a20250922.dist-info}/WHEEL +0 -0
- {nvidia_nat_redis-1.3.0a20250910.dist-info → nvidia_nat_redis-1.3.0a20250922.dist-info}/entry_points.txt +0 -0
- {nvidia_nat_redis-1.3.0a20250910.dist-info → nvidia_nat_redis-1.3.0a20250922.dist-info}/top_level.txt +0 -0
@@ -171,17 +171,12 @@ class RedisEditor(MemoryEditor):
|
|
171
171
|
for i, doc in enumerate(results.docs):
|
172
172
|
try:
|
173
173
|
logger.debug("Processing result %d/%d", i + 1, len(results.docs))
|
174
|
-
# Get the document data from the correct attribute
|
175
|
-
memory_data = {
|
176
|
-
"conversation": getattr(doc, 'conversation', []),
|
177
|
-
"user_id": getattr(doc, 'user_id', user_id),
|
178
|
-
"tags": getattr(doc, 'tags', []),
|
179
|
-
"metadata": getattr(doc, 'metadata', {}),
|
180
|
-
"memory": getattr(doc, 'memory', "")
|
181
|
-
}
|
182
174
|
logger.debug("Similarity score: %d", getattr(doc, 'score', 0))
|
183
|
-
|
184
|
-
|
175
|
+
|
176
|
+
# Get the full document data
|
177
|
+
full_doc = await self._client.json().get(doc.id)
|
178
|
+
logger.debug("Extracted data for result %d: %s", i + 1, full_doc)
|
179
|
+
memory_item = self._create_memory_item(dict(full_doc), user_id)
|
185
180
|
memories.append(memory_item)
|
186
181
|
logger.debug("Successfully created MemoryItem for result %d", i + 1)
|
187
182
|
except Exception as e:
|
nat/plugins/redis/schema.py
CHANGED
@@ -56,10 +56,11 @@ def create_schema(embedding_dim: int = DEFAULT_DIM):
|
|
56
56
|
logger.info("Created embedding field with dimension %d", embedding_dim)
|
57
57
|
|
58
58
|
schema = (
|
59
|
+
# Redis search can't directly index complex objects (e.g. conversation and metadata) in return_fields
|
60
|
+
# They need to be retrieved via json().get() for full object access
|
59
61
|
TextField("$.user_id", as_name="user_id"),
|
60
62
|
TagField("$.tags[*]", as_name="tags"),
|
61
63
|
TextField("$.memory", as_name="memory"),
|
62
|
-
# TextField("$.conversations[*]", as_name="conversations"), # TODO: figure out if/how this should be done
|
63
64
|
embedding_field)
|
64
65
|
|
65
66
|
# Log the schema details
|
{nvidia_nat_redis-1.3.0a20250910.dist-info → nvidia_nat_redis-1.3.0a20250922.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nvidia-nat-redis
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.0a20250922
|
4
4
|
Summary: Subpackage for Redis integration in NeMo Agent toolkit
|
5
5
|
Keywords: ai,agents,memory
|
6
6
|
Classifier: Programming Language :: Python
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.13
|
10
10
|
Requires-Python: <3.14,>=3.11
|
11
11
|
Description-Content-Type: text/markdown
|
12
|
-
Requires-Dist: nvidia-nat==v1.3.
|
12
|
+
Requires-Dist: nvidia-nat==v1.3.0a20250922
|
13
13
|
Requires-Dist: redis~=4.3.4
|
14
14
|
|
15
15
|
<!--
|
{nvidia_nat_redis-1.3.0a20250910.dist-info → nvidia_nat_redis-1.3.0a20250922.dist-info}/RECORD
RENAMED
@@ -2,12 +2,12 @@ nat/meta/pypi.md,sha256=TpeNbVZJxzvEf0Gh3BGvLHPYsKnXjgM_KQVCayBPXso,1090
|
|
2
2
|
nat/plugins/redis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
nat/plugins/redis/memory.py,sha256=wqj_UYqnllc4kTCtFDz3eu-OZnyPWXxNZ3e6G992OGQ,2546
|
4
4
|
nat/plugins/redis/object_store.py,sha256=f_GtCTZ3KHfxE4f0lAzKaoAoInAZZki4Dfo7hrKCAHA,1681
|
5
|
-
nat/plugins/redis/redis_editor.py,sha256=
|
5
|
+
nat/plugins/redis/redis_editor.py,sha256=nkSIWi1HUPald088fXTuF0rmZ0uS_3V65Vxy20vLSgk,9746
|
6
6
|
nat/plugins/redis/redis_object_store.py,sha256=DX46GEQl4H1Ivf2wrRaSimNcq6EfvRsm-xhyiECudoQ,4302
|
7
7
|
nat/plugins/redis/register.py,sha256=dJBKi-7W72ipkmZTOIo1E3ETffmJIlYhQTOlrkiFH3A,834
|
8
|
-
nat/plugins/redis/schema.py,sha256=
|
9
|
-
nvidia_nat_redis-1.3.
|
10
|
-
nvidia_nat_redis-1.3.
|
11
|
-
nvidia_nat_redis-1.3.
|
12
|
-
nvidia_nat_redis-1.3.
|
13
|
-
nvidia_nat_redis-1.3.
|
8
|
+
nat/plugins/redis/schema.py,sha256=Zcas3hIIqG7wuR94baYRFycmnccB3CuGmTs4p8Vv4mA,5589
|
9
|
+
nvidia_nat_redis-1.3.0a20250922.dist-info/METADATA,sha256=T930mwYtYNRuY4sS9cNx-mHoOUHHtXCEZSHizY0OXSo,1588
|
10
|
+
nvidia_nat_redis-1.3.0a20250922.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
nvidia_nat_redis-1.3.0a20250922.dist-info/entry_points.txt,sha256=nyS8t8L9CbRFIMlE70RQBtJXrflBP4Ltl5zAkIl44So,56
|
12
|
+
nvidia_nat_redis-1.3.0a20250922.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
|
13
|
+
nvidia_nat_redis-1.3.0a20250922.dist-info/RECORD,,
|
{nvidia_nat_redis-1.3.0a20250910.dist-info → nvidia_nat_redis-1.3.0a20250922.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|