Skip to content
Discussion options

You must be logged in to vote

🤖

Hello,

From your code, it seems like you're trying to combine LLMChain with RetrievalQAChain using the loadQAStuffChain function. However, the loadQAStuffChain function is not designed to be used in this way.

The loadQAStuffChain function is used to create and load a StuffQAChain instance based on the provided parameters. It takes an instance of BaseLanguageModel and an optional StuffQAChainParams object as parameters. The StuffQAChainParams object can contain a prompt of type BasePromptTemplate and a verbose boolean flag.

Here is the function code for reference:

export function loadQAStuffChain(
  llm: BaseLanguageModel,
  params: StuffQAChainParams = {}
) {
  const { prompt = QA_PROMP…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Elindo586
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant