mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
slightly clearer docs (#3088)
Took me a second to realise the examples required to manually print the output of the conversation predict. This might make it clearer for others
This commit is contained in:
parent
0257829776
commit
7dae39b57d
@ -244,7 +244,8 @@ from langchain import OpenAI, ConversationChain
|
|||||||
llm = OpenAI(temperature=0)
|
llm = OpenAI(temperature=0)
|
||||||
conversation = ConversationChain(llm=llm, verbose=True)
|
conversation = ConversationChain(llm=llm, verbose=True)
|
||||||
|
|
||||||
conversation.predict(input="Hi there!")
|
output = conversation.predict(input="Hi there!")
|
||||||
|
print(output)
|
||||||
```
|
```
|
||||||
|
|
||||||
```pycon
|
```pycon
|
||||||
@ -262,7 +263,8 @@ AI:
|
|||||||
```
|
```
|
||||||
|
|
||||||
```python
|
```python
|
||||||
conversation.predict(input="I'm doing well! Just having a conversation with an AI.")
|
output = conversation.predict(input="I'm doing well! Just having a conversation with an AI.")
|
||||||
|
print(output)
|
||||||
```
|
```
|
||||||
|
|
||||||
```pycon
|
```pycon
|
||||||
|
Loading…
Reference in New Issue
Block a user