Troubleshooting Haystack Pipeline Model Attribute Error
John G. - thanks for the great YouTube video and notebook on the Haystack integration. I tried to instrument an existing Haystack Pipeline that included an embedding model and got an odd error about a model not having a model attribute. I'd appreciate your insight... is this a developer error or should I create a defect? The model in question when it was initialized did include a model attribute: hybrid_indexing.add_component("sparse_doc_embedder", FastembedSparseDocumentEmbedder(model="Qdrant/bm42-all-minilm-l6-v2-attentions", meta_fields_to_embed=["title"])) Here's the error:
/usr/local/lib/python3.10/dist-packages/openinference/instrumentation/haystack/_wrappers.py in __call__(self, wrapped, instance, args, kwargs)
100 {
101 **dict(_get_span_kind_attributes(EMBEDDING)),
--> 102 **dict(_get_embedding_model_attributes(component.model)),
103 }
104 )
AttributeError: 'FastembedSparseDocumentEmbedder' object has no attribute 'model'Here's the notebook: https://colab.research.google.com/drive/15BGfOMXe66MmCcNoIo9vd3KxgxRQ3wPo?usp=sharing
