Replies: 1 comment
-
🤖 你好,@jacksure!我是Dosu,一个可以帮助你解决bug、回答问题和成为贡献者的机器人。我在这里,等待人类维护者的同时,可以提供帮助。希望我们的交流可以愉快! 根据我在Langchain-Chatchat代码库中的查找, 这是相关的代码: @property
def _chain_type(self) -> str:
return "llm_knowledge_chain" 如果你想修改 此外,我没有在提供的Langchain-Chatchat代码库中找到任何方法或函数,可以在 这是相关的代码: @property
def _chain_type(self) -> str:
return "llm_knowledge_chain" 这段代码定义了一个属性 如果你需要进一步的帮助,或者有其他的问题,欢迎随时向我提问。 SourcesThis 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.
-
需要修改chain_type=“refine”,但是并没有找到类似下面的代码
from langchain.chains import RetrievalQA
ruff = RetrievalQA.from_chain_type(
llm=llm, chain_type="stuff", retriever=db.as_retriever()
)
ruff.run(query)
Beta Was this translation helpful? Give feedback.
All reactions