Invalid vector value passed: cannot interpret type <class 'list'> - text file data

Im using the below code, getting error “Invalid vector value passed: cannot interpret type <class ‘list’>” , how to load this data.

text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
texts = text_splitter.split_text(stripped_textual_content)
embedding_model = get_azure_embeddings()
pc = Pinecone(api_key=“”)
index = pc.Index(“”)
vector = {“values”: texts}
vectors = embedding_model.embed_documents(vector)
index.upsert(vectors)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.