Hi! When I follow the tutorial here Pinecone | š¦ļøš LangChain and I reach the point to use vector_store.add_documents(documents=documents, ids=uuids) , Iām getting the following error:
PineconeApiTypeError Traceback (most recent call last)
Cell In[26], line 69
55 documents = [
56 document_1,
57 document_2,
(...)
65 document_10,
66 ]
67 uuids = [str(i) for i in range(1, len(documents)+1)]
---> 69 vector_store.add_documents(documents=documents, ids=uuids)
File ~/.venv/langchain/lib/python3.12/site-packages/langchain_core/vectorstores/base.py:282, in VectorStore.add_documents(self, documents, **kwargs)
280 texts = [doc.page_content for doc in documents]
281 metadatas = [doc.metadata for doc in documents]
--> 282 return self.add_texts(texts, metadatas, **kwargs)
283 raise NotImplementedError(
284 f"`add_documents` and `add_texts` has not been implemented "
285 f"for {self.__class__.__name__} "
286 )
File ~/.venv/langchain/lib/python3.12/site-packages/langchain_pinecone/vectorstores.py:167, in PineconeVectorStore.add_texts(self, texts, metadatas, ids, namespace, batch_size, embedding_chunk_size, async_req, id_prefix, **kwargs)
163 vector_tuples = zip(chunk_ids, embeddings, chunk_metadatas)
164 if async_req:
165 # Runs the pinecone upsert asynchronously.
...
1455 # input_value's type is in valid_classes
1456 if len(valid_classes) > 1 and configuration:
1457 # there are valid classes which are not the current class
PineconeApiTypeError: Invalid type for variable '0'. Required value type is float and passed type was float64 at ['values'][0]