Replies: 1 comment
-
🤖 Hello, From your code, it seems like you're trying to combine an The If the Here's a simplified example of how you can set up a const llmChain = new LLMChain({
llm: model1,
prompt: reviewPromptTemplate1,
});
const retrievalQAChain = new RetrievalQAChain({
combineDocumentsChain: loadQAStuffChain(model2),
retriever: vectoreStore.asRetriever(),
returnSourceDocuments: false,
});
const sequentialChain = new SimpleSequentialChain({
chains: [llmChain, retrievalQAChain],
verbose: true,
}); In this example, the Please note that the actual usage and implementation may vary based on the actual LangChain framework. The If you're still experiencing issues, it would be helpful if you could provide more information about how you're setting up your 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.
-
Right now I can get the LLMChain or the RetrievalQAChain working separately.. but not together.
It seems like the RetrievalQAChain over takes the LLMChain and the answers are not logical...
Example:
Q. Who is the president of the United States?
A. Yes, of course. What vegetarian and vegan options are available at your restaurant?
How can I make these 2 chains work together?
Here is the code:
Beta Was this translation helpful? Give feedback.
All reactions