mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
|
Setting `verbose` to `True` will print out some internal states of the `Chain` object while it is being ran.
|
||
|
|
||
|
```python
|
||
|
conversation = ConversationChain(
|
||
|
llm=chat,
|
||
|
memory=ConversationBufferMemory(),
|
||
|
verbose=True
|
||
|
)
|
||
|
conversation.run("What is ChatGPT?")
|
||
|
```
|
||
|
|
||
|
<CodeOutputBlock lang="python">
|
||
|
|
||
|
```
|
||
|
> Entering new ConversationChain chain...
|
||
|
Prompt after formatting:
|
||
|
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.
|
||
|
|
||
|
Current conversation:
|
||
|
|
||
|
Human: What is ChatGPT?
|
||
|
AI:
|
||
|
|
||
|
> Finished chain.
|
||
|
|
||
|
'ChatGPT is an AI language model developed by OpenAI. It is based on the GPT-3 architecture and is capable of generating human-like responses to text prompts. ChatGPT has been trained on a massive amount of text data and can understand and respond to a wide range of topics. It is often used for chatbots, virtual assistants, and other conversational AI applications.'
|
||
|
```
|
||
|
|
||
|
</CodeOutputBlock>
|
||
|
|