Replies: 1 comment
-
🤖 Hello, The error you're encountering is due to the To resolve this issue, you need to ensure that all chains used within the Here is the relevant part of your code that is causing the issue: vectorChain = new RetrievalQAChain({
combineDocumentsChain: loadQAStuffChain(model),
retriever: vectoreStore.asRetriever(),
returnSourceDocuments: true,
});
overallChain = new SimpleSequentialChain({
chains: [reviewChain1, vectorChain],
verbose: true,
}); In this code, For example, you could modify your vectorChain = new RetrievalQAChain({
combineDocumentsChain: loadQAStuffChain(model),
retriever: vectoreStore.asRetriever(),
returnSourceDocuments: false, // Only return the answer, not the source documents
}); I hope this helps! Let me know if you have any other questions. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why would I be getting this error and how can I fix it?
Code is here:
Beta Was this translation helpful? Give feedback.
All reactions