You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
store_astra and store_atlas store metadata that cannot be read back into DocMetadata #3344
store_astra and store_atlas write each chunk's meta as chunk.metadata.__dict__. Two things go wrong:
DocMetadata allows extra fields. Pydantic keeps them outside __dict__, so fields that upstream nodes add (for example anomaly_score) are not stored.
__dict__ holds every empty field as None. When a stored row is read back, DocMetadata(**meta) rejects None for fields such as nodeId, so the read raises a validation error.
store_milvus had the same read failure and was fixed in #3055 by storing DocMetadata.toDict(), which leaves empty fields out.
Call DocMetadata(**metadata.__dict__), which is the dict the two nodes store.
Expected vs Actual Behavior
Expected: the stored meta reads back into DocMetadata and keeps the extra fields.
Actual: nodeId fails with "Input should be a valid string" for None, and extra fields are missing.
Severity
P2 - Medium
Platform
Linux, macOS, Windows (the code path does not depend on the platform)
Version / Environment
develop at a7f3770. Found by code reading and a local reproduction of the validation error, not against a running Astra or Atlas.
Activity
github-actions commentedon Nov 18, 2026
🤖 Internal: Discord sync marker
Auto-managed by the Discord notification workflow. Stores the linked Discord message ID and forum thread ID. Do not edit or delete.
fix(nodes): store astra and atlas metadata with toDict so rows read back