Closed Gach-omba closed 6 months ago
@Gach-omba This integration for Haystack has been updated and migrated to Haystack Core Integrations.
Please refer to this page for more information: https://haystack.deepset.ai/integrations/pinecone-document-store
Updating to the latest version should resolve the problem you are facing. You can install the latest version using:
pip install pinecone_haystack
Okay. Thanks @vrunm for your help
Hello. I am working on a project where we are migrating to pinecone vector db and we are using the haystack pipeline. I have run into the error AttributeError: 'str' object has no attribute 'resolve_value' I am using haystack version 2.0 on google colab I have tried creating an environment variable for the pinecone API key and also tried using it directly but I still get the same error. The sample code where I am getting the error is as follows :
The complete error message log is :
AttributeError Traceback (most recent call last) in <cell line: 1>()
----> 1 document_store = PineconeDocumentStore(
2 metric="cosine",
3 dimension=768,
4 index="our_demo_index",
5
/usr/local/lib/python3.10/dist-packages/haystack_integrations/document_stores/pinecone/document_store.py in init(self, api_key, environment, index, namespace, batch_size, dimension, **index_creation_kwargs) 59 60 """ ---> 61 resolved_api_key = api_key.resolve_value() 62 if resolved_api_key is None: 63 msg = (
AttributeError: 'str' object has no attribute 'resolve_value'