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
meta_fields_to_embed silently drops valid falsy metadata values (0, False) during text preparation for embedding and ranking. This happens because the filtering logic uses a Python truthiness check instead of an explicit None guard.
Affected components:
SentenceTransformersDocumentEmbedder
SentenceTransformersSparseDocumentEmbedder
TransformersSimilarityRanker
SentenceTransformersSimilarityRanker
SentenceTransformersDiversityRanker
Error message
No error is raised. The values are silently excluded, making it a silent correctness bug.
Expected behavior
All metadata values specified in meta_fields_to_embed should be included in the embedded text unless they are explicitly None or the key is absent from doc.meta.
Activity