Gettting argument error

i used below function to create pinecone namespace vector ?
try {

await PineconeStore.fromDocuments(
pageLevelDocs,
embeddings,
{
pineconeIndex,
namespace: createdFile.id,
}
)
} catch (error) {
console.log(" the error is due to " , error)
} but getting argumenerror as pas an valid array? value of my pageLevelDocs is pageLevelDocs is is = [
Document {
pageContent: ‘Rohan Satappa Kupate\n’ +
’ \n’ +
‘9607422290\n’ +
’ \n’ +
‘SUMMARY\n’ +
’ \n’ +
’ \n’ +
‘I \n’ +
‘am Rohan Kupate , c\n’ +
‘omputer engineering student\n’ +
’ \n’ +
‘with hands on experience in coding and software development. \n’ +
‘In\n’ +
‘-\n’ +
‘depth knowledge of programming languages, databases, web technologies, operating systems, and software \n’ +
‘development life cycle. Always ready to explore new \n’ +
‘technologies,\n’ +
’ \n’ +
‘Passionate about developing innovative solutions \n’ +
‘and solving complex problems. Seeking an opportunity as a software developer to utilize my skills and knowledge.\n’ +
’ \n’ +
’ \n’ +
‘PROJECTS\n’ +
’ \n’ +
’ \n’ +
‘Course Selling application using mern Stack and \n’ +
‘Nextjs\n’ +
’ \n’ +
’ \n’ +
‘•\n’ +
‘created beautiful website for selling your \n’ +
‘various course using mern stack , used recoil for \n’ +
‘smooth and fast rendering\n’ +
’ \n’ +
’ \n’ +
‘paints shop website html css javascript \n’ +
‘collage \n’ +
‘capstone project • \n’ +
‘January 2022 \n’ +
‘-\n’ +
’ \n’ +
‘February 2022\n’ +
’ \n’ +
’ \n’ +
‘EDUCATION\n’ +
’ \n’ +
’ \n’ +
‘Bachelor of Computer Engeneering\n’ +
’ \n’ +
’ \n’ +
‘suman ramesh tulsiani collage of engineering \n’ +
’ \n’ +
‘•\n’ +
‘khanshet\n’ +
‘, pune\n’ +
’ \n’ +
‘• 2025 •\n’ +
‘[\n’ +
‘Second\n’ +
’ \n’ +
‘year gra\n’ +
‘de\n’ +
’ \n’ +
‘: \n’ +
‘7.5\n’ +
‘]\n’ +
’ \n’ +
’ \n’ +
‘diploma of Computer engineering \n’ +
‘vvit \n’ +
’ \n’ +
‘• gargoti kolhapur • 2022 • 81%\n’ +
’ \n’ +
’ \n’ +
‘CERTIFICATIONS\n’ +
’ \n’ +
’ \n’ +
‘full stack development cohort\n’ +
’ \n’ +
‘100x devs organization • 20232\n’ +
’ \n’ +
‘•\n’ +
’ \n’ +
‘full stack development certi\n’ +
‘fi\n’ +
‘cate veri\n’ +
‘fi\n’ +
‘ed by Harkirat Singh \n’ +
‘data analytics \n’ +
‘bootcamp \n’ +
‘technohacks edutech pvt ltd • 20234\n’ +
’ \n’ +
‘•\n’ +
’ \n’ +
‘use and get some analytical outputs by using real world dataset given by them\n’ +
’ \n’ +
’ \n’ +
’ \n’ +
’ \n’ +
’ \n’ +
’ \n’ +
’ \n’ +
’ \n’ +
’ ‘,
metadata: {
source: ‘blob’,
blobType: ‘application/pdf’,
pdf: [Object],
loc: [Object]
}
},
Document {
pageContent: ’ \n’ +
‘COURSEWORK\n’ +
’ \n’ +
’ \n’ +
‘full stack development with modern technologies\n’ +
’ \n’ +
‘100x devs • 20232 • nextjs , mongodb , react , trpc , prisma , postgresql \n’ +
‘, mysql\n’ +
’ \n’ +
‘• making real word projects one of them was course selling application with optimized code like implementing ssr , \n’ +
‘optimized rendering\n’ +
’ \n’ +
’ \n’ +
‘INVOLVEMENT\n’ +
’ \n’ +
’ \n’ +
‘juniour data analyst \n’ +
‘technohacks edutech pvt ltd • Technohacks edutech pvt \n’ +
‘ltd • August 2023 \n’ +
‘-\n’ +
‘November 2023 \n’ +
‘• applying series of methods on given \n’ +
‘database to get some output as per there condition .\n’ +
’ \n’ +
’ \n’ +
‘SKILLS\n’ +
’ \n’ +
’ \n’ +
‘html , css , javascript , Typescript , python , react , nextjs , nodejs , mongodb , sql\n’ +
’ ',
metadata: {
source: ‘blob’,
blobType: ‘application/pdf’,
pdf: [Object],
loc: [Object]
}
}
]

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