add debug

This commit is contained in:
Henry
2023-05-19 18:20:41 +01:00
parent fb400cbfbc
commit 1f4efd6734
12 changed files with 28 additions and 10 deletions
@@ -40,7 +40,7 @@ class VectorDBQAChain_Chains implements INode {
const model = nodeData.inputs?.model as BaseLanguageModel
const vectorStore = nodeData.inputs?.vectorStore as VectorStore
const chain = VectorDBQAChain.fromLLM(model, vectorStore)
const chain = VectorDBQAChain.fromLLM(model, vectorStore, { verbose: process.env.DEBUG === 'true' ? true : false })
return chain
}