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?

I am getting the same error can you please let me know how you removed it.

@tc_uk I am also getting the same ScoredVector Attribute Error while performing similarity search can you please tell me how you resolved it

@zeke_pinecone can you help me with the error
I am doing a medical chatbot project where I completed all the steps from making text chunks to upserting data, now while I am running the similarity search I am getting the mentioned error.
from pinecone import Pinecone

from langchain_pinecone import PineconeVectorStore

docsearch = PineconeVectorStore.from_existing_index(index_name=INDEX_NAME, embedding=embeddings)

query = “What are Allergies”

docs = docsearch.similarity_search(query, k=3)

print(“Result”, docs)
PineconeApiAttributeError: ScoredVector has no attribute ‘metadata’ at [‘[‘received_data’, ‘matches’, 0]’][‘metadata’]
I would appreciate if anyone can help me to remove the mentioned error.

Hi, I am getting the same error - did you find a way to fix this?

Hi folks, what version of langchain_pinecone are you using? Please ensure you are using the latest version, 0.1.3.