diff --git a/integrations/pinecone/src/haystack_integrations/components/retrievers/pinecone/embedding_retriever.py b/integrations/pinecone/src/haystack_integrations/components/retrievers/pinecone/embedding_retriever.py index 02c4a3a87..fa4ec831c 100644 --- a/integrations/pinecone/src/haystack_integrations/components/retrievers/pinecone/embedding_retriever.py +++ b/integrations/pinecone/src/haystack_integrations/components/retrievers/pinecone/embedding_retriever.py @@ -7,7 +7,7 @@ from haystack.dataclasses import Document from haystack_integrations.document_stores.pinecone import PineconeDocumentStore - +from haystack.utils import deserialize_secrets_inplace @component class PineconeEmbeddingRetriever: @@ -93,6 +93,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "PineconeEmbeddingRetriever": :returns: Deserialized component. """ + deserialize_secrets_inplace(data["init_parameters"]['document_store']['init_parameters'], keys=["api_key"]) data["init_parameters"]["document_store"] = default_from_dict( PineconeDocumentStore, data["init_parameters"]["document_store"] )