I upgraded node SDK for pinecone-database/pinecone to 3.0.2 and I am having weird compatibility build error. What is a recommended set of related packages that are compatible with it?
Versions:
"@langchain/community": "^0.0.57",
"@langchain/core": "^0.2.31",
"@langchain/openai": "^0.2.10",
"@langchain/pinecone": "^0.0.9",
"@pinecone-database/pinecone": "^3.0.2",
Error:
Argument of type 'VectorStoreRetriever<PineconeStore>' is not assignable
to parameter of type 'VectorStoreRetriever<VectorStoreInterface>'.
Property '_streamEvents' is missing in type 'VectorStoreRetriever<PineconeStore>' but
required in type 'VectorStoreRetriever<VectorStoreInterface>'.
CODE:
const retriever = vectorStore.asRetriever({
callbacks: [
{
handleRetrieverEnd(documents) {
resolveWithDocuments(documents);
},
},
],
});
// *** offending line:
const chain = await makeChain(retriever);
WHICH CALLS:
export const makeChain = async (retriever: VectorStoreRetriever) => {
I appreciate any help with this. Node v.20.