How to set "verbose=True" for models and chains in LangChain v0.3? #28612
Answered
by
feijoes
phoenixcoder-ed
asked this question in
Q&A
-
Checked other resources
Commit to Help
Example Codesynopsis_chain = prompt_template_synopsis | llm
review_chain = prompt_template_review | llm
response = sequential_chain.invoke({"title": title}) DescriptionIn langchain v0.1, I could set the verbose value to True in the LLMChain constructor to view the execution process, but after upgrading to v0.3 or even v0.2, I was prompted to use |, but after modifying, how do I set verbose? According to the official documentation, langchain.globals.set_verbose(True) was found to be ineffective. System Infopython=3.10 |
Beta Was this translation helpful? Give feedback.
Answered by
feijoes
Dec 8, 2024
Replies: 1 comment 1 reply
-
Perhaps you can achieve this by enabling debug mode: import langchain
# Enable debug mode
langchain.debug = True Alternatively, you could try setting verbose=True in prompt_template_synopsis, prompt_template_review, and during LLM creation. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
phoenixcoder-ed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps you can achieve this by enabling debug mode:
Alternatively, you could try setting verbose=True in prompt_template_synopsis, prompt_template_review, and during LLM creation.