PineconeApiAttributeError: ScoredVector has no attribute 'metadata' at ['['received_data', 'matches', 1]']['metadata']

I’d be very grateful for advice please.

Why am I getting the following error regarding metadata, when I don’t want to use metadata, for the following query please?

vectorstore.similarity_search(query)

PineconeApiAttributeError: ScoredVector has no attribute ‘metadata’ at [‘[‘received_data’, ‘matches’, 1]’][‘metadata’]

vectorstore was from the following code:

vectorstore = PineconeVectorStore.from_documents(chunked_docs, embeddings, index_name=PINECONE_INDEX_NAME)

Hi @tc_uk, please note that the similarity_search method you are using is from LangChain’s PineconeVectorStore class. We’re here to help as best as possible, but I also encourage you to post to LangChain’s support team or post a GitHub issue.

Can you please share the metadata fields that you have on the records in the index in question? Are the metadata fields the same for each record?