// vectorize and index entire document
const pinecone = await getPineconeClient()
const pineconeIndex = pinecone.Index( ‘quill’)
const embeddings = new OpenAIEmbeddings({
openAIApiKey: process.env.OPENAI_API_KEY,
})
await PineconeStore.fromDocuments(
pageLevelDocs,
embeddings,
{
pineconeIndex,
namespace: createdFile.id,
}
)
silas
October 23, 2023, 5:47pm
2
This issue from the JS Langchain seems relevant to the problem you’re having: PineconeClient is deprecated. · Issue #2643 · langchain-ai/langchainjs · GitHub
Hopefully it points you in the right direction for solving.
1 Like
Thank you so much silas for your reply! do you think the old PineconeClient will work if i just use the older version of langchain or do I also need to have an older version of pinecone?
system
Closed
November 7, 2023, 4:27am
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.